[RegCNET] Strange fortran runtime error in 4.7.0
Peter Huszar
peter.huszar at mff.cuni.cz
Tue Oct 23 11:52:02 CEST 2018
Dear regCM users,
I have encountered a strange error when using RegCM version 4.7.0. Starting
any of the components, terrain/sst/icbc/rtegcmMPI, the following error
occurs.
It seems that on line in mod_dynparam.F90
write (stderr,*) 'Error reading dimparam namelist in ',trim(filename)
The unit number corresponding to stderr is already opened as READ.
When printing out the value of this variable, i got 0 (zero).
For some reason, the system reports this unit as opened for READ (and thus
cannot write to it). Is this connected to parameter error_unit
in Share/mod_stdio.F90 which is likely a runtime system parameter?
This was compiled with GNU Fortran
gcc version 4.8.2 20140120 (Red Hat 4.8.2-15) (GCC)
When compiling and running the code with newer, namely gcc version 5.4.0
20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10), I do not got this error.
However, many of our machines use this older GNU fortran so it would be
good to solve this issue.
Thanks for any suggestions
Peter
~]$ ~/src/RegCM-4.7.0/bin/terrainCLM45 ~/work/RegCM/namelists/regcm_test.in
This is Terrain part of RegCM package version 4
SVN Revision: tag-4.7.0 compiled at: data : Oct 19 2018 time: 14:37:03
: this run start at : 2018-10-23 10:40:51+0200
: it is submitted by : svabik
: it is running on : kamet5k.priv.troja.mff.cuni.cz
: in directory : /home/svabik
At line 462 of file mod_dynparam.F90
Fortran runtime error: Cannot write to file opened for READ
--
Mgr. Peter Huszar, Ph.D.
Academic Scientist
Department of Atmospheric Physics, Faculty of Mathematics and Physics,
Charles University
Prague, Czech Republic
peter.huszar at mff.cuni.cz
+420 221 912 530
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ictp.it/pipermail/regcnet/attachments/20181023/4334464d/attachment.html>
More information about the RegCNET
mailing list