Changeset 4050 for LMDZ6/trunk/libf/dyn3dmem/dynetat0_loc.F90
- Timestamp:
- Dec 23, 2021, 6:54:17 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/dyn3dmem/dynetat0_loc.F90
r4046 r4050 7 7 !------------------------------------------------------------------------------- 8 8 USE parallel_lmdz 9 USE infotrac 9 USE infotrac, ONLY: nqtot, tracers, iqiso, iso_indnum, tnat, alpha_ideal, ok_isotopes, maxlen 10 10 USE netcdf, ONLY: NF90_OPEN, NF90_INQUIRE_DIMENSION, NF90_INQ_VARID, & 11 11 NF90_NOWRITE, NF90_CLOSE, NF90_INQUIRE_VARIABLE, NF90_GET_VAR, NF90_NoErr 12 12 USE control_mod, ONLY: planet_type 13 USE strings_mod, ONLY: maxlen14 13 USE assert_eq_m, ONLY: assert_eq 15 14 USE comvert_mod, ONLY: pa,preff … … 42 41 CHARACTER(LEN=maxlen) :: msg, var, modname 43 42 INTEGER, PARAMETER :: length=100 44 INTEGER :: iq, fID, vID, idecal, ierr 43 INTEGER :: iq, fID, vID, idecal, ierr, iqParent, iName, iZone, iPhase 45 44 REAL :: time, tab_cntrl(length) !--- RUN PARAMS TABLE 46 45 REAL, ALLOCATABLE :: vcov_glo(:,:),masse_glo(:,:), ps_glo(:) … … 174 173 !--- CRisi: for isotops, theoretical initialization using very simplified 175 174 ! Rayleigh distillation las. 176 IF(ok_isotopes.AND.iso_num(iq)>0) THEN 177 IF(zone_num(iq)==0) q(:,:,iq)=q(:,:,iqpere(iq))*tnat(iso_num(iq)) & 178 & *(q(:,:,iqpere(iq))/30.e-3)**(alpha_ideal(iso_num(iq))-1) 179 IF(zone_num(iq)==1) q(:,:,iq)=q(:,:,iqiso(iso_indnum(iq),phase_num(iq))) 175 iName = tracers(iq)%iso_iName 176 iZone = tracers(iq)%iso_iZone 177 iPhase= tracers(iq)%iso_iPhase 178 iqParent = tracers(iq)%iqParent 179 IF(ok_isotopes .AND. iName>0) THEN 180 IF(iZone==0) q(:,:,iq) = q(:,:,iqParent)*tnat(iName) & 181 & *(q(:,:,iqParent)/30.e-3)**(alpha_ideal(iName)-1.) 182 IF(iZone==1) q(:,:,iq) = q(:,:,iqiso(iso_indnum(iq),iPhase)) 180 183 END IF 181 184 END DO
Note: See TracChangeset
for help on using the changeset viewer.