18 #ifndef GEOSX_LINEARALGEBRA_INTERFACES_COMMON_HPP_ 19 #define GEOSX_LINEARALGEBRA_INTERFACES_COMMON_HPP_ 26 #define GEOSX_LAI_RUNTIME_ASSERT 1 27 #if GEOSX_LAI_RUNTIME_ASSERT 33 #define GEOSX_LAI_ASSERT( expr ) GEOSX_ERROR_IF( !(expr), "" ) 40 #define GEOSX_LAI_ASSERT_MSG( expr, msg ) GEOSX_ERROR_IF( !(expr), msg ) 47 #define GEOSX_LAI_ASSERT_EQ( lhs, rhs ) GEOSX_ERROR_IF_NE( lhs, rhs ) 54 #define GEOSX_LAI_ASSERT_NE( lhs, rhs ) GEOSX_ERROR_IF_EQ( lhs, rhs ) 61 #define GEOSX_LAI_ASSERT_GT( lhs, rhs ) GEOSX_ERROR_IF_GE( rhs, lhs ) 68 #define GEOSX_LAI_ASSERT_GE( lhs, rhs ) GEOSX_ERROR_IF_GT( rhs, lhs ) 75 #define GEOSX_LAI_ASSERT( expr ) GEOSX_ASSERT( expr ) 82 #define GEOSX_LAI_ASSERT_MSG( expr, msg ) GEOSX_ASSERT_MSG( expr, msg ) 89 #define GEOSX_LAI_ASSERT_EQ( lhs, rhs ) GEOSX_ASSERT_EQ( lhs, rhs ) 96 #define GEOSX_LAI_ASSERT_NE( lhs, rhs ) GEOSX_ASSERT_NE( lhs, rhs ) 103 #define GEOSX_LAI_ASSERT_GT( lhs, rhs ) GEOSX_ASSERT_GT( lhs, rhs ) 110 #define GEOSX_LAI_ASSERT_GE( lhs, rhs ) GEOSX_ASSERT_GE( lhs, rhs ) 117 #define GEOSX_LAI_CHECK_ERROR( call ) \ 119 auto const ierr = call; \ 120 GEOSX_ERROR_IF_NE_MSG( ierr, 0, "Error in call to " << #call ); \ 127 #define GEOSX_LAI_CHECK_ERROR_NNEG( call ) \ 129 auto const ierr = call; \ 130 GEOSX_ERROR_IF_GT_MSG( 0, ierr, "Error in call to " << #call ); \ 168 #endif //GEOSX_LINEARALGEBRA_INTERFACES_COMMON_HPP_ RAJA::PERM_JI COL_MAJOR_PERM
typedef LAI col major permutation consistent with RAJA order
RAJA::PERM_IJ ROW_MAJOR_PERM
typedef LAI row major permutation consistent with RAJA order
constexpr camp::idx_t getStrideOneDimension(camp::idx_seq< INDICES... >)