Changeset 2550 for trunk/LMDZ.GENERIC/libf
- Timestamp:
- Jul 9, 2021, 5:31:31 PM (3 years ago)
- Location:
- trunk/LMDZ.GENERIC/libf/phystd
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/initracer.F
r2543 r2550 5 5 USE callkeys_mod, only: water 6 6 USE recombin_corrk_mod, ONLY: ini_recombin 7 USE mod_phys_lmdz_para, only: is_master, bcast 7 8 IMPLICIT NONE 8 9 c======================================================================= … … 45 46 c----------------------------------------------------------------------- 46 47 47 moderntracdef=.false. ! For modern traceur.def (default false, old type) 48 49 open(407, form = 'formatted', status = 'old', 48 if (is_master) then ! only the master proc/thread needs do this 49 50 moderntracdef=.false. ! For modern traceur.def (default false, old type) 51 52 open(407, form = 'formatted', status = 'old', 50 53 $ file = 'traceur.def', iostat=ierr) 51 if (ierr /=0) then52 call abort_physic('initracer',53 $ 'Problem in opening traceur.def',1)54 end if54 if (ierr /=0) then 55 call abort_physic('initracer', 56 $ 'Problem in opening traceur.def',1) 57 end if 55 58 !! - Modif. by JVO and YJ for modern planetary traceur.def --------------- 56 READ(407,'(A)') tracline57 IF (trim(tracline).ne.'#ModernTrac-v1') THEN ! Test modern traceur.def59 READ(407,'(A)') tracline 60 IF (trim(tracline).ne.'#ModernTrac-v1') THEN ! Test modern traceur.def 58 61 READ(tracline,*) nqtot ! Try standard traceur.def 59 ELSE62 ELSE 60 63 moderntracdef = .true. 61 64 DO … … 76 79 ENDIF 77 80 ENDDO 78 ENDIF ! if modern or standard traceur.def 81 ENDIF ! if modern or standard traceur.def 82 83 endif ! of if (is_master) 84 85 ! share the information with other procs/threads (if any) 86 CALL bcast(nqtot) 87 CALL bcast(moderntracdef) 88 79 89 !! ----------------------------------------------------------------------- 80 90 !! For the moment number of tracers in dynamics and physics are equal … … 396 406 ! Get data of tracers 397 407 do iq=1,nqtot 398 read(407,'(A)') tracline 408 if (is_master) read(407,'(A)') tracline 409 call bcast(tracline) 399 410 call get_tracdat(iq, tracline) 400 411 enddo 401 412 402 close(407)413 if (is_master) close(407) 403 414 404 415 ! Calculate number of species in the chemistry -
trunk/LMDZ.GENERIC/libf/phystd/nonoro_gwd_ran_mod.F90
r2403 r2550 7 7 REAL, allocatable, save :: east_gwstress(:, :) ! Eastward stress profile 8 8 REAL, allocatable, save :: west_gwstress(:, :) ! Westward stress profile 9 9 !$OMP THREADPRIVATE(du_nonoro_gwd,dv_nonoro_gwd,east_gwstress,west_gwstress) 10 10 CONTAINS 11 11 -
trunk/LMDZ.GENERIC/libf/phystd/phys_state_var_mod.F90
r2537 r2550 107 107 real,dimension(:,:),allocatable,save :: dEzRadsw ! Radiative heating (W.m-2) 108 108 real,dimension(:,:),allocatable,save :: dEzRadlw ! Radiative heating (W.m-2) 109 !$OMP THREADPRIVATE(dEzdiff,dE zdiffs,dEzRadsw,dEzRadlw)109 !$OMP THREADPRIVATE(dEzdiff,dEdiff,dEdiffs,dEzRadsw,dEzRadlw) 110 110 111 111 real,dimension(:),allocatable,save :: madjdE ! Heat from moistadj (W.m-2) -
trunk/LMDZ.GENERIC/libf/phystd/sugas_corrk.F90
r2543 r2550 65 65 if (.not. moderntracdef) use_premix=.true. ! Added by JVO for compatibility with 'old' traceur.def 66 66 67 !$OMP MASTER 67 68 if (use_premix) then ! use_premix flag added by JVO, thus if pure recombining then premix is skipped 68 69 … … 84 85 endif 85 86 86 !$OMP MASTER87 87 ! check that database matches varactive toggle 88 88 open(111,file=TRIM(file_path),form='formatted') … … 765 765 !$OMP BARRIER 766 766 767 return768 767 end subroutine sugas_corrk
Note: See TracChangeset
for help on using the changeset viewer.