mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-10 01:55:33 -06:00
Using param.getDefault() instead of param.get().
And also remove the space in dsMax (), drsMaxRel (), dpMaxRel ().
This commit is contained in:
parent
79916078f2
commit
63c53096cd
@ -242,13 +242,13 @@ namespace {
|
||||
ADB::null() } )
|
||||
{
|
||||
if (param.has("dp_max_rel")) {
|
||||
dp_max_rel_ = param.get<double>(std::string("dp_max_rel"));
|
||||
dp_max_rel_ = param.getDefault("dp_max_rel", dp_max_rel_);
|
||||
}
|
||||
if (param.has("ds_max")) {
|
||||
ds_max_ = param.get<double>("ds_max");
|
||||
ds_max_ = param.getDefault("ds_max", ds_max_);
|
||||
}
|
||||
if (param.has("drs_max_rel")) {
|
||||
drs_max_rel_ = param.get<double>("drs_max_rel");
|
||||
drs_max_rel_ = param.getDefault("drs_max_rel", drs_max_rel_);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user