Changeset 3106 for trunk/LMDZ.COMMON
- Timestamp:
- Oct 26, 2023, 11:30:35 AM (13 months ago)
- Location:
- trunk/LMDZ.COMMON/libf/evolution
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/changelog.txt
r3097 r3106 120 120 Following r3095, 'iniorbit' is now a subroutine of "planete_h.F90". 121 121 Correction of a bug from r3088: "diagfi.nc" was not changed into "diagpem.nc" in the commited version of "writediagpem.F90"! 122 123 == 26/10/2023 == JBC 124 - Correction of a bug when running with ifort, XIOS and no sub-slopes. If compiled with ifort, the 'Reshape' program cashed because of sub-slopes variables were written in the XIOS output but not filled. A new file definition without sub-slopes can be chosen in the xml file to avoid this issue. 125 - Addition in the 'Reshape' program of a check to remove the output files if they exist to prevent a crash. -
trunk/LMDZ.COMMON/libf/evolution/reshape_XIOS_output.F90
r3096 r3106 15 15 16 16 integer :: state, ncid, ncid1, ncid2, nDims, nVars, nGlobalAtts, unlimDimID 17 integer :: i, j, include_parents 17 integer :: i, j, include_parents, cstat 18 18 integer, dimension(:), allocatable :: dimids, varids, dimids_2, varids_2, dimid_var 19 19 real, dimension(:), allocatable :: tempvalues_1d, values_1d … … 21 21 real, dimension(:,:,:), allocatable :: tempvalues_3d, values_3d 22 22 real, dimension(:,:,:,:), allocatable :: tempvalues_4d, values_4d 23 character(1) :: str 223 character(1) :: str 24 24 character(30) :: name_, namevar 25 25 integer :: xtype_var, len_, len_1, len_2, len_lat, len_lon, len_time, len_soil 26 26 integer :: dimid_lon, dimid_lat, dimid_time, dimid_soil, dimid_2, numdims, numatts, numyear 27 logical :: yes 27 28 28 29 do numyear = 1,2 29 30 write(*,*) 'numyear',numyear 30 write(str 2(1:1),'(i1.1)') numyear31 write(str(1:1),'(i1.1)') numyear 31 32 !nf90_open ! open existing netCDF dataset 32 33 !integer :: ncid, state 33 34 !... 34 state = nf90_open(path = "data2reshape"//str2//".nc", mode = nf90_nowrite, ncid = ncid1) 35 if (state /= nf90_noerr) call handle_err(state) 36 37 state = nf90_create(path = "data_PCM_Y"//str2//".nc", cmode=or(nf90_noclobber,nf90_64bit_offset), ncid = ncid2) 35 state = nf90_open(path = "data2reshape"//str//".nc", mode = nf90_nowrite, ncid = ncid1) 36 if (state /= nf90_noerr) call handle_err(state) 37 38 inquire(file = 'data_PCM_Y'//str//'.nc', exist = yes) 39 if (yes) then 40 call execute_command_line('rm data_PCM_Y'//str//'.nc',cmdstat = cstat) 41 if (cstat > 0) then 42 error stop 'Command exection failed!' 43 else if (cstat < 0) then 44 error stop 'Command execution not supported!' 45 endif 46 endif 47 state = nf90_create(path = "data_PCM_Y"//str//".nc", cmode=or(nf90_noclobber,nf90_64bit_offset), ncid = ncid2) 38 48 if (state /= nf90_noerr) call handle_err(state) 39 49
Note: See TracChangeset
for help on using the changeset viewer.