Nemo compilation fails when model path contains a directory name with digits only
When a directory name contains only digits, Nemo cannot be compiled because the directory name is erased from Nemo path.
For example:
cd /home/ar0s/SRC/NEMO/0/branch_dev
./makenemo -m X64_AA_INTEL_OMPI -r ORCA2_ICE_PISCES -j 8
...
ar: creating /home/ar0s/SRC/NEMO/branch_dev/cfgs/ORCA2_ICE_PISCES/BLD/tmp/lib__fcm__nemo.a
mpifort -o nemo.exe /home/ar0s/SRC/NEMO/branch_dev/cfgs/ORCA2_ICE_PISCES/BLD/obj/nemo.o ...
Compilation fails in this case because the 0
directory is not present anymore in the path used by ar
and mpifort
to generate Nemo object and executable
I don't know if it comes from makenemo
, mk
scripts or FCM
itself (I tried the latest version of FCM
and the issue is still present)...
Compilation works well if 0
directory is renamed as nemo0
.
Any suggestion ?