GEOS
Macros
KrylovUtils.hpp File Reference
#include "codingUtilities/Utilities.hpp"

Go to the source code of this file.

Macros

#define GEOS_KRYLOV_BREAKDOWN_IF_ZERO(VAR)
 Exit solver iteration and report a breakdown if value too close to zero. More...
 

Macro Definition Documentation

◆ GEOS_KRYLOV_BREAKDOWN_IF_ZERO

#define GEOS_KRYLOV_BREAKDOWN_IF_ZERO (   VAR)
Value:
if( isZero( VAR, 0.0 ) ) \
{ \
if( m_params.logLevel >= 1 ) \
{ \
GEOS_LOG_RANK_0( "Breakdown in " << methodName() << ": " << #VAR << " = " << VAR ); \
} \
m_result.status = LinearSolverResult::Status::Breakdown; \
break; \
} \

Exit solver iteration and report a breakdown if value too close to zero.

Parameters
VARthe variable or expression

Definition at line 28 of file KrylovUtils.hpp.