Changeset 4124 for LMDZ6/trunk/libf/dyn3d
- Timestamp:
- Apr 8, 2022, 4:47:04 PM (3 years ago)
- Location:
- LMDZ6/trunk/libf/dyn3d
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/dyn3d/check_isotopes.F
r4050 r4124 1 1 subroutine check_isotopes_seq(q,ip1jmp1,err_msg) 2 USE infotrac, ONLY: nqtot, nqo, niso, ntraciso, n traceurs_zone,3 & ok_isotopes, ok_isotrac,use_iso,2 USE infotrac, ONLY: nqtot, nqo, niso, ntraciso, nzone, 3 & use_iso, 4 4 & iqiso, index_trac,indnum_fn_num, tnat 5 5 implicit none … … 29 29 real deltaD 30 30 31 if ( ok_isotopes) then31 if (niso > 0) then 32 32 33 33 write(*,*) 'check_isotopes 31: err_msg=',err_msg … … 130 130 131 131 !write(*,*) 'check_isotopes 129' 132 if ( ok_isotrac) then132 if (nzone > 0) then 133 133 134 134 if (use_iso(2).and.use_iso(1)) then 135 do izone=1,n traceurs_zone135 do izone=1,nzone 136 136 ixt=index_trac(izone,indnum_fn_num(2)) 137 137 ieau=index_trac(izone,indnum_fn_num(1)) … … 157 157 enddo ! do k=1,llm 158 158 enddo ! do phase=1,nqo 159 enddo !do izone=1,n traceurs_zone159 enddo !do izone=1,nzone 160 160 endif !if (use_iso(2).and.use_iso(1)) then 161 161 … … 167 167 xtractot=0.0 168 168 xiiso=q(i,k,iq) 169 do izone=1,n traceurs_zone169 do izone=1,nzone 170 170 iq=iqiso(index_trac(izone,iiso),phase) 171 171 xtractot=xtractot+ q(i,k,iq) … … 185 185 ! bidouille pour éviter divergence: 186 186 if (abs(xtractot).gt.ridicule) then 187 do izone=1,n traceurs_zone187 do izone=1,nzone 188 188 ixt=index_trac(izone,iiso) 189 189 q(i,k,iq)=q(i,k,iq)/xtractot*xiiso 190 enddo !do izone=1,n traceurs_zone190 enddo !do izone=1,nzone 191 191 endif !if ((abs(xtractot).gt.ridicule) then 192 192 enddo !DO i = 1,ip1jmp1 … … 195 195 enddo !do iiso=1,niso 196 196 197 endif !if ( ok_isotrac) then198 199 endif ! if ( ok_isotopes)197 endif !if (nzone > 0) 198 199 endif ! if (niso > 0) 200 200 !write(*,*) 'check_isotopes 198' 201 201 -
LMDZ6/trunk/libf/dyn3d/dynetat0.F90
r4120 r4124 6 6 ! Purpose: Initial state reading. 7 7 !------------------------------------------------------------------------------- 8 USE infotrac, ONLY: nqtot, tracers, niso, iqiso, iso_indnum, iso_num, tnat, alpha_ideal, ok_isotopes,iH2O8 USE infotrac, ONLY: nqtot, tracers, niso, iqiso, iso_indnum, iso_num, tnat, alpha_ideal, iH2O 9 9 USE strings_mod, ONLY: maxlen, msg, strStack, real2str 10 10 USE netcdf, ONLY: NF90_OPEN, NF90_NOWRITE, NF90_INQ_VARID, & -
LMDZ6/trunk/libf/dyn3d/iniacademic.F90
r4120 r4124 5 5 6 6 USE filtreg_mod, ONLY: inifilr 7 USE infotrac, ONLY: nqtot, niso _possibles, ok_isotopes, ok_iso_verif, tnat, alpha_ideal, &7 USE infotrac, ONLY: nqtot, niso, niso_possibles, ok_iso_verif, tnat, alpha_ideal, & 8 8 iqiso, tracers, iso_indnum, iso_num 9 9 USE control_mod, ONLY: day_step,planet_type … … 284 284 ! iName = tracers(iq)%iso_iName ! (next commit) 285 285 iName = iso_num(iq) 286 if ( .NOT.ok_isotopes.OR. iName <= 0) CYCLE286 if (niso <= 0 .OR. iName <= 0) CYCLE 287 287 iPhase = tracers(iq)%iso_iPhase 288 288 iqParent = tracers(iq)%iqParent -
LMDZ6/trunk/libf/dyn3d/qminimum.F
r2600 r4124 4 4 SUBROUTINE qminimum( q,nqtot,deltap ) 5 5 6 USE infotrac, ONLY: ok_isotopes,ntraciso,iqiso,ok_iso_verif6 USE infotrac, ONLY: niso, ntraciso,iqiso,ok_iso_verif 7 7 IMPLICIT none 8 8 c … … 59 59 if (seuil_liq - q(i,k,iq_liq) .gt. 0.d0 ) then 60 60 61 if (ok_isotopes) then 62 zx_defau_diag(i,k,iq_liq)=AMAX1 61 if (niso > 0) zx_defau_diag(i,k,iq_liq)=AMAX1 63 62 : ( seuil_liq - q(i,k,iq_liq), 0.0 ) 64 endif !if (ok_isotopes) then65 63 66 64 q(i,k,iq_vap) = q(i,k,iq_vap) + q(i,k,iq_liq) - seuil_liq … … 80 78 if ( seuil_vap - q(i,k,iq) .gt. 0.d0 ) then 81 79 82 if (ok_isotopes) then 83 zx_defau_diag(i,k,iq)=AMAX1( seuil_vap - q(i,k,iq), 0.0 ) 84 endif !if (ok_isotopes) then 80 if (niso > 0) 81 & zx_defau_diag(i,k,iq)=AMAX1( seuil_vap - q(i,k,iq), 0.0 ) 85 82 86 83 q(i,k-1,iq) = q(i,k-1,iq) - ( seuil_vap - q(i,k,iq) ) * … … 110 107 111 108 !write(*,*) 'qminimum 128' 112 if ( ok_isotopes) then109 if (niso > 0) then 113 110 ! CRisi: traiter de même les traceurs d'eau 114 111 ! Mais il faut les prendre à l'envers pour essayer de conserver la … … 184 181 endif !if (ok_iso_verif) then 185 182 186 endif !if ( ok_isotopes) then183 endif !if (niso > 0) then 187 184 !write(*,*) 'qminimum 188' 188 185
Note: See TracChangeset
for help on using the changeset viewer.