mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-11-03 20:56:43 -06:00
Improvements from review.
This commit is contained in:
1 parent
06c706e7d6
commit
99fca58dca
3 files changed
+4
-5
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user