mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
OwningTwoLevelPreconditioner: avoid use of sstream
This commit is contained in:
parent
6d033fcf56
commit
ccce1cfe86
@ -107,7 +107,8 @@ public:
|
||||
std::string filename = prm.get<std::string>("weights_filename", "impes_weights.txt");
|
||||
std::ofstream outfile(filename);
|
||||
if (!outfile) {
|
||||
OPM_THROW(std::ofstream::failure, "Could not write weights to file " << filename << ".");
|
||||
OPM_THROW(std::ofstream::failure,
|
||||
"Could not write weights to file " + filename + ".");
|
||||
}
|
||||
Dune::writeMatrixMarket(weights_, outfile);
|
||||
}
|
||||
@ -139,7 +140,8 @@ public:
|
||||
auto filename = prm.get<std::string>("weights_filename", "impes_weights.txt");
|
||||
std::ofstream outfile(filename);
|
||||
if (!outfile) {
|
||||
OPM_THROW(std::ofstream::failure, "Could not write weights to file " << filename << ".");
|
||||
OPM_THROW(std::ofstream::failure,
|
||||
"Could not write weights to file " + filename + ".");
|
||||
}
|
||||
Dune::writeMatrixMarket(weights_, outfile);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user