- Timestamp:
- Jun 21, 2022, 11:05:38 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.