Line data Source code
1 : #include <iostream> 2 : #include <fstream> 3 : #include <iomanip> 4 : 5 : #include "Util/Util.H" 6 : #include "IO/ParmParse.H" 7 : #include "IO/FileNameParse.H" 8 : #include "IO/WriteMetaData.H" 9 : #include "AMReX_ParmParse.H" 10 : 11 : #include "Model/Solid/Linear/Isotropic.H" 12 : #include "Integrator/TopOp.H" 13 : 14 1 : int main (int argc, char* argv[]) 15 : { 16 1 : Util::Initialize(argc,argv); 17 : 18 2 : std::string program = "microstructure"; 19 2 : IO::ParmParse pp; 20 1 : pp_query("alamo.program",program); 21 1 : srand(2); 22 : 23 1 : Integrator::Integrator *integrator = nullptr; 24 1 : if (program == "topop") integrator = new Integrator::TopOp<Model::Solid::Linear::Isotropic>(pp); 25 0 : else Util::Abort(INFO,"Error: \"",program,"\" is not a valid program."); 26 : 27 1 : integrator->InitData(); 28 1 : integrator->Evolve(); 29 1 : delete integrator; 30 : 31 1 : Util::Finalize(); 32 1 : }