LLNL / serac

Serac is a high order nonlinear thermomechanical simulation code
BSD 3-Clause "New" or "Revised" License
178 stars 33 forks source link

by_attr helper function won't compile #1077

Closed kswartz92 closed 7 months ago

kswartz92 commented 7 months ago

I noticed that the by_attr helper function provided to be used with serac::Domain won't compile. When I try to build an executable using it I get this error image

samuelpmishLLNL commented 7 months ago

thanks for reminding me about this, I believe it is addressed by https://github.com/LLNL/serac/pull/1078

samuelpmishLLNL commented 7 months ago

duplicating error message in text, so this issue can be searched for more easily in the future

/usr/workspace/swartz10/lLido-2.0/examples/NotShapeOpt .cpp:282:34: error: call to ‘ofBoundaryElements' is ambiguous
serac::Domain inputRegion = serac::Domain::ofBoundaryElements(smeshPtr, serac::by_attr(3));

/usr/workspace/swartz10/lido-2.0/smith/serac/src/serac/infrastructure/../../serac/numerics/functional/domain.hpp:109:17: note: candidate function
static Domain ofBoundaryElements(const mfem::Mesh& mesh, std::function<bool(std::vector<vec2>, int)> func);

/usr/workspace/swartz10/lido-2.0/smith/serac/src/serac/infrastructure/../../serac/numerics/functional/domain.hpp:112:17: note: candidate function
static Domain ofBoundaryElements(const mfem::Mesh& mesh, std::function<bool(std::vector<vec3>, int)> func);
1 error generated.