Skip to content

Changes

Started 6 mo 4 days ago
Took 11 min on macOS-Intel

Summary

  1. configure.ac: internalise CoDiPack/MediPack flags for --enable-ad (commit: 5573a54) (details)
Commit 5573a54cc120d2d6e3117a037f0aebc9b9e60cec by justinkinjun.hew
configure.ac: internalise CoDiPack/MediPack flags for --enable-ad

* Adds --enable-ad plus --with-{codi,medi}pack-dir options.
* When --enable-ad is chosen:
    - Defines ISSM_USE_AD for conditional compilation.
    - Injects include paths, library paths and –lcodi/–lmedi into
      AM_CPPFLAGS, AM_LDFLAGS and LIBS so every sub-dir picks them up.
    - Automatically disables PETSc to avoid an impossible combo.
* Emits AM_CONDITIONAL(USE_AD) for any Makefile.am that still wants it.
* Leaves all Makefile.am files untouched; the Spack recipe no longer
  needs setup_build_environment() hacks.

Doing this upstream means:
  • Classic builds behave exactly as before.
  • AD builds work out-of-the-box for Spack, EasyBuild or manual
    ./configure invocations.

style changes and revert

issm options repetition removed
(commit: 5573a54)
The file was modifiedconfigure.ac (diff)