Changeset 1759 for LMDZ5/trunk/libf/phydev
- Timestamp:
- May 24, 2013, 11:52:12 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phydev/physiq.F90
r1686 r1759 75 75 integer,save :: iwrite_phys ! output every iwrite_phys physics step 76 76 !$OMP THREADPRIVATE(iwrite_phys) 77 integer :: iwrite_phys_omp ! intermediate variable to read iwrite_phys 77 78 real :: t_ops ! frequency of the IOIPSL operations (eg average over...) 78 79 real :: t_wrt ! frequency of the IOIPSL outputs … … 86 87 ! Initialize outputs: 87 88 itau0=0 88 iwrite_phys=1 !default: output every physics timestep 89 call getin("iwrite_phys",iwrite_phys) 89 !$OMP MASTER 90 iwrite_phys_omp=1 !default: output every physics timestep 91 ! NB: getin() is not threadsafe; only one thread should call it. 92 call getin("iwrite_phys",iwrite_phys_omp) 93 !$OMP END MASTER 94 !$OMP BARRIER 95 iwrite_phys=iwrite_phys_omp 90 96 t_ops=pdtphys*iwrite_phys ! frequency of the IOIPSL operation 91 97 t_wrt=pdtphys*iwrite_phys ! frequency of the outputs in the file
Note: See TracChangeset
for help on using the changeset viewer.