1 | # compiler options for KARA (using GNU compiler) |
---|
2 | # |
---|
3 | # GNU_OMPI (NEMO-4.0 + XIOS-2.5) |
---|
4 | # gcc/9.3.0 openmpi/4.0.5_gcc9.3.0 hdf5/1.8.18_gcc9.3.0 netcdf/4.7.1_gcc9.3.0 xios/2.5_rev1903_gcc9.3.0 |
---|
5 | # |
---|
6 | # GNU_OMPI (NEMO-4.2 + XIOS-TRUNK) |
---|
7 | # gcc/9.3.0 openmpi/4.0.5_gcc9.3.0 hdf5/1.8.18_gcc9.3.0 netcdf/4.7.1_gcc9.3.0 xios/trunk_rev2136_gcc9.3.0 |
---|
8 | # |
---|
9 | # |
---|
10 | # NCDF_INC netcdf4 include file |
---|
11 | # NCDF_LIB netcdf4 library |
---|
12 | # XIOS_INC xios include file (taken into accound only if key_xios is activated) |
---|
13 | # XIOS_LIB xios library (taken into accound only if key_xios is activated) |
---|
14 | # OASIS_INC oasis include file (taken into accound only if key_oasis3 is activated) |
---|
15 | # OASIS_LIB oasis library (taken into accound only if key_oasis3 is activated) |
---|
16 | # |
---|
17 | # FC Fortran compiler command |
---|
18 | # FCFLAGS Fortran compiler flags |
---|
19 | # FFLAGS Fortran 77 compiler flags |
---|
20 | # LD linker |
---|
21 | # LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries |
---|
22 | # FPPFLAGS pre-processing flags |
---|
23 | # AR assembler |
---|
24 | # ARFLAGS assembler flags |
---|
25 | # MK make |
---|
26 | # USER_INC complete list of include files |
---|
27 | # USER_LIB complete list of libraries to pass to the linker |
---|
28 | # CC C compiler used to compile conv for AGRIF |
---|
29 | # CFLAGS compiler flags used with CC |
---|
30 | # |
---|
31 | # Note that: |
---|
32 | # - unix variables "$..." are accpeted and will be evaluated before calling fcm. |
---|
33 | # - fcm variables are starting with a % (and not a $) |
---|
34 | # |
---|
35 | #--------------------------------------------------------------------------------------------- |
---|
36 | #--------------------------------------------------------------------------------------------- |
---|
37 | # All NETCDF and HDF paths are empty as they are automatically defined through environment |
---|
38 | # variables by the load of modules |
---|
39 | #--------------------------------------------------------------------------------------------- |
---|
40 | #--------------------------------------------------------------------------------------------- |
---|
41 | # |
---|
42 | # |
---|
43 | %NCDF_INC -I${NETCDF_INC} |
---|
44 | %NCDF_LIB -L${NETCDF_LIB} -lnetcdff -lnetcdf -L${HDF5_LIB} -lhdf5_hl -lhdf5 |
---|
45 | %XIOS_INC -I${XIOS_INC} |
---|
46 | %XIOS_LIB -L${XIOS_LIB} -lxios |
---|
47 | %OASIS_INC -I${OASIS_DIR}/build/lib/mct -I${OASIS_DIR}/build/lib/psmile.MPI1 |
---|
48 | %OASIS_LIB -L${OASIS_DIR}/lib -lpsmile.MPI1 -lmct -lmpeu -lscrip |
---|
49 | |
---|
50 | %CPP cpp -Dkey_nosignedzero |
---|
51 | %FC mpif90 -c -cpp |
---|
52 | #%FCFLAGS -fdefault-real-8 -O2 -ftree-vectorize -funroll-all-loops -march=skylake-avx512 -ffree-line-length-none -Wno-missing-include-dirs |
---|
53 | %FCFLAGS -fdefault-real-8 -O1 -march=skylake-avx512 -ffree-line-length-none -Wno-missing-include-dirs |
---|
54 | %FFLAGS %FCFLAGS |
---|
55 | %LD mpif90 |
---|
56 | %LDFLAGS -lstdc++ |
---|
57 | %FPPFLAGS -P -traditional |
---|
58 | %AR ar |
---|
59 | %ARFLAGS rs |
---|
60 | %MK gmake |
---|
61 | %USER_INC %XIOS_INC %OASIS_INC %NCDF_INC |
---|
62 | %USER_LIB %XIOS_LIB %OASIS_LIB %NCDF_LIB |
---|
63 | |
---|
64 | %CC gcc |
---|
65 | %CFLAGS -O0 |
---|