Changeset 1621 for trunk/LMDZ.MARS/libf/phymars/initracer.F
- Timestamp:
- Oct 25, 2016, 9:23:21 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/initracer.F
r1617 r1621 1 1 SUBROUTINE initracer(ngrid,nq,qsurf) 2 2 3 #ifndef MESOSCALE4 use infotrac, only: tname5 #endif6 3 use tracer_mod 7 4 USE comcstfi_h … … 54 51 c----------------------------------------------------------------------- 55 52 56 ! Initialization: allocate arrays in tracer_mod57 allocate(mmol(nq))58 allocate(radius(nq))59 allocate(rho_q(nq))60 allocate(alpha_lift(nq))61 allocate(alpha_devil(nq))62 allocate(igcm_dustbin(nq))63 allocate(nqdust(nq))64 65 #ifndef MESOSCALE66 allocate(noms(nq))67 ! Initialization: get tracer names from the dynamics and check if we are68 ! using 'old' tracer convention ('q01',q02',...)69 ! or new convention (full tracer names)70 ! check if tracers have 'old' names71 72 count=073 do iq=1,nq74 txt=" "75 write(txt,'(a1,i2.2)') 'q',iq76 if (txt.eq.tname(iq)) then77 count=count+178 endif79 enddo ! of do iq=1,nq80 81 if (count.eq.nq) then82 write(*,*) "initracer: tracers seem to follow old naming ",83 & "convention (q01,q02,...)"84 write(*,*) "you should run newstart to rename them"85 stop86 endif87 88 ! copy tracer names from dynamics89 do iq=1,nq90 noms(iq)=tname(iq)91 write(*,*) "initracer names : ", noms(iq)92 enddo93 #endif94 53 95 54 c------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.