save state

This commit is contained in:
James E McClure 2021-07-19 13:17:39 -04:00
parent 8ef4651db8
commit cd96365cd1

View File

@ -32,10 +32,10 @@ int main( int argc, char **argv )
int nprocs = comm.getSize();
std::string SimulationMode = "production";
// Load the input database
auto db = std::make_shared<Database>( argv[1] );
if (argc > 2) {
SimulationMode = "legacy";
}
//auto db = std::make_shared<Database>( argv[1] );
//if (argc > 2) {
// SimulationMode = "legacy";
//}
if ( rank == 0 ) {
printf( "********************************************************\n" );
@ -179,11 +179,11 @@ int main( int argc, char **argv )
}
PROFILE_STOP( "Main" );
auto file = db->getWithDefault<std::string>( "TimerFile", "lbpm_color_simulator" );
auto level = db->getWithDefault<int>( "TimerLevel", 1 );
NULL_USE(level);
PROFILE_SAVE( file, level );
//PROFILE_STOP( "Main" );
//auto file = db->getWithDefault<std::string>( "TimerFile", "lbpm_color_simulator" );
//auto level = db->getWithDefault<int>( "TimerLevel", 1 );
//NULL_USE(level);
//PROFILE_SAVE( file, level );
// ****************************************************