26 #include "grins_config.h"
35 #ifdef GRINS_HAVE_GRVY
40 #include "libmesh/parallel.h"
42 int main(
int argc,
char* argv[])
45 libMesh::out <<
"=========================================================="
47 libMesh::out <<
"GRINS Version: " << GRINS_BUILD_VERSION << std::endl
48 <<
"libMesh Version: " << LIBMESH_BUILD_VERSION << std::endl
49 <<
"Running with command:\n";
51 for (
int i=0; i != argc; ++i)
52 std::cout << argv[i] <<
' ';
54 std::cout << std::endl
55 <<
"=========================================================="
58 #ifdef GRINS_USE_GRVY_TIMERS
59 GRVY::GRVY_Timer_Class grvy_timer;
60 grvy_timer.Init(
"GRINS Timer");
67 std::cerr <<
"Error: Must specify libMesh input file." << std::endl;
72 std::string libMesh_input_filename = argv[1];
75 libMesh::LibMeshInit libmesh_init(argc, argv);
78 GetPot libMesh_inputfile( libMesh_input_filename );
80 GetPot command_line(argc,argv);
84 std::ifstream i(libMesh_input_filename.c_str());
87 std::cerr <<
"Error: Could not read from libMesh input file "
88 << libMesh_input_filename << std::endl;
93 #ifdef GRINS_USE_GRVY_TIMERS
94 grvy_timer.BeginTimer(
"Initialize Solver");
102 libmesh_init.comm() );
104 #ifdef GRINS_USE_GRVY_TIMERS
105 grvy_timer.EndTimer(
"Initialize Solver");
108 grins.attach_grvy_timer( &grvy_timer );
113 #ifdef GRINS_USE_GRVY_TIMERS
114 grvy_timer.Finalize();
116 if( Parallel::Communicator_World.rank() == 0 ) grvy_timer.Summarize();
int main(int argc, char *argv[])