CH-Earth / CWARHM

GNU General Public License v3.0
29 stars 35 forks source link

Outdated gfortran compiler for mizuRoute compilation on npc #171

Open DarriEy opened 7 months ago

DarriEy commented 7 months ago

Use

/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/gcc-7.3.0/bin/gfortran

DarriEy commented 7 months ago

Tried running mizuRoute on Graham and it failed to initialise routing due to being built with an outdated gfortran compiler. Updated path to gfortran compiler and associated netCDF library, recompiled mizoRoute and it works as expected.

FC_EXE=/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/gcc-7.3.0/bin/gfortran NCDF_PATH=/cvmfs/soft.computecanada.ca/easybuild/software/2017/avx2/Compiler/gcc7.3/netcdf-fortran/4.4.4

wknoben commented 7 months ago

This issue appeared while reading the mizuRoute control file as:

Internal Error: get_unit(): Bad internal unit KIND

image

Note that compiler versions are hard-coded in the compile script, so loading them externally is not enough. Scripts need to be changed too.