mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
added extra output of ptree if verbose option > 10
This commit is contained in:
parent
141903a26d
commit
8201eabfef
@ -100,6 +100,11 @@ public:
|
||||
comm_.reset(new Communication(parinfo->communicator()));
|
||||
}
|
||||
#endif
|
||||
if(prm_.get<int>("verbosity")> 10){
|
||||
std::ofstream file("options_flexiblesolver_aftersetup.json");
|
||||
namespace pt = boost::property_tree;
|
||||
pt::write_json(file,prm_);
|
||||
}
|
||||
}
|
||||
|
||||
void eraseMatrix()
|
||||
@ -152,6 +157,9 @@ public:
|
||||
transpose = true;
|
||||
}
|
||||
if(prm_.get<std::string>("preconditioner.weight_type") == "quasiimpes") {
|
||||
if(prm_.get<int>("verbosity") > 10){
|
||||
std::cout << "Using quasiimpes" << std::endl;
|
||||
}
|
||||
if( not( recreate_solver || !solver_) ){
|
||||
// weighs will be created as default in the solver
|
||||
weights = Opm::Amg::getQuasiImpesWeights<MatrixType, VectorType>(
|
||||
@ -159,6 +167,9 @@ public:
|
||||
prm_.get<int>("preconditioner.pressure_var_index"), transpose);
|
||||
}
|
||||
}else if(prm_.get<std::string>("preconditioner.weight_type") == "trueimpes" ){
|
||||
if(prm_.get<int>("verbosity") > 10){
|
||||
std::cout << "Using trueimpes" << std::endl;
|
||||
}
|
||||
weights =
|
||||
this->getTrueImpesWeights(b, prm_.get<int>("preconditioner.pressure_var_index"));
|
||||
if( recreate_solver || !solver_){
|
||||
|
@ -14,10 +14,8 @@
|
||||
#include<dune/istl/paamg/amg.hh>
|
||||
#include<dune/istl/paamg/galerkin.hh>
|
||||
#include<dune/istl/solver.hh>
|
||||
|
||||
#include<dune/common/unused.hh>
|
||||
#include<dune/common/version.hh>
|
||||
|
||||
/**
|
||||
* @addtogroup ISTL_PAAMG
|
||||
* @{
|
||||
|
Loading…
Reference in New Issue
Block a user