Skip to content

Commit

Permalink
CHG: added check to tell useers they cannot use both PETSc and CoDiPack
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuMorlighem committed Jul 29, 2024
1 parent 3a68cbf commit c88b7a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions m4/issm_options.m4
Original file line number Diff line number Diff line change
Expand Up @@ -2510,6 +2510,9 @@ AC_DEFUN([ISSM_OPTIONS],[
dnl Check that if we run ADOL-C, we don't use PETSc for now
if test "x${HAVE_ADOLC}" == "xyes" && test "x${HAVE_PETSC}" == "xyes"; then
AC_MSG_ERROR([cannot compile ISSM with both PETSc and ADOL-C!]);
fi
if test "x${HAVE_PETSC}" == "xyes" && test "x${HAVE_CODIPACK}" == "xyes"; then
AC_MSG_ERROR([cannot compile ISSM with both PETSc and CoDiPack]);
fi
if test "x${HAVE_ADOLC}" == "xyes" && test "x${HAVE_CODIPACK}" == "xyes"; then
AC_MSG_ERROR([cannot compile ISSM with both ADOL-C and CoDiPack!]);
Expand Down

0 comments on commit c88b7a0

Please sign in to comment.