Err::Inst()->write("Caught STD error, sending hangup to all nodes");
Err::Inst()->write(string("what() : ")+e.what());
}catch(...){
initstatus=false;
Err::Inst()->write("Caught error: UNKNOWN sending hangup to all nodes");
}
}
broadcast(world,initstatus,0);
// if something went wrong during initialization, exit now.
if(!initstatus)return1;
if(world.rank()==0)detect_parameters();
if(world.rank()==0)read_parameters(vm);
if(world.rank()==0)Info::Inst()->write(string("Set background scattering length density set to ")+boost::lexical_cast<string>(Params::Inst()->scattering.background.factor));
//------------------------------------------//
//
// Communication of the sample
// At this point it is ILLEGAL to change anything within the sample.
//
//------------------------------------------//
if(world.rank()==0)Info::Inst()->write("Exchanging sample, database & params information with compute nodes... ");