1
0
Fork 0
mirror of https://github.com/cosmo-sims/MUSIC.git synced 2024-09-19 17:03:46 +02:00

fixed a bug that required either ref_extent or ref_dims to be present even when setting up a unigrid simulation

This commit is contained in:
Oliver Hahn 2012-10-08 15:26:59 +02:00
parent d9fbe83bbc
commit 0807dd6861

View file

@ -1003,7 +1003,7 @@ public:
temp = cf_.getValue<std::string>( "setup", "ref_extent" );
sscanf( temp.c_str(), "%lf,%lf,%lf", &lxref_[0],&lxref_[1],&lxref_[2] );
bhave_nref = false;
}else{
}else if( cf_.containsKey("setup","ref_dims") ){
temp = cf_.getValue<std::string>("setup","ref_dims");
sscanf( temp.c_str(), "%ld,%ld,%ld", &lnref_[0],&lnref_[1],&lnref_[2] );
bhave_nref = true;