14 {
15 MInt solverMethodInt = -1;
17 solverMethodInt =
string2enum(Context::getSolverProperty<MString>(
"solverMethod", solverId, AT_));
18 }
19
20 const MBool isSemiLagrange =
24 if(isSemiLagrange) {
25 return std::make_unique<LsCartesianSolverSemiLagrangian<nDim>>(solverId, propertiesGroups, gridProxy, geometry,
26 comm);
27 } else if(isFreeAdvection) {
28 return std::make_unique<LsCartesianSolverFreeAdvection<nDim>>(solverId, propertiesGroups, gridProxy, geometry,
29 comm);
30 } else {
31 return std::make_unique<LsCartesianSolver<nDim>>(solverId, propertiesGroups, gridProxy, geometry, comm);
32 }
33}
static MBool propertyExists(const MString &name, MInt solver=m_noSolvers)
This function checks if a property exists in general.
MInt string2enum(MString theString)
This global function translates strings in their corresponding enum values (integer values)....
@ MAIA_SEMI_LAGRANGE_LEVELSET_LB
@ MAIA_RUNGE_KUTTA_MB_SEMI_LAGRANGE_LEVELSET
@ MAIA_SEMI_LAGRANGE_LEVELSET