mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merged.
This commit is contained in:
commit
cc1038bcdc
@ -55,20 +55,29 @@ namespace Opm
|
||||
|
||||
LinearSolverFactory::LinearSolverFactory(const parameter::ParameterGroup& param)
|
||||
{
|
||||
const std::string ls = param.getDefault<std::string>("linsolver", "umfpack");
|
||||
const std::string ls =
|
||||
param.getDefault<std::string>("linsolver", "umfpack");
|
||||
|
||||
if (ls == "umfpack") {
|
||||
#if HAVE_SUITESPARSE_UMFPACK_H
|
||||
solver_.reset(new LinearSolverUmfpack);
|
||||
#else
|
||||
THROW("Linear solver " << ls <<" is not available.");
|
||||
#endif
|
||||
} else if (ls == "istl") {
|
||||
}
|
||||
|
||||
else if (ls == "istl") {
|
||||
#if HAVE_DUNE_ISTL
|
||||
solver_.reset(new LinearSolverIstl(param));
|
||||
#else
|
||||
THROW("Linear solver " << ls <<" is not available.");
|
||||
#endif
|
||||
}
|
||||
|
||||
else {
|
||||
THROW("Linear solver " << ls << " is unknown.");
|
||||
}
|
||||
|
||||
if (! solver_) {
|
||||
THROW("Linear solver " << ls << " is not enabled in "
|
||||
"this configuration.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -941,7 +941,6 @@ namespace Opm
|
||||
double WellNode::productionGuideRate(bool only_group)
|
||||
{
|
||||
if (!only_group || prodSpec().control_mode_ == ProductionSpecification::GRUP) {
|
||||
std::cout << prodSpec().guide_rate_ << std::endl;
|
||||
return prodSpec().guide_rate_;
|
||||
}
|
||||
return 0.0;
|
||||
|
Loading…
Reference in New Issue
Block a user