Changeset 3870 for trunk/LMDZ.MARS/libf/phymars/writediagmicrofi.F
- Timestamp:
- Jul 29, 2025, 3:51:19 PM (3 months ago)
- File:
-
- 1 edited
-
trunk/LMDZ.MARS/libf/phymars/writediagmicrofi.F (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/writediagmicrofi.F
r3369 r3870 81 81 REAL area((nbp_lon+1),nbp_lat) 82 82 83 integer isample83 integer, save :: isample 84 84 integer ierr,ierr2 85 85 integer i,j,l, ig0 … … 124 124 #endif 125 125 126 !***************************************************************127 ! Compute the output rate128 129 isample = steps_per_sol/outputs_per_sol130 131 !***************************************************************132 133 126 ! At very first call, check if there is a "diagfi.def" to use and read it 134 127 ! ----------------------------------------------------------------------- 135 128 IF (firstcall) THEN 136 129 firstcall=.false. 130 131 ! Compute the output rate 132 isample = steps_per_sol/outputs_per_sol 137 133 138 134 !$OMP MASTER … … 264 260 ENDIF 265 261 262 ierr= NF_CLOSE(nid) ! Close the NETCDF file once initialized 263 266 264 endif ! of if (is_master) 267 268 else269 270 if (is_master) then271 ! only the master is required to do this272 273 ! Open the NetCDF file274 ierr = NF_OPEN(fichnom,NF_WRITE,nid)275 endif ! of if (is_master)276 277 265 endif ! if (firstnom.eq.'1234567890') 278 266 … … 297 285 if (is_master) then 298 286 ! only the master is required to do this 287 288 ! Time to write data, open NETCDF file 289 ierr=NF_OPEN(fichnom,NF_WRITE,nid) 290 299 291 if ((nom.eq.firstnom) .and. (microstep.eq.1)) then 300 292 ! We have identified a "first call" (at given date) … … 669 661 endif ! of if (dim.eq.3) elseif(dim.eq.2)... 670 662 663 if (is_master) then 664 ! Close until next variable to dump or next dump iteration 665 ierr= NF_CLOSE(nid) 666 endif 667 671 668 endif ! of if ( MOD(zitau+1,isample) .eq.0.) 672 673 if (is_master) then 674 ierr= NF_CLOSE(nid) 675 endif 676 669 677 670 end
Note: See TracChangeset
for help on using the changeset viewer.
