Changeset 2707
- Timestamp:
- Jun 21, 2022, 11:05:38 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
r2706 r2707 87 87 do iq=1,nq 88 88 if((is_condensable(iq)==1) .and. (index(noms(iq),"vap") .ne. 0)) then 89 write(*,*) "the specie ", noms(iq)," is condensable, for generic condensation" 89 write(*,*) "There is a specie which is condensable, for generic condensation : ", noms(iq) 90 90 91 ! Let's get the index of our tracers (we look for igcm _generic_vap and igcm_generic_ice) 91 92 ! tname_ice = trim(noms(iq)(1:len(tname_ice)-3))//"ice" 92 93 ! print*,trim(adjustl(trim(noms(iq))(9:len(trim(noms(iq)))-4))) !testing here, should go away 93 print*,noms(iq)(9:len(trim(noms(iq)))-4)94 94 ! stop 95 95 96 igcm_generic_vap=iq 96 97 … … 108 109 !call specie_parameters_table(noms(iq)(9:len(trim(noms(iq)))-4)) 109 110 110 Lcp=RLVTT/cpp ! need to be init here, otherwise we don't know RLVTT yet111 Lcp=RLVTT/cpp ! need to be init here 111 112 112 113 ! Vertical loop (from top to bottom) -
trunk/LMDZ.GENERIC/libf/phystd/generic_cloud_common_h.F90
r2706 r2707 102 102 ! Load the adequate set of parameters for specname 103 103 ! From a table of traceurs 104 ! 105 ! Also set up few others useful parameters, such as epsi=m/mugaz, RLVTT and 106 ! the metallicity_coeff. 107 ! Authors 108 ! -------- 109 ! Noé Clément (2022) 104 110 !============================================================================ 105 111 106 112 character(*), intent(in) :: specname 107 integer k113 integer :: ios 108 114 character(len=500):: table_traceurs_line ! table_traceurs_line lines with parameters 109 115 110 open(117,file='table_trace urs',form='formatted',status='old')116 open(117,file='table_tracers_condensable',form='formatted',status='old') 111 117 112 118 read(117,'(A)') table_traceurs_line 113 119 114 120 do 115 read(117,'(A)' ) table_traceurs_line121 read(117,'(A)', iostat=ios) table_traceurs_line 116 122 117 123 if (index(table_traceurs_line,specname) /= 0) then 118 119 write(*,*) table_traceurs_line120 124 121 if (index(table_traceurs_line,'delta vapH=' ) /= 0) then122 read(table_traceurs_line(index(table_traceurs_line,'delta vapH=')+len('deltavapH='):),*) delta_vapH123 write(*,*)'delta_vapH ', delta_vapH125 if (index(table_traceurs_line,'delta_vapH=' ) /= 0) then 126 read(table_traceurs_line(index(table_traceurs_line,'delta_vapH=')+len('delta_vapH='):),*) delta_vapH 127 print*, 'delta_vapH ', delta_vapH 124 128 end if 125 129 if (index(table_traceurs_line,'Tref=' ) /= 0) then 126 130 read(table_traceurs_line(index(table_traceurs_line,'Tref=')+len('Tref='):),*) Tref 131 print*, 'Tref', Tref 127 132 end if 128 133 if (index(table_traceurs_line,'Pref=' ) /= 0) then 129 134 read(table_traceurs_line(index(table_traceurs_line,'Pref=')+len('Pref='):),*) Pref 135 print*, 'Pref', Pref 130 136 end if 131 137 if (index(table_traceurs_line,'mass=' ) /= 0) then 132 138 read(table_traceurs_line(index(table_traceurs_line,'mass=')+len('mass='):),*) m 139 print*, 'mass', m 133 140 end if 134 141 if (index(table_traceurs_line,'metallicity_coeff=' ) /= 0) then 135 142 read(table_traceurs_line(index(table_traceurs_line,'metallicity_coeff=')+len('metallicity_coeff='):),*) metallicity_coeff 136 end if 143 print*, 'metallicity_coeff', metallicity_coeff 144 end if 145 146 ios=1 137 147 end if 138 148 149 if (ios /= 0) exit 150 139 151 end do 140 152 ! RLVTT … … 142 154 !if (is_master) 143 155 close(117) 156 157 RLVTT=delta_vapH/(m/1000.) 158 159 write(*,*) 'RLVTT', RLVTT 160 161 epsi = m/mugaz 144 162 145 163 end subroutine specie_parameters_table
Note: See TracChangeset
for help on using the changeset viewer.