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

Philippe 05/09/2019: disable IO_WRITE_COORDVAR_NC4 for Z-split files

parent 1b17c992
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
! to disable writes (for bench purposes) ! to disable writes (for bench purposes)
! P. Wautelet 04/04/2019: force write on stderr for all processes in print_msg if abort ! P. Wautelet 04/04/2019: force write on stderr for all processes in print_msg if abort
! P. Wautelet 02/07/2019: flush messages also for files opened with newunit (logical unit can be negative) ! P. Wautelet 02/07/2019: flush messages also for files opened with newunit (logical unit can be negative)
! P. Wautelet 05/09/2019: disable IO_WRITE_COORDVAR_NC4 for Z-split files
! !
MODULE MODE_IO_ll MODULE MODE_IO_ll
...@@ -721,10 +722,12 @@ CONTAINS ...@@ -721,10 +722,12 @@ CONTAINS
DO IFILE=1,TPFILE%NSUBFILES_IOZ DO IFILE=1,TPFILE%NSUBFILES_IOZ
TZFILE => TPFILE%TFILES_IOZ(IFILE)%TFILE TZFILE => TPFILE%TFILES_IOZ(IFILE)%TFILE
#if defined(MNH_IOCDF4) #if defined(MNH_IOCDF4)
!Write coordinates variables in netCDF file !Remark: IO_WRITE_COORDVAR_NC4 disabled (for the moment) for Z-split files
IF (TZFILE%CMODE == 'WRITE' .AND. (TZFILE%CFORMAT=='NETCDF4' .OR. TZFILE%CFORMAT=='LFICDF4')) THEN ! because it introduce a serialization due to MPI communications inside the call
CALL IO_WRITE_COORDVAR_NC4(TZFILE,HPROGRAM_ORIG=HPROGRAM_ORIG) ! !Write coordinates variables in netCDF file
END IF ! IF (TZFILE%CMODE == 'WRITE' .AND. (TZFILE%CFORMAT=='NETCDF4' .OR. TZFILE%CFORMAT=='LFICDF4')) THEN
! CALL IO_WRITE_COORDVAR_NC4(TZFILE,HPROGRAM_ORIG=HPROGRAM_ORIG)
! END IF
#endif #endif
IF (TZFILE%LMASTER) THEN IF (TZFILE%LMASTER) THEN
if (tzfile%cformat == 'LFI' .or. tzfile%cformat == 'LFICDF4') call io_close_file_lfi(tzfile,iresp2) if (tzfile%cformat == 'LFI' .or. tzfile%cformat == 'LFICDF4') call io_close_file_lfi(tzfile,iresp2)
......
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