mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-28 20:13:49 -06:00
Move parallel overload into HAVE_MPI block.
This commit is contained in:
parent
bb626b1d9c
commit
ae6caaac61
@ -111,9 +111,6 @@ namespace Opm
|
|||||||
|
|
||||||
|
|
||||||
typedef Dune::SeqILU0<Mat, Vector, Vector> SeqPreconditioner;
|
typedef Dune::SeqILU0<Mat, Vector, Vector> SeqPreconditioner;
|
||||||
typedef Dune::OwnerOverlapCopyCommunication<int, int> Comm;
|
|
||||||
typedef Dune::BlockPreconditioner<Vector, Vector, Comm, SeqPreconditioner> ParPreconditioner;
|
|
||||||
|
|
||||||
|
|
||||||
template <class Operator>
|
template <class Operator>
|
||||||
SeqPreconditioner constructPrecond(Operator& opA, const Dune::Amg::SequentialInformation&) const
|
SeqPreconditioner constructPrecond(Operator& opA, const Dune::Amg::SequentialInformation&) const
|
||||||
@ -123,6 +120,9 @@ namespace Opm
|
|||||||
return precond;
|
return precond;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if HAVE_MPI
|
||||||
|
typedef Dune::OwnerOverlapCopyCommunication<int, int> Comm;
|
||||||
|
typedef Dune::BlockPreconditioner<Vector, Vector, Comm, SeqPreconditioner> ParPreconditioner;
|
||||||
|
|
||||||
template <class Operator>
|
template <class Operator>
|
||||||
ParPreconditioner constructPrecond(Operator& opA, const Comm& comm) const
|
ParPreconditioner constructPrecond(Operator& opA, const Comm& comm) const
|
||||||
@ -132,7 +132,7 @@ namespace Opm
|
|||||||
ParPreconditioner precond(seq_precond, comm);
|
ParPreconditioner precond(seq_precond, comm);
|
||||||
return precond;
|
return precond;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/// \brief Solve the system using the given preconditioner and scalar product.
|
/// \brief Solve the system using the given preconditioner and scalar product.
|
||||||
template <class Operator, class ScalarProd, class Precond>
|
template <class Operator, class ScalarProd, class Precond>
|
||||||
|
Loading…
Reference in New Issue
Block a user