mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-11-02 20:30:55 -06:00
Merge pull request #6059 from daavid00/co2h2output
Improving terminal/dbg output
This commit is contained in:
2 files changed
+7
-7
No files matched your search
@@ -312,7 +312,7 @@ std::unique_ptr<Matrix> blockJacobiAdjacency(const Grid& grid,
|
||||
// Print parameters to PRT/DBG logs.
|
||||
if (on_io_rank && parameters_[activeSolverNum_].linear_solver_print_json_definition_) {
|
||||
std::ostringstream os;
|
||||
os << "Property tree for linear solvers:\n";
|
||||
os << "\nProperty tree for linear solvers:\n";
|
||||
for (std::size_t i = 0; i<prm_.size(); i++) {
|
||||
prm_[i].write_json(os, true);
|
||||
}
|
||||
|
||||
@@ -77,32 +77,32 @@ namespace Opm {
|
||||
}
|
||||
|
||||
if (!hasWater && !hasGas && hasOil && !hasSolvent) {
|
||||
const std::string msg = "System: Single phase Oil system. Nothing to check";
|
||||
const std::string msg = "System: Single phase Oil system. Nothing to check";
|
||||
OpmLog::info(msg);
|
||||
return false;
|
||||
}
|
||||
if (hasWater && hasGas && !hasOil && !hasSolvent) {
|
||||
const std::string msg = "System: Water-Gas system.";
|
||||
const std::string msg = "System: Water-Gas system.";
|
||||
OpmLog::info(msg);
|
||||
fluidSystem_ = FluidSystem::WaterGas;
|
||||
}
|
||||
if (hasWater && hasOil && !hasGas && !hasSolvent) {
|
||||
const std::string msg = "System: Oil-Water system.";
|
||||
const std::string msg = "System: Oil-Water system.";
|
||||
OpmLog::info(msg);
|
||||
fluidSystem_ = FluidSystem::OilWater;
|
||||
}
|
||||
if (hasOil && hasGas && !hasWater && !hasSolvent) {
|
||||
const std::string msg = "System: Oil-Gas system.";
|
||||
const std::string msg = "System: Oil-Gas system.";
|
||||
OpmLog::info(msg);
|
||||
fluidSystem_ = FluidSystem::OilGas;
|
||||
}
|
||||
if (hasOil && hasWater && hasGas && !hasSolvent) {
|
||||
const std::string msg = "System: Black-oil system.";
|
||||
const std::string msg = "System: Black-oil system.";
|
||||
OpmLog::info(msg);
|
||||
fluidSystem_ = FluidSystem::BlackOil;
|
||||
}
|
||||
if (hasSolvent) {
|
||||
const std::string msg = "System: Solvent model.";
|
||||
const std::string msg = "System: Solvent model.";
|
||||
OpmLog::info(msg);
|
||||
fluidSystem_ = FluidSystem::Solvent;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user