Ignore:
Timestamp:
Nov 18, 2022, 10:43:43 AM (3 years ago)
Author:
emillour
Message:

Mars GCM:
Remove the "tracer" (logical) flag as we now always run with at least
one tracer.
EM

File:
1 edited

Legend:

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

    r2790 r2823  
    221221      endif
    222222
    223 ! check if we are going to run with or without tracers
    224       write(*,*) "Run with or without tracer transport ?"
    225       tracer=.false. ! default value
    226       call getin("tracer",tracer)
    227       write(*,*) " tracer = ",tracer
    228 
    229 ! while we're at it, check if there is a 'traceur.def' file
     223
     224! check if there is a 'traceur.def' file
    230225! and process it.
    231       if (tracer) then
    232226      ! load tracer names from file 'traceur.def'
    233227        open(90,file='traceur.def',status='old',form='formatted',
     
    246240            write(*,*) "testphys1d: error reading number of tracers"
    247241            write(*,*) "   (first line of traceur.def) "
     242            stop
     243          endif
     244          if (nq<1) then
     245            write(*,*) "testphys1d: error number of tracers"
     246            write(*,*) "is nq=",nq," but must be >=1!"
    248247            stop
    249248          endif
     
    318317        write(*,*) "testphys1d: initializing tracers"
    319318        call read_profile(nq, nlayer, qsurf, q)
    320       else
    321       ! we still need to set (dummy) tracer number and names for physdem1
    322         nq=1
    323         nqtot=nq ! set value of nqtot (in infotrac module) as nq
    324         ! allocate arrays:
    325         allocate(tname(nq))
    326         allocate(q(nlayer,nq))
    327         allocate(qsurf(nq))
    328         allocate(dq(nlayer,nq))
    329         allocate(dqdyn(nlayer,nq))
    330         allocate(mqtot(nq))
    331         do iq=1,nq
    332           write(str7,'(a1,i2.2)')'t',iq
    333           tname(iq)=str7
    334         enddo
    335       ! and just to be clean, also initialize tracers to zero for physdem1
    336         q(:,:)=0
    337         qsurf(:)=0     
    338       endif ! of if (tracer)
    339      
    340       !write(*,*) "testphys1d q", q(1,:)
    341       !write(*,*) "testphys1d qsurf", qsurf
    342319
    343320c  Date and local time at beginning of run
Note: See TracChangeset for help on using the changeset viewer.