24namespace shammodels::gsph::solvergraph {
30 using IEdgeNamed::IEdgeNamed;
33 std::optional<GhostHandle> handler;
36 if (!handler.has_value()) {
39 return handler.value();
43 if (!handler.has_value()) {
46 return handler.value();
49 bool has_value()
const {
return handler.has_value(); }
53 handler.emplace(std::move(h));
57 inline virtual void free_alloc()
override { handler.reset(); }
GSPH-specific ghost handler using Newtonian physics field names.
SolverGraph edge for GSPH ghost handler.
virtual void free_alloc() override
Free the allocated handler.
void throw_with_loc(std::string message, SourceLocation loc=SourceLocation{})
Throw an exception and append the source location to it.