Skip to content
Snippets Groups Projects
Commit c6a5120a authored by WAUTELET Philippe's avatar WAUTELET Philippe
Browse files

Philippe 21/11/2019: bugfix: close call could be done on a non-opened file

(cherry picked from commit eb588b37d22491a9f83695ddb158275fc2edc052)
parent 47608e15
No related branches found
No related tags found
No related merge requests found
...@@ -3,13 +3,12 @@ ...@@ -3,13 +3,12 @@
!MNH_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt !MNH_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
!MNH_LIC for details. version 1. !MNH_LIC for details. version 1.
!----------------------------------------------------------------- !-----------------------------------------------------------------
!! MODIFICATIONS ! Modifications:
!! ------------- ! J. Escobar 03/12/2014: typo form -> from
!! ! P. Wautelet 03/10/2017: set IP and NPROC in INIT_NMNH_COMM_WORLD
!! J.Escobar 3/12/2014 : typo form -> from ! P. Wautelet 10/01/2019: use NEWUNIT argument of OPEN
!! Philippe 03/10/2017: set IP and NPROC in INIT_NMNH_COMM_WORLD ! P. Wautelet 21/11/2019: bugfix: close call could be done on a non-opened file
!! Philippe Wautelet: 10/01/2019: use NEWUNIT argument of OPEN !-----------------------------------------------------------------
!!
MODULE MODE_MNH_WORLD MODULE MODE_MNH_WORLD
IMPLICIT NONE IMPLICIT NONE
CHARACTER(len=*), parameter :: conf_mnh_world="conf_mnh_world.nam" CHARACTER(len=*), parameter :: conf_mnh_world="conf_mnh_world.nam"
...@@ -69,8 +68,8 @@ CONTAINS ...@@ -69,8 +68,8 @@ CONTAINS
IF (IERR.EQ.0) THEN IF (IERR.EQ.0) THEN
READ(unit=ilu,NML=NAM_CONF_MNH_WORLD) READ(unit=ilu,NML=NAM_CONF_MNH_WORLD)
WRITE(*,NAM_CONF_MNH_WORLD) WRITE(*,NAM_CONF_MNH_WORLD)
CLOSE(unit=ILU)
ENDIF ENDIF
CLOSE(unit=ILU)
ENDIF ENDIF
iroot = 0 iroot = 0
! Brodcast mapping ! Brodcast mapping
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment