added extra output of ptree if verbose option > 10

This commit is contained in:
hnil 2019-08-22 18:48:24 +02:00
parent 141903a26d
commit 8201eabfef
2 changed files with 11 additions and 2 deletions

View File

@ -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_){

View File

@ -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
* @{