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

Philippe 06/01/2021: bugfix in IO_Select_split_file

parent f73111b6
No related branches found
No related tags found
No related merge requests found
......@@ -590,6 +590,8 @@ call IO_Field_create_nc4( tzfile, tzfield, kshape = Shape( pfield ), oiscoord =
istatus = NF90_PUT_VAR(TZFILE%NNCID, IVARID, PFIELD)
IF (istatus /= NF90_NOERR) CALL IO_Err_handle_nc4(istatus,'IO_Field_write_nc4_X2','NF90_PUT_VAR',trim(TZFIELD%CMNHNAME),KRESP)
if ( Present( kvertlevel ) ) deallocate( tzfield )
END SUBROUTINE IO_Field_write_nc4_X2
......@@ -1133,6 +1135,8 @@ if ( Size( pfield ) > 0 ) then
call IO_Err_handle_nc4( istatus, 'IO_Field_partial_write_nc4_X2', 'NF90_PUT_VAR', Trim( tzfield%cmnhname ), kresp )
end if
if ( Present( kvertlevel ) ) deallocate( tzfield )
end subroutine IO_Field_partial_write_nc4_X2
......@@ -1920,6 +1924,7 @@ if ( Present( kvertlevel ) ) then
Write( ysuffix, '( i4.4 )' ) kvertlevel
tpfileout => tpfile%tfiles_ioz(kzfile)%tfile
!Copy the values of tpfield to the pointer tpfieldout (new tfielddata)
Allocate( tpfieldout )
tpfieldout = tpfield
tpfieldout%cmnhname = Trim( tpfieldout%cmnhname ) // ysuffix
if ( Len_trim( tpfieldout%cstdname ) > 0 ) tpfieldout%cstdname = Trim( tpfieldout%cstdname ) // '_at_level_' // ysuffix
......
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