Changeset 1246 for trunk/LMDZ.MARS/libf/phymars/callradite.F
- Timestamp:
- May 11, 2014, 2:37:58 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/callradite.F
r1226 r1246 6 6 7 7 use dimradmars_mod, only: ndomainsz, nflev, nsun, nir 8 use dimradmars_mod, only: naerkind, name_iaer, 9 & iaer_dust_conrath,iaer_dust_doubleq, 10 & iaer_dust_submicron,iaer_h2o_ice 8 11 use yomlw_h, only: gcp, nlaylte 9 12 USE comcstfi_h … … 153 156 #include "callkeys.h" 154 157 !#include "yomlw.h" 155 ! naerkind is set in scatterers.h (built when compiling with makegcm -s #)156 #include"scatterers.h"157 #include "aerkind.h"158 158 159 159 c----------------------------------------------------------------------- … … 272 272 allocate(pview(ngrid)) 273 273 274 c Please name the different scatterers here ----------------275 c PLEASE MAKE SURE that you set up the right number of276 c scatterers in scatterers.h (naerkind);277 name_iaer(1) = "dust_conrath" !! default choice is good old Conrath profile278 IF (doubleq.AND.active) name_iaer(1) = "dust_doubleq" !! two-moment scheme279 if (nq.gt.1) then280 ! trick to avoid problems compiling with 1 tracer281 ! and picky compilers who know name_iaer(2) is out of bounds282 j=2283 IF (water.AND.activice) name_iaer(j) = "h2o_ice" !! radiatively-active clouds284 IF (submicron.AND.active) name_iaer(j) = "dust_submicron" !! JBM experimental stuff285 endif ! of if (nq.gt.1)286 c ----------------------------------------------------------287 288 274 c Assign a number to the different scatterers 289 275 c ------------------------------------------- … … 352 338 ENDDO 353 339 gcp = g/cpp 354 355 c Logical tests for radiatively active water-ice clouds:356 IF ( (activice.AND.(.NOT.water)).OR.357 & (activice.AND.(naerkind.LT.2)) ) THEN358 WRITE(*,*) 'If activice is TRUE, water has to be set'359 WRITE(*,*) 'to TRUE, and "naerkind" must be at least'360 WRITE(*,*) 'equal to 2 in scatterers.h.'361 CALL ABORT362 ELSE IF ( (.NOT.activice).AND.(naerkind.GT.1) ) THEN363 WRITE(*,*) 'naerkind is greater than unity, but'364 WRITE(*,*) 'activice has not been set to .true.'365 WRITE(*,*) 'in callphys.def; this is not logical!'366 CALL ABORT367 ENDIF368 340 369 341 c Loading the optical properties in external look-up tables:
Note: See TracChangeset
for help on using the changeset viewer.