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:
parent
d9fbe83bbc
commit
0807dd6861
1 changed files with 1 additions and 1 deletions
2
mesh.hh
2
mesh.hh
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue