NAG compiler, version 6.2, build 6214 does not work on EVE
With the current develop branch, we get a Segmentation Fault when running on Eve (frontend1):
make compiler=nag system=eve release=debug && ./mhm
The code occurs at each time a call to write is encountered, namely in src/mo_nml.f90
, line 308 (this is where the error is thrown):
write(test, '(A,A)') '&', tolower(name)
but if we make a workaround to that call, the program raises another SegmentationFault at src/mo_netcdf.f90
, line 1613:
write(msg, *) id
I successfully run and compile the code at my local system with NAG 6.2 (6214). It also applies to other Fortran projects, e.g. MPR. Locally I have gcc version 8.1, netcdf-fortran 4.4.4 compiled with NAG 6.2.
I think it has, something to do with the way the compiler is set up on Eve. Any ideas @rakovec, @krausec, @lberg?