mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Make right hand passed to the linear solver consistent.
Previously, we had to use two layers of overlap cells such the innermost layer contains the rightvalues automatically (as it is surrounded by internal edges). No we use communication to get the correct values in the whole overlap region and one layer suffices as it should.
This commit is contained in:
parent
01ea7bacba
commit
60cdc583ae
@ -219,7 +219,7 @@ try
|
||||
{
|
||||
OPM_THROW(std::logic_error, "We only support vtk output during parallel runs");
|
||||
}
|
||||
grid->loadBalance(2);
|
||||
grid->loadBalance();
|
||||
Dune::CpGrid global_grid = *grid;
|
||||
distributed_grid = *grid;
|
||||
global_grid.switchToGlobalView();
|
||||
|
@ -91,6 +91,7 @@ namespace Opm
|
||||
// Construct preconditioner.
|
||||
// typedef Dune::SeqILU0<Mat,Vector,Vector> Preconditioner;
|
||||
typedef Opm::CPRPreconditioner<Mat,Vector,Vector,P> Preconditioner;
|
||||
parallelInformation.copyOwnerToAll(istlb, istlb);
|
||||
Preconditioner precond(opA.getmat(), istlAe, cpr_relax_, cpr_ilu_n_, cpr_use_amg_, cpr_use_bicgstab_, parallelInformation);
|
||||
|
||||
// Construct linear solver.
|
||||
|
Loading…
Reference in New Issue
Block a user