Changeset 1036 for trunk/LMDZ.MARS/libf/aeronomars/concentrations.F
- Timestamp:
- Sep 11, 2013, 2:34:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/aeronomars/concentrations.F
r1035 r1036 1 SUBROUTINE concentrations( pplay,pt,pdt,pq,pdq,ptimestep)1 SUBROUTINE concentrations(nq,pplay,pt,pdt,pq,pdq,ptimestep) 2 2 3 use tracer_mod, only: igcm_co2, igcm_co, igcm_o, igcm_o1d, 4 & igcm_o2, igcm_o3, igcm_h, igcm_h2, 5 & igcm_oh, igcm_ho2, igcm_n2, igcm_ar, 6 & igcm_h2o_vap, igcm_n, igcm_no, igcm_no2, 7 & igcm_n2d, igcm_co2plus, igcm_oplus, 8 & igcm_o2plus, igcm_coplus, igcm_cplus, 9 & igcm_nplus, igcm_noplus, igcm_n2plus, 10 & igcm_hplus, igcm_hco2plus, mmol 3 11 implicit none 4 12 … … 22 30 #include "comdiurn.h" 23 31 #include "chimiedata.h" 24 #include "tracer.h"32 !#include "tracer.h" 25 33 #include "conc.h" 26 34 27 35 ! input/output 28 36 29 real pplay(ngridmx,nlayermx) 30 real pt(ngridmx,nlayermx) 31 real pdt(ngridmx,nlayermx) 32 real pq(ngridmx,nlayermx,nqmx) 33 real pdq(ngridmx,nlayermx,nqmx) 34 real ptimestep 37 integer,intent(in) :: nq ! number of tracers 38 real,intent(in) :: pplay(ngridmx,nlayermx) 39 real,intent(in) :: pt(ngridmx,nlayermx) 40 real,intent(in) :: pdt(ngridmx,nlayermx) 41 real,intent(in) :: pq(ngridmx,nlayermx,nq) 42 real,intent(in) :: pdq(ngridmx,nlayermx,nq) 43 real,intent(in) :: ptimestep 35 44 36 45 ! local variables 37 46 38 47 integer :: i, l, ig, iq 39 integer, save :: nbq, niq(nqmx) 40 real :: ni(nqmx), ntot 41 real :: zq(ngridmx, nlayermx, nqmx) 48 integer, save :: nbq 49 integer,allocatable,save :: niq(:) 50 real :: ni(nq), ntot 51 real :: zq(ngridmx, nlayermx, nq) 42 52 real :: zt(ngridmx, nlayermx) 43 real, save :: aki(nqmx)44 real, save :: cpi(nqmx)53 real,allocatable,save :: aki(:) 54 real,allocatable,save :: cpi(:) 45 55 46 56 logical, save :: firstcall = .true. … … 48 58 if (firstcall) then 49 59 60 ! allocate local saved arrays: 61 allocate(aki(nq)) 62 allocate(cpi(nq)) 63 allocate(niq(nq)) 50 64 ! find index of chemical tracers to use 51 65 ! initialize thermal conductivity and specific heat coefficients … … 217 231 endif 218 232 219 233 ! tell the world about it: 234 write(*,*) "concentrations: firstcall, nbq=",nbq 235 write(*,*) " niq(1:nbq)=",niq(1:nbq) 236 write(*,*) " aki(1:nbq)=",aki(1:nbq) 237 write(*,*) " cpi(1:nbq)=",cpi(1:nbq) 220 238 221 239 firstcall = .false.
Note: See TracChangeset
for help on using the changeset viewer.