Ignore:
Timestamp:
May 11, 2014, 2:37:58 PM (11 years ago)
Author:
aslmd
Message:

LMDZ.MARS. Made number of scatterers a free dimension not in need to be prescribe at compiling time. Instead it must be set in callphys.def. See README for further information about this commit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/callradite.F

    r1226 r1246  
    66
    77      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
    811      use yomlw_h, only: gcp, nlaylte
    912      USE comcstfi_h
     
    153156#include "callkeys.h"
    154157!#include "yomlw.h"
    155 ! naerkind is set in scatterers.h (built when compiling with makegcm -s #)
    156 #include"scatterers.h"
    157 #include "aerkind.h"
    158158
    159159c-----------------------------------------------------------------------
     
    272272        allocate(pview(ngrid))
    273273
    274 c        Please name the different scatterers here ----------------
    275 c        PLEASE MAKE SURE that you set up the right number of
    276 c          scatterers in scatterers.h (naerkind);
    277           name_iaer(1) = "dust_conrath"   !! default choice is good old Conrath profile
    278           IF (doubleq.AND.active) name_iaer(1) = "dust_doubleq" !! two-moment scheme
    279           if (nq.gt.1) then
    280            ! trick to avoid problems compiling with 1 tracer
    281            ! and picky compilers who know name_iaer(2) is out of bounds
    282            j=2
    283           IF (water.AND.activice) name_iaer(j) = "h2o_ice"      !! radiatively-active clouds
    284           IF (submicron.AND.active) name_iaer(j) = "dust_submicron" !! JBM experimental stuff
    285           endif ! of if (nq.gt.1)
    286 c        ----------------------------------------------------------
    287 
    288274c        Assign a number to the different scatterers
    289275c        -------------------------------------------
     
    352338         ENDDO
    353339         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)) ) THEN
    358            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 ABORT
    362          ELSE IF ( (.NOT.activice).AND.(naerkind.GT.1) ) THEN
    363            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 ABORT
    367          ENDIF
    368340
    369341c        Loading the optical properties in external look-up tables:
Note: See TracChangeset for help on using the changeset viewer.