Changeset 2311 for LMDZ5/trunk/libf/dynlonlat_phylonlat
- Timestamp:
- Jun 25, 2015, 9:45:24 AM (9 years ago)
- Location:
- LMDZ5/trunk/libf/dynlonlat_phylonlat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/dynlonlat_phylonlat/phydev/iniphysiq.F90
r2242 r2311 18 18 rlond, & ! longitudes 19 19 rlatd ! latitudes 20 USE comcstphy, ONLY: rradius, & ! planet radius (m) 21 rr, & ! recuced gas constant: R/molar mass of atm 22 rg, & ! gravity 23 rcpp ! specific heat of the atmosphere 20 ! USE comcstphy, ONLY: rradius, & ! planet radius (m) 21 ! rr, & ! recuced gas constant: R/molar mass of atm 22 ! rg, & ! gravity 23 ! rcpp ! specific heat of the atmosphere 24 USE inifis_mod, ONLY: inifis 24 25 USE phyaqua_mod, ONLY: iniaqua 25 26 IMPLICIT NONE … … 119 120 120 121 !$OMP PARALLEL 122 ! Initialize physical constants in physics: 123 CALL inifis(prad,pg,pr,pcpp) 124 121 125 ! Now generate local lon/lat/cu/cv/area arrays 122 126 CALL initcomgeomphy … … 129 133 rlatd(1:klon_omp) = latfi(offset+klon_omp_begin:offset+klon_omp_end) 130 134 131 ! copy some fundamental parameters to physics132 rradius=prad133 rg=pg134 rr=pr135 rcpp=pcpp136 137 !$OMP END PARALLEL138 139 135 ! Additional initializations for aquaplanets 140 !$OMP PARALLEL141 136 IF (iflag_phys>=100) THEN 142 137 CALL iniaqua(klon_omp,rlatd,rlond,iflag_phys) -
LMDZ5/trunk/libf/dynlonlat_phylonlat/phylmd/iniphysiq.F90
r2273 r2311 19 19 rlond, & ! longitudes 20 20 rlatd ! latitudes 21 USE inifis_mod, ONLY: inifis 21 22 USE phyaqua_mod, ONLY: iniaqua 22 23 IMPLICIT NONE … … 27 28 ! ======================================================================= 28 29 29 include "YOMCST.h"30 30 include "iniprint.h" 31 31 … … 125 125 126 126 !$OMP PARALLEL 127 ! Initialize physical constants in physics: 128 CALL inifis(punjours,prad,pg,pr,pcpp) 129 127 130 ! Now generate local lon/lat/cu/cv/area arrays 128 131 CALL initcomgeomphy … … 135 138 rlatd(1:klon_omp) = latfi(offset+klon_omp_begin:offset+klon_omp_end) 136 139 137 ! suphel => initialize some physical constants (orbital parameters, 138 ! geoid, gravity, thermodynamical constants, etc.) in the 139 ! physics 140 CALL suphel 141 142 !$OMP END PARALLEL 143 144 ! check that physical constants set in 'suphel' are coherent 145 ! with values set in the dynamics: 146 IF (rday/=punjours) THEN 147 WRITE (lunout, *) 'iniphysiq: length of day discrepancy!!!' 148 WRITE (lunout, *) ' in the dynamics punjours=', punjours 149 WRITE (lunout, *) ' but in the physics RDAY=', rday 150 IF (abs(rday-punjours)>0.01*punjours) THEN 151 ! stop here if the relative difference is more than 1% 152 abort_message = 'length of day discrepancy' 153 CALL abort_gcm(modname, abort_message, 1) 154 END IF 155 END IF 156 IF (rg/=pg) THEN 157 WRITE (lunout, *) 'iniphysiq: gravity discrepancy !!!' 158 WRITE (lunout, *) ' in the dynamics pg=', pg 159 WRITE (lunout, *) ' but in the physics RG=', rg 160 IF (abs(rg-pg)>0.01*pg) THEN 161 ! stop here if the relative difference is more than 1% 162 abort_message = 'gravity discrepancy' 163 CALL abort_gcm(modname, abort_message, 1) 164 END IF 165 END IF 166 IF (ra/=prad) THEN 167 WRITE (lunout, *) 'iniphysiq: planet radius discrepancy !!!' 168 WRITE (lunout, *) ' in the dynamics prad=', prad 169 WRITE (lunout, *) ' but in the physics RA=', ra 170 IF (abs(ra-prad)>0.01*prad) THEN 171 ! stop here if the relative difference is more than 1% 172 abort_message = 'planet radius discrepancy' 173 CALL abort_gcm(modname, abort_message, 1) 174 END IF 175 END IF 176 IF (rd/=pr) THEN 177 WRITE (lunout, *) 'iniphysiq: reduced gas constant discrepancy !!!' 178 WRITE (lunout, *) ' in the dynamics pr=', pr 179 WRITE (lunout, *) ' but in the physics RD=', rd 180 IF (abs(rd-pr)>0.01*pr) THEN 181 ! stop here if the relative difference is more than 1% 182 abort_message = 'reduced gas constant discrepancy' 183 CALL abort_gcm(modname, abort_message, 1) 184 END IF 185 END IF 186 IF (rcpd/=pcpp) THEN 187 WRITE (lunout, *) 'iniphysiq: specific heat discrepancy !!!' 188 WRITE (lunout, *) ' in the dynamics pcpp=', pcpp 189 WRITE (lunout, *) ' but in the physics RCPD=', rcpd 190 IF (abs(rcpd-pcpp)>0.01*pcpp) THEN 191 ! stop here if the relative difference is more than 1% 192 abort_message = 'specific heat discrepancy' 193 CALL abort_gcm(modname, abort_message, 1) 194 END IF 195 END IF 196 197 ! Additional initializations for aquaplanets 198 !$OMP PARALLEL 140 ! Additional initializations for aquaplanets 199 141 IF (iflag_phys>=100) THEN 200 142 CALL iniaqua(klon_omp, rlatd, rlond, iflag_phys)
Note: See TracChangeset
for help on using the changeset viewer.