Improvements from review.

This commit is contained in:
Atgeirr Flø Rasmussen committed 2023-09-01 08:48:11 +02:00
1 parent 06c706e7d6
commit 99fca58dca
3 files changed
+4 -5

No files matched your search

+1
View File
@@ -417,6 +417,7 @@ list (APPEND PUBLIC_HEADER_FILES
ebos/hdf5serializer.hh
ebos/vtkecltracermodule.hh
opm/simulators/flow/countGlobalCells.hpp
opm/simulators/flow/priVarsPacking.hpp
opm/simulators/flow/BlackoilModelEbos.hpp
opm/simulators/flow/BlackoilModelEbosNldd.hpp
opm/simulators/flow/BlackoilModelParametersEbos.hpp
@@ -266,7 +266,7 @@ public:
// we move on.
const auto& comm = model_.ebosSimulator().vanguard().grid().comm();
if (comm.size() > 1) {
const auto& ccomm = model_.ebosSimulator().model().newtonMethod().linearSolver().comm();
const auto* ccomm = model_.ebosSimulator().model().newtonMethod().linearSolver().comm();
// Copy numerical values from primary vars.
ccomm->copyOwnerToAll(solution, solution);
+2 -4
View File
@@ -263,11 +263,9 @@ std::unique_ptr<Matrix> blockJacobiAdjacency(const Grid& grid,
OPM_TIMEBLOCK(istlSolverEbosPrepare);
const bool firstcall = (matrix_ == nullptr);
#if HAVE_MPI
if (firstcall) {
if (firstcall && isParallel()) {
const std::size_t size = M.N();
if (isParallel()) {
detail::copyParValues(parallelInformation_, size, *comm_);
}
detail::copyParValues(parallelInformation_, size, *comm_);
}
#endif