Changeset 1621 for trunk/LMDZ.MARS/libf/phymars/tracer_mod.F90
- Timestamp:
- Oct 25, 2016, 9:23:21 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/tracer_mod.F90
r1617 r1621 88 88 !----------------------------------------------------------------------- 89 89 90 contains 91 92 subroutine ini_tracer_mod(nq,tname) 93 implicit none 94 95 integer,intent(in) :: nq ! number of tracers 96 character(len=*),intent(in) :: tname(nq) ! tracer names 97 98 integer :: iq, count 99 character(len=20) :: txt ! to store some text 100 101 ! set dimension and tracer names 102 nqmx=nq 103 #ifndef MESOSCALE 104 allocate(noms(nq)) 105 do iq=1,nq 106 noms(iq)=tname(iq) 107 write(*,*) "tracer_mod names : ", trim(noms(iq)) 108 enddo 109 110 ! check if tracers have 'old' names 111 count=0 112 do iq=1,nq 113 txt=" " 114 write(txt,'(a1,i2.2)') 'q',iq 115 if (txt.eq.tname(iq)) then 116 count=count+1 117 endif 118 enddo ! of do iq=1,nq 119 120 if (count.eq.nq) then 121 write(*,*) "ini_tracer_mod: tracers seem to follow old naming ", & 122 "convention (q01,q02,...)" 123 write(*,*) "you should run newstart to rename them" 124 stop 125 endif 126 #endif 127 128 ! allocate module arrays: 129 allocate(mmol(nq)) 130 allocate(radius(nq)) 131 allocate(rho_q(nq)) 132 allocate(alpha_lift(nq)) 133 allocate(alpha_devil(nq)) 134 allocate(igcm_dustbin(nq)) 135 allocate(nqdust(nq)) 136 137 end subroutine ini_tracer_mod 138 90 139 end module tracer_mod
Note: See TracChangeset
for help on using the changeset viewer.