Changeset 2708 for trunk/LMDZ.GENERIC/libf
- Timestamp:
- Jun 21, 2022, 11:05:39 AM (3 years ago)
- Location:
- trunk/LMDZ.GENERIC/libf/phystd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/condensation_generic_mod.F90
r2707 r2708 82 82 qevap(1:ngrid,1:nlayer,1:nq)=0.0 83 83 tevap(1:ngrid,1:nlayer)=0.0 84 igcm_generic_vap = -185 igcm_generic_ice = -186 84 ! Let's loop on tracers 87 85 do iq=1,nq … … 95 93 96 94 igcm_generic_vap=iq 95 igcm_generic_ice = -1 97 96 98 97 ! We look for the corresponding ice traceur (before or after in the list of traceurs, maybe could be generalised to the whole list) 99 if ((noms(iq)(9:len(trim(noms(iq)))-4) .eq. noms(iq+1)(9:len(trim(noms(iq+1)))-4)) .and. (index(noms(iq+1),"ice") .ne. 0)) then 100 igcm_generic_ice = iq+1 101 else if ((iq .gt. 1) .and. (noms(iq)(9:len(trim(noms(iq)))-4) .eq. noms(iq-1)(9:len(trim(noms(iq-1)))-4)) .and. (index(noms(iq-1),"ice") .ne. 0)) then 102 igcm_generic_ice = iq-1 103 else 98 if (iq .ne. nq) then 99 if ((noms(iq)(1:len(trim(noms(iq)))-4) .eq. noms(iq+1)(1:len(trim(noms(iq+1)))-4)) .and. (index(noms(iq+1),"ice") .ne. 0)) then 100 igcm_generic_ice = iq+1 101 end if 102 end if 103 if ((iq .gt. 1)) then 104 if ((noms(iq)(1:len(trim(noms(iq)))-4) .eq. noms(iq-1)(1:len(trim(noms(iq-1)))-4)) .and. (index(noms(iq-1),"ice") .ne. 0)) then 105 igcm_generic_ice = iq-1 106 end if 107 end if 108 if (igcm_generic_ice .eq. -1) then 104 109 write(*,*) "ERROR : You set a vap traceur but you forgot to set the corresponding ice traceur" 105 110 endif 106 111 107 112 ! Need to call specie_parameters of the considered specie 108 call specie_parameters(noms(iq)(9:len(trim(noms(iq)))-4)) 109 !call specie_parameters_table(noms(iq)(9:len(trim(noms(iq)))-4)) 113 !call specie_parameters(noms(iq)(9:len(trim(noms(iq)))-4)) 114 write(*,*) 'looking specie parameters for : ',noms(iq)(1:len(trim(noms(iq)))-4) 115 call specie_parameters_table(noms(iq)(1:len(trim(noms(iq)))-4)) 110 116 111 117 Lcp=RLVTT/cpp ! need to be init here -
trunk/LMDZ.GENERIC/libf/phystd/generic_cloud_common_h.F90
r2707 r2708 150 150 151 151 end do 152 ! RLVTT 153 154 !if (is_master) 152 153 if (ios .eq. -1) then ! If the file has been read but there is no data on the speci, then we have ios equal to -1 154 155 write(*,*), "ERROR : the following traceur is not referenced in the table_tracers_condensable : ", specname 156 157 end if 158 155 159 close(117) 156 160
Note: See TracChangeset
for help on using the changeset viewer.