mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Comment or add (void) usage of unused arguments.
This commit is contained in:
@@ -160,7 +160,7 @@ namespace Opm
|
|||||||
if (maxit == 0) {
|
if (maxit == 0) {
|
||||||
maxit = 5000;
|
maxit = 5000;
|
||||||
}
|
}
|
||||||
#if HAVE_MPI
|
#if HAVE_MPI
|
||||||
if(comm.type()==typeid(ParallelISTLInformation))
|
if(comm.type()==typeid(ParallelISTLInformation))
|
||||||
{
|
{
|
||||||
typedef Dune::OwnerOverlapCopyCommunication<int,int> Comm;
|
typedef Dune::OwnerOverlapCopyCommunication<int,int> Comm;
|
||||||
@@ -175,10 +175,11 @@ namespace Opm
|
|||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
(void) comm; // Avoid warning for unused argument if no MPI.
|
||||||
Dune::SeqScalarProduct<Vector> sp;
|
Dune::SeqScalarProduct<Vector> sp;
|
||||||
Dune::Amg::SequentialInformation comm;
|
Dune::Amg::SequentialInformation seq_comm;
|
||||||
Operator opA(A);
|
Operator opA(A);
|
||||||
return solveSystem(opA, solution, rhs, sp, comm, maxit);
|
return solveSystem(opA, solution, rhs, sp, seq_comm, maxit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -405,7 +406,7 @@ namespace Opm
|
|||||||
#if defined(HAS_DUNE_FAST_AMG) || DUNE_VERSION_NEWER(DUNE_ISTL, 2, 3)
|
#if defined(HAS_DUNE_FAST_AMG) || DUNE_VERSION_NEWER(DUNE_ISTL, 2, 3)
|
||||||
template<class O, class S, class C>
|
template<class O, class S, class C>
|
||||||
LinearSolverInterface::LinearSolverReport
|
LinearSolverInterface::LinearSolverReport
|
||||||
solveKAMG(O& opA, Vector& x, Vector& b, S& sp, const C& comm, double tolerance, int maxit, int verbosity,
|
solveKAMG(O& opA, Vector& x, Vector& b, S& /* sp */, const C& /* comm */, double tolerance, int maxit, int verbosity,
|
||||||
double linsolver_prolongate_factor, int linsolver_smooth_steps)
|
double linsolver_prolongate_factor, int linsolver_smooth_steps)
|
||||||
{
|
{
|
||||||
// Solve with AMG solver.
|
// Solve with AMG solver.
|
||||||
@@ -455,7 +456,7 @@ namespace Opm
|
|||||||
|
|
||||||
template<class O, class S, class C>
|
template<class O, class S, class C>
|
||||||
LinearSolverInterface::LinearSolverReport
|
LinearSolverInterface::LinearSolverReport
|
||||||
solveFastAMG(O& opA, Vector& x, Vector& b, S& sp, const C& comm, double tolerance, int maxit, int verbosity,
|
solveFastAMG(O& opA, Vector& x, Vector& b, S& /* sp */, const C& /* comm */, double tolerance, int maxit, int verbosity,
|
||||||
double linsolver_prolongate_factor)
|
double linsolver_prolongate_factor)
|
||||||
{
|
{
|
||||||
// Solve with AMG solver.
|
// Solve with AMG solver.
|
||||||
|
|||||||
Reference in New Issue
Block a user