Changeset 3924
- Timestamp:
- Oct 6, 2025, 11:58:26 AM (4 weeks ago)
- Location:
- trunk/LMDZ.MARS
- Files:
-
- 2 edited
-
changelog.txt (modified) (1 diff)
-
libf/phymars/writediagfi.F (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/changelog.txt
r3923 r3924 4985 4985 file is opened/closed once, thus saving significant computing time. When true, 4986 4986 the opening frequency is at output frequency (required in debug mode). 4987 4988 == 06/09/2025 == JM 4989 Fixing revision 3923: adding OMP_THREADPRIVATE to new save variables. -
trunk/LMDZ.MARS/libf/phymars/writediagfi.F
r3923 r3924 83 83 character(len=27),save :: prevnom='1234567890' 84 84 character(len=27),save :: lastnom='1234567890' 85 !$OMP THREADPRIVATE(zitau, firstnom)85 !$OMP THREADPRIVATE(zitau,lastzitau,firstnom,prevnom,lastnom) 86 86 87 87 ! Ajouts … … 90 90 integer :: idim,varid 91 91 integer, save :: nid 92 !$OMP THREADPRIVATE(nid) 92 93 character(len=*),parameter :: fichnom="diagfi.nc" 93 94 integer, dimension(4) :: id … … 290 291 ! if the very first time to write, open 291 292 if ((nom.eq.firstnom).and.((zitau+1)/isample.eq.1)) then 292 write(*,*) "Open NETCDF file for firstnom=", firstnom, " and zitau=", zitau 293 write(*,*) "Open NETCDF file for firstnom=", firstnom 294 write(*,*) "zitau=", zitau 293 295 ierr=NF_OPEN(fichnom,NF_WRITE,nid) ! open once in all simu 294 296 endif … … 639 641 ! if the very last time to write, close 640 642 if ((nom.eq.lastnom).and.(zitau.eq.lastzitau)) then 641 write(*,*) "Close NETCDF file for lastnom=",lastnom, "and zitau=", zitau 643 write(*,*) "Close NETCDF file for lastnom=",lastnom 644 write(*,*) "zitau=",zitau 642 645 ierr = NF_CLOSE(nid) ! close once in all simu 643 646 endif
Note: See TracChangeset
for help on using the changeset viewer.
