Commit e3c45624 authored by Dominik Thoennes's avatar Dominik Thoennes
Browse files

fix petsc tests

parent 2ba79464
Pipeline #34447 passed with stages
in 105 minutes and 59 seconds
......@@ -33,9 +33,9 @@ class PETScBlockPreconditionedStokesSolver : public Solver< OperatorType >
PETScBlockPreconditionedStokesSolver( const std::shared_ptr< PrimitiveStorage >& storage,
const uint_t& level,
const real_t tolerance = 1e-12,
const idx_t maxIterations = std::numeric_limits< idx_t >::max(),
const uint_t& velocityPreconditionerType = 1,
const uint_t& pressurePreconditionerType = 1 )
const PetscInt maxIterations = std::numeric_limits< PetscInt >::max(),
const uint_t& velocityPreconditionerType = 1,
const uint_t& pressurePreconditionerType = 1 )
: allocatedLevel_( level )
, petscCommunicator_( storage->getSplitCommunicatorByPrimitiveDistribution() )
, num( "numerator", storage, level, level )
......
......@@ -40,7 +40,7 @@ class PETScCGSolver : public Solver< OperatorType >
const uint_t& level,
const real_t relativeTolerance = 1e-30,
const real_t absoluteTolerance = 1e-12,
const idx_t maxIterations = std::numeric_limits< idx_t >::max() )
const PetscInt maxIterations = std::numeric_limits< PetscInt >::max() )
: allocatedLevel_( level )
, petscCommunicator_( storage->getSplitCommunicatorByPrimitiveDistribution() )
, num( "numerator", storage, level, level )
......
......@@ -40,7 +40,7 @@ class PETScMinResSolver : public Solver< OperatorType >
const uint_t& level,
const real_t relativeTolerance = 1e-30,
const real_t absoluteTolerance = 1e-12,
const idx_t maxIterations = std::numeric_limits< idx_t >::max() )
const PetscInt maxIterations = std::numeric_limits< PetscInt >::max() )
: allocatedLevel_( level )
, petscCommunicator_( storage->getSplitCommunicatorByPrimitiveDistribution() )
, num( "numerator", storage, level, level )
......
......@@ -159,7 +159,7 @@ void petscSolveTest( const uint_t & solverType, const uint_t & blockPrecondition
PETScLUSolver< P2P1TaylorHoodStokesOperator > solver_0( storage, level );
PETScMinResSolver< P2P1TaylorHoodStokesOperator > solver_1( storage, level );
PETScBlockPreconditionedStokesSolver< P2P1TaylorHoodStokesOperator > solver_2(
storage, level, 1e-12, std::numeric_limits< idx_t >::max(), blockPreconditionerType );
storage, level, 1e-12, std::numeric_limits< PetscInt >::max(), blockPreconditionerType );
std::string precondType;
switch ( blockPreconditionerType )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment