9#include "AMReX_ParmParse.H"
26int main (
int argc,
char* argv[])
38 if (program ==
"mechanics")
40 std::string model =
"linear.isotropic";
42 pp.
query_default(
"alamo.program.mechanics.model",model,
"linear.isotropic");
43 if (model ==
"linear.isotropic")
45 else if (model ==
"linear.cubic")
47 else if (model ==
"affine.cubic")
49 else if (model ==
"affine.hexagonal")
51 else if (model ==
"affine.isotropic")
53 else if (model ==
"linear.laplacian")
55 else if (model ==
"finite.neohookean")
57 else if (model ==
"finite.neohookeanpre")
59 else if (model ==
"finite.pseudolinear.cubic")
61 else if (model ==
"finite.pseudoaffine.cubic")
63 else if (model ==
"affine.j2")
65 else if (model ==
"finite.crystalplastic")
69 else Util::Abort(
INFO,
"Error: \"",program,
"\" is not a valid program.");
int query_default(std::string name, T &value, T defaultvalue, std::string="", std::string="", int=-1)
void select_only(PTRTYPE *&ic_eta, Args &&args)
int query_validate(std::string name, int &value, std::vector< int > possibleintvals, std::string file="", std::string func="", int line=-1)
void InitData()
Front-end method to initialize simulation on all levels.
void Evolve()
Front-end method to start simulation.
int main(int argc, char *argv[])
void Abort(const char *msg)