Skip to content

Commit e8fdb29

Browse files
committed
Adding HYPRE_RELEASE_NUMBER check
1 parent 50666bf commit e8fdb29

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Src/Extern/HYPRE/AMReX_HypreIJIface.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ void HypreIJIface::ilu_precond_configure (const std::string& prefix)
393393

394394

395395
HypreOptParse hpp(prefix, m_precond);
396+
#if defined(HYPRE_RELEASE_NUMBER) && (HYPRE_RELEASE_NUMBER >= 22100)
396397
// Process ILU smoother parameters
397398
// ParILUK
398399
hpp("ilu_type", HYPRE_ILUSetType);
@@ -406,13 +407,16 @@ void HypreIJIface::ilu_precond_configure (const std::string& prefix)
406407
// ILUT
407408
hpp("ilu_max_nnz_per_row", HYPRE_ILUSetMaxNnzPerRow);
408409
hpp("ilu_drop_threshold", HYPRE_ILUSetDropThreshold);
410+
#if defined(HYPRE_RELEASE_NUMBER) && (HYPRE_RELEASE_NUMBER >= 22900)
409411
hpp("ilu_iterative_algorithm_type", HYPRE_ILUSetIterativeSetupType);
410412
hpp("ilu_iterative_setup_type", HYPRE_ILUSetIterativeSetupOption);
411413
hpp("ilu_iterative_max_iter", HYPRE_ILUSetIterativeSetupMaxIter);
412414
hpp("ilu_iterative_tolerance", HYPRE_ILUSetIterativeSetupTolerance);
413415
hpp("ilu_tri_solve", HYPRE_ILUSetTriSolve);
414416
hpp("ilu_lower_jacobi_iters", HYPRE_ILUSetLowerJacobiIters);
415417
hpp("ilu_upper_jacobi_iters", HYPRE_ILUSetUpperJacobiIters);
418+
#endif
419+
#endif
416420
}
417421

418422
void HypreIJIface::boomeramg_solver_configure (const std::string& prefix)

0 commit comments

Comments
 (0)