- 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
r2705 r2706 94 94 epsi = m/mugaz 95 95 end subroutine specie_parameters 96 97 98 subroutine specie_parameters_table(specname) 99 100 implicit none 101 !============================================================================ 102 ! Load the adequate set of parameters for specname 103 ! From a table of traceurs 104 !============================================================================ 105 106 character(*), intent(in) :: specname 107 integer k 108 character(len=500):: table_traceurs_line ! table_traceurs_line lines with parameters 109 110 open(117,file='table_traceurs',form='formatted',status='old') 111 112 read(117,'(A)') table_traceurs_line 113 114 do 115 read(117,'(A)') table_traceurs_line 116 117 if (index(table_traceurs_line,specname) /= 0) then 118 119 write(*,*) table_traceurs_line 120 121 if (index(table_traceurs_line,'deltavapH=' ) /= 0) then 122 read(table_traceurs_line(index(table_traceurs_line,'deltavapH=')+len('deltavapH='):),*) delta_vapH 123 write(*,*) 'delta_vapH ', delta_vapH 124 end if 125 if (index(table_traceurs_line,'Tref=' ) /= 0) then 126 read(table_traceurs_line(index(table_traceurs_line,'Tref=')+len('Tref='):),*) Tref 127 end if 128 if (index(table_traceurs_line,'Pref=' ) /= 0) then 129 read(table_traceurs_line(index(table_traceurs_line,'Pref=')+len('Pref='):),*) Pref 130 end if 131 if (index(table_traceurs_line,'mass=' ) /= 0) then 132 read(table_traceurs_line(index(table_traceurs_line,'mass=')+len('mass='):),*) m 133 end if 134 if (index(table_traceurs_line,'metallicity_coeff=' ) /= 0) then 135 read(table_traceurs_line(index(table_traceurs_line,'metallicity_coeff=')+len('metallicity_coeff='):),*) metallicity_coeff 136 end if 137 end if 138 139 end do 140 ! RLVTT 141 142 !if (is_master) 143 close(117) 144 145 end subroutine specie_parameters_table 96 146 97 147 subroutine Psat_generic(T,p,metallicity,psat,qsat)
Note: See TracChangeset
for help on using the changeset viewer.