Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing expected type for the first argument of function FunctionSpace() #4

Open
donellipietro opened this issue Jan 12, 2024 · 0 comments

Comments

@donellipietro
Copy link
Member

donellipietro commented Jan 12, 2024

FunctionSpace() does not complain when an object of a type different from MeshObject is passed as the first argument. Instead, it returns an error that is not clear.

Code

library(fdaPDE2)

data("unit_square", package = "fdaPDE2")
domain <- Mesh(unit_square)

Vh <- FunctionSpace(domain, fe_order = 1)

Error

> data("unit_square", package = "fdaPDE2")
> domain <- Mesh(unit_square)
> 
> ## the functional space of finite element functions of order 1, over the unit square
> Vh <- FunctionSpace(unit_square, fe_order = 1)
Error in eval(parse(text = paste("cpp_lagrange_basis_", mesh$domain_type,  : 
  object 'cpp_lagrange_basis__fe1' not found
@donellipietro donellipietro changed the title Missing expected type for the first argument in function FunctionSpace() Missing expected type for the first argument of function FunctionSpace() Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant