Changeset 2870 for trunk/LMDZ.GENERIC
- Timestamp:
- Jan 16, 2023, 4:47:10 PM (2 years ago)
- Location:
- trunk/LMDZ.GENERIC/libf/phystd
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/interpolateCH4CH4.F90
r2662 r2870 53 53 54 54 character*20 bleh 55 double precision blah, Ttemp 55 double precision blah, Ttemp, ztemp 56 56 integer nres 57 57 integer ind 58 58 59 if(temp.gt.400)then 59 ztemp = temp 60 if(ztemp.gt.400)then 60 61 if (strictboundcia) then 61 62 if (is_master) then … … 65 66 stop 66 67 else 67 if (is_master) then68 print*,'Your temperatures are too high for this CH4-CH4 CIA dataset'69 print*,'you have chosen strictboundcia = ', strictboundcia70 print*,'*********************************************************'71 print*,' we allow model to continue but with temp = 400 '72 print*,' ... for CH4-CH4 CIA dataset ... '73 print*,' ... we assume we know what you are doing ... '74 print*,'*********************************************************'75 endif76 temp = 40068 !if (is_master) then 69 ! print*,'Your temperatures are too high for this CH4-CH4 CIA dataset' 70 ! print*,'you have chosen strictboundcia = ', strictboundcia 71 ! print*,'*********************************************************' 72 ! print*,' we allow model to continue but with temp = 400 ' 73 ! print*,' ... for CH4-CH4 CIA dataset ... ' 74 ! print*,' ... we assume we know what you are doing ... ' 75 ! print*,'*********************************************************' 76 !endif 77 ztemp = 400 77 78 endif 78 elseif( temp.lt.40)then79 elseif(ztemp.lt.40)then 79 80 if (strictboundcia) then 80 81 if (is_master) then … … 84 85 stop 85 86 else 86 if (is_master) then87 print*,'Your temperatures are too low for this CH4-CH4 CIA dataset'88 print*,'you have chosen strictboundcia = ', strictboundcia89 print*,'*********************************************************'90 print*,' we allow model to continue but with temp = 40 '91 print*,' ... for CH4-CH4 CIA dataset ... '92 print*,' ... we assume we know what you are doing ... '93 print*,'*********************************************************'94 endif95 temp = 4087 !if (is_master) then 88 ! print*,'Your temperatures are too low for this CH4-CH4 CIA dataset' 89 ! print*,'you have chosen strictboundcia = ', strictboundcia 90 ! print*,'*********************************************************' 91 ! print*,' we allow model to continue but with temp = 40 ' 92 ! print*,' ... for CH4-CH4 CIA dataset ... ' 93 ! print*,' ... we assume we know what you are doing ... ' 94 ! print*,'*********************************************************' 95 !endif 96 ztemp = 40 96 97 endif 97 98 endif … … 150 151 endif 151 152 152 call bilinearbig(nS,nT,wn_arr,temp_arr,abs_arr,wn, temp,abcoef,ind)153 call bilinearbig(nS,nT,wn_arr,temp_arr,abs_arr,wn,ztemp,abcoef,ind) 153 154 154 155 ! print*,'the absorption is ',abcoef,' cm^5 molecule^-2' -
trunk/LMDZ.GENERIC/libf/phystd/interpolateH2CH4.F90
r2662 r2870 55 55 56 56 character*20 bleh 57 double precision blah, Ttemp 57 double precision blah, Ttemp, ztemp 58 58 integer nres 59 59 integer ind 60 60 61 if(temp.gt.400)then 61 ztemp=temp 62 if(ztemp.gt.400)then 62 63 if (strictboundcia) then 63 64 if (is_master) then … … 67 68 stop 68 69 else 69 if (is_master) then70 print*,'Your temperatures are too high for this H2-CH4 CIA dataset'71 print*,'you have chosen strictboundcia = ', strictboundcia72 print*,'*********************************************************'73 print*,' we allow model to continue but with temp = 400 '74 print*,' ... for H2-CH4 CIA dataset ... '75 print*,' ... we assume we know what you are doing ... '76 print*,'*********************************************************'77 endif78 temp = 40070 !if (is_master) then 71 ! print*,'Your temperatures are too high for this H2-CH4 CIA dataset' 72 ! print*,'you have chosen strictboundcia = ', strictboundcia 73 ! print*,'*********************************************************' 74 ! print*,' we allow model to continue but with temp = 400 ' 75 ! print*,' ... for H2-CH4 CIA dataset ... ' 76 ! print*,' ... we assume we know what you are doing ... ' 77 ! print*,'*********************************************************' 78 !endif 79 ztemp = 400 79 80 endif 80 elseif( temp.lt.40)then81 elseif(ztemp.lt.40)then 81 82 if (strictboundcia) then 82 83 if (is_master) then … … 86 87 stop 87 88 else 88 if (is_master) then89 print*,'Your temperatures are too low for this H2-CH4 CIA dataset'90 print*,'you have chosen strictboundcia = ', strictboundcia91 print*,'*********************************************************'92 print*,' we allow model to continue but with temp = 40 '93 print*,' ... for H2-CH4 CIA dataset ... '94 print*,' ... we assume we know what you are doing ... '95 print*,'*********************************************************'96 endif97 temp = 4089 !if (is_master) then 90 ! print*,'Your temperatures are too low for this H2-CH4 CIA dataset' 91 ! print*,'you have chosen strictboundcia = ', strictboundcia 92 ! print*,'*********************************************************' 93 ! print*,' we allow model to continue but with temp = 40 ' 94 ! print*,' ... for H2-CH4 CIA dataset ... ' 95 ! print*,' ... we assume we know what you are doing ... ' 96 ! print*,'*********************************************************' 97 !endif 98 ztemp = 40 98 99 endif 99 100 endif … … 109 110 if (H2orthopara_mixture.eq."normal") then 110 111 dt_file=TRIM(datadir)//'/continuum_data/H2-CH4_norm_2011.cia' 111 else if ( H2orthopara_mixture.eq."equilibrium") then112 else if ((H2orthopara_mixture.eq."hot") .or. (H2orthopara_mixture.eq."equilibrium")) then 112 113 dt_file=TRIM(datadir)//'/continuum_data/H2-CH4_eq_2011.cia' 113 114 endif … … 158 159 endif 159 160 160 call bilinearbig(nS,nT,wn_arr,temp_arr,abs_arr,wn, temp,abcoef,ind)161 call bilinearbig(nS,nT,wn_arr,temp_arr,abs_arr,wn,ztemp,abcoef,ind) 161 162 162 163 ! print*,'the absorption is ',abcoef,' cm^5 molecule^-2' -
trunk/LMDZ.GENERIC/libf/phystd/interpolateH2H2.F90
r2837 r2870 58 58 59 59 character*20 bleh 60 double precision blah, Ttemp 60 double precision blah, Ttemp, ztemp 61 61 integer nres 62 62 63 63 integer ind 64 65 ztemp=temp 64 66 if ((H2orthopara_mixture .eq. "hot")) then 65 if ( temp .gt. 7000.) then67 if (ztemp .gt. 7000.) then 66 68 if (strictboundcia) then 67 69 if (is_master) then … … 70 72 stop 71 73 else 72 if (is_master) then73 print*,'Your temperatures are too high for this H2-H2 CIA dataset (Hot Jupiter case)'74 print*,'you have chosen strictboundcia = ', strictboundcia75 print*,'*********************************************************'76 print*,' we allow model to continue but with temp = 7000 '77 print*,' ... for H2-H2 CIA dataset ... '78 print*,' ... we assume we know what you are doing ... '79 print*,'*********************************************************'80 endif !is_master81 temp = 7000.74 !if (is_master) then 75 ! print*,'Your temperatures are too high for this H2-H2 CIA dataset (Hot Jupiter case)' 76 ! print*,'you have chosen strictboundcia = ', strictboundcia 77 ! print*,'*********************************************************' 78 ! print*,' we allow model to continue but with temp = 7000 ' 79 ! print*,' ... for H2-H2 CIA dataset ... ' 80 ! print*,' ... we assume we know what you are doing ... ' 81 ! print*,'*********************************************************' 82 !endif !is_master 83 ztemp = 7000. 82 84 endif !strictboundcia 83 85 endif !(temp .gt. 7000.) 84 86 else ! if not "hot" 85 if( temp.gt.400)then87 if(ztemp.gt.400)then 86 88 if (strictboundcia) then 87 89 if (is_master) then … … 92 94 stop 93 95 else 94 if (is_master) then95 print*,'Your temperatures are too high for this H2-H2 CIA dataset'96 print*,'you have chosen strictboundcia = ', strictboundcia97 print*,'*********************************************************'98 print*,' we allow model to continue but with temp = 400 '99 print*,' ... for H2-H2 CIA dataset ... '100 print*,' ... we assume we know what you are doing ... '101 print*,'*********************************************************'102 endif !is_master103 temp = 40096 !if (is_master) then 97 ! print*,'Your temperatures are too high for this H2-H2 CIA dataset' 98 ! print*,'you have chosen strictboundcia = ', strictboundcia 99 ! print*,'*********************************************************' 100 ! print*,' we allow model to continue but with temp = 400 ' 101 ! print*,' ... for H2-H2 CIA dataset ... ' 102 ! print*,' ... we assume we know what you are doing ... ' 103 ! print*,'*********************************************************' 104 !endif !is_master 105 ztemp = 400 104 106 endif !of strictboundcia 105 elseif( temp.lt.40)then107 elseif(ztemp.lt.40)then 106 108 if (strictboundcia) then 107 109 if (is_master) then … … 112 114 stop 113 115 else 114 if (is_master) then115 print*,'Your temperatures are too low for this H2-H2 CIA dataset'116 print*,'you have chosen strictboundcia = ', strictboundcia117 print*,'*********************************************************'118 print*,' we allow model to continue but with temp = 40 '119 print*,' ... for H2-H2 CIA dataset ... '120 print*,' ... we assume we know what you are doing ... '121 print*,'*********************************************************'122 endif !is_master123 temp = 40116 !if (is_master) then 117 ! print*,'Your temperatures are too low for this H2-H2 CIA dataset' 118 ! print*,'you have chosen strictboundcia = ', strictboundcia 119 ! print*,'*********************************************************' 120 ! print*,' we allow model to continue but with temp = 40 ' 121 ! print*,' ... for H2-H2 CIA dataset ... ' 122 ! print*,' ... we assume we know what you are doing ... ' 123 ! print*,'*********************************************************' 124 !endif !is_master 125 ztemp = 40 124 126 endif !of strictboundcia 125 127 endif ! of (temp .gt. 400) … … 216 218 217 219 218 call bilinearbig(nS,nT,wn_arr,temp_arr,abs_arr,wn, temp,abcoef,ind)220 call bilinearbig(nS,nT,wn_arr,temp_arr,abs_arr,wn,ztemp,abcoef,ind) 219 221 220 222 !print*,'the absorption is ',abcoef,' cm^5 molecule^-2' -
trunk/LMDZ.GENERIC/libf/phystd/interpolateH2He.F90
r2667 r2870 54 54 55 55 character*20 bleh 56 double precision blah, Ttemp 56 double precision blah, Ttemp, ztemp 57 57 58 integer nres 58 59 59 60 integer ind 60 61 62 ztemp=temp 61 63 62 64 if (H2orthopara_mixture .eq. "hot") then ! .and. (temp .gt. 3000.0)) then 63 65 ! print*,"We're in the Hot Jupiter case " 64 66 nS = 19981 65 if ( temp .gt. 9900) then67 if (ztemp .gt. 9900) then 66 68 if (strictboundcia) then 67 69 if (is_master) then … … 71 73 stop 72 74 else 73 if (is_master) then74 print*,'Your temperatures are too high for this H2-He CIA dataset (Hot Jupiter case)'75 print*,'you have chosen strictboundcia = ', strictboundcia76 print*,'*********************************************************'77 print*,' we allow model to continue but with temp = 9900.0 K '78 print*,' ... for H2-He CIA dataset ... '79 print*,' ... we assume we know what you are doing ... '80 print*,'*********************************************************'81 endif !is_master82 temp = 9900.075 !if (is_master) then 76 ! print*,'Your temperatures are too high for this H2-He CIA dataset (Hot Jupiter case)' 77 ! print*,'you have chosen strictboundcia = ', strictboundcia 78 ! print*,'*********************************************************' 79 ! print*,' we allow model to continue but with temp = 9900.0 K ' 80 ! print*,' ... for H2-He CIA dataset ... ' 81 ! print*,' ... we assume we know what you are doing ... ' 82 ! print*,'*********************************************************' 83 !endif !is_master 84 ztemp = 9900.0 83 85 endif ! of stricbound cia 84 86 endif ! temp .gt. 9900 85 87 else !not in Hot Jupiter case 86 88 nS = 2428 87 if( temp.gt.400)then89 if(ztemp.gt.400)then 88 90 if (strictboundcia) then 89 91 if (is_master) then … … 93 95 stop 94 96 else 95 if (is_master) then96 print*,'Your temperatures are too high for this H2-He CIA dataset'97 print*,'you have chosen strictboundcia = ', strictboundcia98 print*,'*********************************************************'99 print*,' we allow model to continue but with temp = 400 '100 print*,' ... for H2-He CIA dataset ... '101 print*,' ... we assume we know what you are doing ... '102 print*,'*********************************************************'103 endif ! is_master104 temp = 40097 !if (is_master) then 98 ! print*,'Your temperatures are too high for this H2-He CIA dataset' 99 ! print*,'you have chosen strictboundcia = ', strictboundcia 100 ! print*,'*********************************************************' 101 ! print*,' we allow model to continue but with temp = 400 ' 102 ! print*,' ... for H2-He CIA dataset ... ' 103 ! print*,' ... we assume we know what you are doing ... ' 104 ! print*,'*********************************************************' 105 !endif ! is_master 106 ztemp = 400 105 107 endif !of strictboundcia 106 elseif( temp.lt.40)then108 elseif(ztemp.lt.40)then 107 109 if (strictboundcia) then 108 110 if (is_master) then … … 112 114 stop 113 115 else 114 if (is_master) then115 print*,'Your temperatures are too low for this H2-He CIA dataset'116 print*,'you have chosen strictboundcia = ', strictboundcia117 print*,'*********************************************************'118 print*,' we allow model to continue but with temp = 40 '119 print*,' ... for H2-He CIA dataset ... '120 print*,' ... we assume we know what you are doing ... '121 print*,'*********************************************************'122 endif ! is_master123 temp = 40116 !if (is_master) then 117 ! print*,'Your temperatures are too low for this H2-He CIA dataset' 118 ! print*,'you have chosen strictboundcia = ', strictboundcia 119 ! print*,'*********************************************************' 120 ! print*,' we allow model to continue but with temp = 40 ' 121 ! print*,' ... for H2-He CIA dataset ... ' 122 ! print*,' ... we assume we know what you are doing ... ' 123 ! print*,'*********************************************************' 124 !endif ! is_master 125 ztemp = 40 124 126 endif !of strictboundcia 125 127 endif ! of (temp .gt. 400) … … 190 192 endif 191 193 192 call bilinearbig(nS,nT,wn_arr,temp_arr,abs_arr,wn, temp,abcoef,ind)194 call bilinearbig(nS,nT,wn_arr,temp_arr,abs_arr,wn,ztemp,abcoef,ind) 193 195 194 196 !print*,'the absorption is ',abcoef,' cm^5 molecule^-2' -
trunk/LMDZ.GENERIC/libf/phystd/interpolateHeCH4.F90
r2662 r2870 55 55 56 56 character*20 bleh 57 double precision blah, Ttemp 57 double precision blah, Ttemp, ztemp 58 58 integer nres 59 59 integer ind 60 60 61 if(temp.gt.350)then 61 ztemp=temp 62 63 if(ztemp.gt.350)then 62 64 if (strictboundcia) then 63 65 if (is_master) then … … 67 69 stop 68 70 else 69 if (is_master) then70 print*,'Your temperatures are too high for this He-CH4 CIA dataset'71 print*,'you have chosen strictboundcia = ', strictboundcia72 print*,'*********************************************************'73 print*,' we allow model to continue but with temp = 350 '74 print*,' ... for He-CH4 CIA dataset ... '75 print*,' ... we assume we know what you are doing ... '76 print*,'*********************************************************'77 endif78 temp = 35071 !if (is_master) then 72 ! print*,'Your temperatures are too high for this He-CH4 CIA dataset' 73 ! print*,'you have chosen strictboundcia = ', strictboundcia 74 ! print*,'*********************************************************' 75 ! print*,' we allow model to continue but with temp = 350 ' 76 ! print*,' ... for He-CH4 CIA dataset ... ' 77 ! print*,' ... we assume we know what you are doing ... ' 78 ! print*,'*********************************************************' 79 !endif 80 ztemp = 350 79 81 endif 80 elseif( temp.lt.40)then82 elseif(ztemp.lt.40)then 81 83 if (strictboundcia) then 82 84 if (is_master) then … … 86 88 stop 87 89 else 88 if (is_master) then89 print*,'Your temperatures are too low for this He-CH4 CIA dataset'90 print*,'you have chosen strictboundcia = ', strictboundcia91 print*,'*********************************************************'92 print*,' we allow model to continue but with temp = 40 '93 print*,' ... for He-CH4 CIA dataset ... '94 print*,' ... we assume we know what you are doing ... '95 print*,'*********************************************************'96 endif97 temp = 4090 !if (is_master) then 91 ! print*,'Your temperatures are too low for this He-CH4 CIA dataset' 92 ! print*,'you have chosen strictboundcia = ', strictboundcia 93 ! print*,'*********************************************************' 94 ! print*,' we allow model to continue but with temp = 40 ' 95 ! print*,' ... for He-CH4 CIA dataset ... ' 96 ! print*,' ... we assume we know what you are doing ... ' 97 ! print*,'*********************************************************' 98 !endif 99 ztemp = 40 98 100 endif 99 101 endif … … 154 156 endif 155 157 156 call bilinearbig(nS,nT,wn_arr,temp_arr,abs_arr,wn, temp,abcoef,ind)158 call bilinearbig(nS,nT,wn_arr,temp_arr,abs_arr,wn,ztemp,abcoef,ind) 157 159 158 160 ! print*,'the absorption is ',abcoef,' cm^5 molecule^-2' -
trunk/LMDZ.GENERIC/libf/phystd/interpolateN2H2.F90
r2662 r2870 14 14 !================================================================== 15 15 16 use callkeys_mod, only: strictboundcia 16 17 use datafile_mod, only: datadir 17 18 use mod_phys_lmdz_para, only : is_master … … 54 55 55 56 character*20 bleh 56 double precision blah, Ttemp 57 double precision blah, Ttemp, ztemp 57 58 integer nres 58 59 integer ind 59 60 60 if(temp.gt.400)then 61 if (is_master) then 62 print*,'Your temperatures are too high for this N2-H2 CIA dataset.' 63 print*,'Please run mixed N2-H2 atmospheres below T = 400 K.' 64 endif 65 stop 61 ztemp=temp 62 63 if(ztemp.gt.400)then 64 if (strictboundcia) then 65 if (is_master) then 66 print*,'Your temperatures are too high for this N2-H2 CIA dataset. If you ' 67 print*,'really want to run simulations with hydrogen at T > 400 K,' 68 print*,'find relevant data.' 69 endif !is_master 70 stop 71 else 72 !if (is_master) then 73 ! print*,'Your temperatures are too high for this N2-H2 CIA dataset' 74 ! print*,'you have chosen strictboundcia = ', strictboundcia 75 ! print*,'*********************************************************' 76 ! print*,' we allow model to continue but with temp = 4000 ' 77 ! print*,' ... for N2-H2 CIA dataset ... ' 78 ! print*,' ... we assume we know what you are doing ... ' 79 ! print*,'*********************************************************' 80 !endif !is_master 81 ztemp = 400. 82 endif !strictboundcia 66 83 endif 67 84 … … 121 138 endif 122 139 123 call bilinearbig(nS,nT,wn_arr,temp_arr,abs_arr,wn, temp,abcoef,ind)140 call bilinearbig(nS,nT,wn_arr,temp_arr,abs_arr,wn,ztemp,abcoef,ind) 124 141 125 142 ! print*,'the absorption is ',abcoef,' cm^5 molecule^-2' -
trunk/LMDZ.GENERIC/libf/phystd/interpolateN2N2.F90
r2662 r2870 14 14 !================================================================== 15 15 16 use callkeys_mod, only: strictboundcia 16 17 use datafile_mod, only: datadir 17 18 use mod_phys_lmdz_para, only : is_master … … 53 54 54 55 character*20 bleh 55 double precision blah, Ttemp 56 double precision blah, Ttemp, ztemp 56 57 integer nres 57 58 59 ztemp=temp 58 60 59 if(temp.gt.400)then 61 if(ztemp.gt.400)then 62 if (strictboundcia) then 60 63 if (is_master) then 61 print*,'Your temperatures are too high for this N2-N2 CIA dataset.' 62 print*,'Currently, HITRAN provides data for this pair in the range 40-400 K.' 63 endif 64 print*,'Your temperatures are too high for this N2-N2 CIA dataset. If you ' 65 print*,'really want to run simulations with hydrogen at T > 400 K,' 66 print*,'find relevant data.' 67 endif !is_master 64 68 stop 69 else 70 !if (is_master) then 71 ! print*,'Your temperatures are too high for this N2-?2 CIA dataset' 72 ! print*,'you have chosen strictboundcia = ', strictboundcia 73 ! print*,'*********************************************************' 74 ! print*,' we allow model to continue but with temp = 4000 ' 75 ! print*,' ... for N2-N2 CIA dataset ... ' 76 ! print*,' ... we assume we know what you are doing ... ' 77 ! print*,'*********************************************************' 78 !endif !is_master 79 ztemp = 400. 80 endif !strictboundcia 65 81 endif 82 66 83 67 84 amagat = (273.15/temp)*(pres/101325.0) … … 117 134 endif 118 135 endif 119 call bilinearbig(nS,nT,wn_arr,temp_arr,abs_arr,wn, temp,abcoef,ind)136 call bilinearbig(nS,nT,wn_arr,temp_arr,abs_arr,wn,ztemp,abcoef,ind) 120 137 121 138 ! print*,'the absorption is ',abcoef,' cm^5 molecule^-2'
Note: See TracChangeset
for help on using the changeset viewer.