Ignore:
Timestamp:
Mar 2, 2012, 9:53:27 AM (13 years ago)
Author:
emillour
Message:

Mars GCM:

bug fix in "aeronomars/moldiff_red.F90" (wrong mmol array size in included

subroutine) + adapted extreme limit test for H to altitudes of ~4000km
(compatble with 50 layer model).

bug fix in "nirco2abs.F" index of "co2" and "o" tracers were hard coded as

1 and 3!

updates from FGG of euvheat.F, callkeys.h and inifis.F to have the

"euveff" parameter read from callphys.def

EM

Location:
trunk/LMDZ.MARS/libf/aeronomars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/aeronomars/euvheat.F

    r38 r552  
    193193
    194194        do l=1,nlayermx
    195           pdteuv(ig,l)=0.16*jtot(l)/10.
     195          pdteuv(ig,l)=euveff*jtot(l)/10.
    196196     &            /(cpnew(ig,l)*pplay(ig,l)/(rnew(ig,l)*zt(ig,l)))
    197197     &                  *(1.52/dist_sol)**2
  • trunk/LMDZ.MARS/libf/aeronomars/inichim_newstart.F

    r460 r552  
    7272     &           1.,17.,33.,18.,34.,16.,48./   ! minors
    7373      character*3 tmp ! temporary variable
    74       integer ierr,lnblnk
    75       external lnblnk
     74      integer ierr
    7675
    7776      logical :: oldnames ! =.true. if old tracer naming convention (q01,...)
     
    476475c----------------------------------------------------------------------
    477476      open(210, iostat=ierr,file=
    478      & datafile(1:lnblnk(datafile))//'/atmosfera_LMD_may.dat')
     477     & trim(datafile)//'/atmosfera_LMD_may.dat')
    479478      if (ierr.ne.0) then
    480479        write(*,*)'Error : cannot open file atmosfera_LMD_may.dat '
    481480        write(*,*)'(in aeronomars/inichim.F)'
    482         write(*,*)'It should be in :', datafile(1:lnblnk(datafile)),'/'
    483         write(*,*)'1) You can change this directory address in '
    484         write(*,*)'   file phymars/datafile.h'
     481        write(*,*)'It should be in :', trim(datafile),'/'
     482        write(*,*)'1) You can change this path in callphys.def with'
     483        write(*,*)'   datadir=/path/to/datafiles/'
    485484        write(*,*)'2) If necessary atmosfera_LMD_may.dat (and others)'
    486485        write(*,*)'   can be obtained online on:'
     
    489488      endif
    490489      open(220, iostat=ierr,file=
    491      & datafile(1:lnblnk(datafile))//'/atmosfera_LMD_min.dat')
     490     & trim(datafile)//'/atmosfera_LMD_min.dat')
    492491      if (ierr.ne.0) then
    493492        write(*,*)'Error : cannot open file atmosfera_LMD_min.dat '
    494493        write(*,*)'(in aeronomars/inichim.F)'
    495         write(*,*)'It should be in :', datafile(1:lnblnk(datafile)),'/'
    496         write(*,*)'1) You can change this directory address in '
    497         write(*,*)'   file phymars/datafile.h'
     494        write(*,*)'It should be in :', trim(datafile),'/'
     495        write(*,*)'1) You can change this path in callphys.def with'
     496        write(*,*)'   datadir=/path/to/datafiles/'
    498497        write(*,*)'2) If necessary atmosfera_LMD_min.dat (and others)'
    499498        write(*,*)'   can be obtained online on:'
  • trunk/LMDZ.MARS/libf/aeronomars/moldiff_red.F90

    r517 r552  
    314314
    315315
    316 ! If Zmax > 2000 km there is a problem / stop
    317 
    318         if (Zmax .gt. 2000000.) then
     316! If Zmax > 4000 km there is a problem / stop
     317
     318        if (Zmax .gt. 4000000.) then
    319319        Print*,'Zmax too high',ig,zmax,zmin
    320320        do l=1,nlayermx
     
    918918        SUBROUTINE QMNEW(Q1,DQ,Q2,dtime,nl,nq,gc,ig)
    919919        IMPLICIT NONE
     920#include "dimensions.h"
    920921
    921922        INTEGER :: nl,nq
    922923        INTEGER :: l,iq,ig
    923924        INTEGER,dimension(nq) :: gc
    924         REAL,DIMENSION(nl,nq) :: Q1,DQ
     925        REAL,DIMENSION(nl,nqmx) :: Q1,DQ
    925926        REAL*8,DIMENSION(nl,nq) :: Q2
    926927        REAL :: dtime
     
    951952        SUBROUTINE MMOY(massemoy,mmol,qq,gc,nl,nq)
    952953        IMPLICIT NONE
     954#include "dimensions.h"
    953955
    954956        INTEGER :: nl,nq,l
     
    956958        REAL*8,DIMENSION(nl,nq) :: qq
    957959        REAL*8,DIMENSION(nl) :: massemoy
    958         REAL,DIMENSION(nq) :: MMOL
     960        REAL,DIMENSION(nqmx) :: MMOL
    959961
    960962
     
    10341036     & Nraf,Nrafk,Rraf,Rrafk,il,nl,nq,nlx,ig)
    10351037        IMPLICIT NONE
     1038#include "dimensions.h"
    10361039       
    10371040        INTEGER :: nl,nq,il,l,i,iq,nlx,iz,ig
     
    10441047        REAL*8, DIMENSION(nl,nq) :: Qraf,Rrafk,Nrafk
    10451048        REAL*8 :: facZ,dZ,H
    1046         REAL,DIMENSION(nq) :: mmol
     1049        REAL,DIMENSION(nqmx) :: mmol
    10471050        masseU=1.660538782d-27
    10481051        kbolt=1.3806504d-23
     
    13541357     &    pp,M,gc,nl,nq,nlx)
    13551358        IMPLICIT NONE
     1359#include "dimensions.h"
    13561360        INTEGER :: nl,nq,nlx,il,nn,iP
    13571361        INTEGER,DIMENSION(1) :: indP
     
    13591363        REAL*8,DIMENSION(nl) :: Z,P,T
    13601364        REAL*8,DIMENSION(nl,nq) :: Q,Nk,Rk
    1361         REAL,DIMENSION(nq) :: M
     1365        REAL,DIMENSION(nqmx) :: M
    13621366        REAL*8,DIMENSION(nq) :: nNew
    13631367        REAL*8,DIMENSION(nlx) :: pp,tt,tnew
     
    14471451     &   ,pp,M,gc,nl,nq,nlx,facM)
    14481452        IMPLICIT NONE
     1453#include "dimensions.h"
    14491454        INTEGER :: nl,nq,nlx,il,nn,iP
    14501455        INTEGER,DIMENSION(1) :: indP
     
    14521457        REAL*8,DIMENSION(nl) :: Z,P,T
    14531458        REAL*8,DIMENSION(nl,nq) :: Q,Nk,Rk
    1454         REAL,DIMENSION(nq) :: M
     1459        REAL,DIMENSION(nqmx) :: M
    14551460        REAL*8,DIMENSION(nq) :: nNew
    14561461        REAL*8,DIMENSION(nlx) :: pp,rhonew,tt,tnew
Note: See TracChangeset for help on using the changeset viewer.