GENMAKE : A program for GENerating MAKEfiles for the MITgcm project. For a quick list of options, use "genmake2 -h" or for more detail see the documentation, section "Building the model" (under "Getting Started") at: https://mitgcm.readthedocs.io/ === Processing options files and arguments === getting local config information: none found Warning: MITgcm root directory was not specified ; try using a local copy of MITgcm found at "../../.." getting OPTFILE information: using OPTFILE="/scratch/jm_c/test_svante/MITgcm_pgiAdm/tools/build_options/linux_amd64_pgf77" getting AD_OPTFILE information: using AD_OPTFILE="../../../tools/adjoint_options/adjoint_default" check Fortran Compiler... pass (set FC_CHECK=5/5) check makedepend (local: 0, system: 1, 1) Turning on MPI cpp macros === Checking system libraries === Do we have the system() command using mpif77... yes Do we have the fdate() command using mpif77... yes Do we have the etime() command using mpif77... yes (Fct) Can we call simple C routines (here, "cloc()") using mpif77... yes Can we unlimit the stack size using mpif77... yes Can we register a signal handler using mpif77... yes Can we use stat() through C calls... yes Can we create NetCDF-enabled binaries... yes skip check for LAPACK Libs Can we call FLUSH intrinsic subroutine... yes === Setting defaults === Adding MODS directories: ../code_ad Making source files in eesupp from templates Making source files in pkg/exch2 from templates Making source files in pkg/regrid from templates === Determining package settings === getting package dependency info from ../../../pkg/pkg_depend getting package groups info from ../../../pkg/pkg_groups checking list of packages to compile: using PKG_LIST="../code_ad/packages.conf" before group expansion packages are: gfd cd_code gmredi sbo mnc autodiff cost ctrl grdchk replacing "gfd" with: mom_common mom_fluxform mom_vecinv generic_advdiff debug mdsio rw monitor after group expansion packages are: mom_common mom_fluxform mom_vecinv generic_advdiff debug mdsio rw monitor cd_code gmredi sbo mnc autodiff cost ctrl grdchk applying DISABLE settings applying ENABLE settings packages are: autodiff cd_code cost ctrl debug generic_advdiff gmredi grdchk mdsio mnc mom_common mom_fluxform mom_vecinv monitor rw sbo applying package dependency rules packages are: autodiff cd_code cost ctrl debug generic_advdiff gmredi grdchk mdsio mnc mom_common mom_fluxform mom_vecinv monitor rw sbo Adding STANDARDDIRS='eesupp model' Searching for *OPTIONS.h files in order to warn about the presence of "#define "-type statements that are no longer allowed: found CPP_OPTIONS="../code_ad/CPP_OPTIONS.h" found CPP_EEOPTIONS="../../../eesupp/inc/CPP_EEOPTIONS.h" Creating the list of files for the adjoint compiler. === Creating the Makefile === setting INCLUDES Determining the list of source and include files Writing makefile: Makefile Add the source list for AD code generation Making list of "exceptions" that need ".p" files Making list of NOOPTFILES Add rules for links Adding makedepend marker === Done === original 'Makefile' generated successfully => next steps: > make depend > make adall (<-- adjoint executable with TAF) or > make ftlall (<-- tang-lin executable with TAF) or > make (<-- forward executable)