Changeset 1443 for LMDZ5/branches/LMDZ5V1.0-dev/libf
- Timestamp:
- Oct 21, 2010, 10:23:18 AM (14 years ago)
- Location:
- LMDZ5/branches/LMDZ5V1.0-dev/libf
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/branches/LMDZ5V1.0-dev/libf/dyn3d/infotrac.F90
r1403 r1443 31 31 32 32 SUBROUTINE infotrac_init 33 34 33 USE control_mod 35 36 34 IMPLICIT NONE 37 35 !======================================================================= … … 63 61 CHARACTER(len=1), DIMENSION(3) :: txts 64 62 CHARACTER(len=2), DIMENSION(9) :: txtp 65 CHARACTER(len= 13) :: str1,str263 CHARACTER(len=23) :: str1,str2 66 64 67 65 INTEGER :: nqtrue ! number of tracers read from tracer.def, without higer order of moment 68 66 INTEGER :: iq, new_iq, iiq, jq, ierr 69 INTEGER, EXTERNAL :: lnblnk70 67 71 68 !----------------------------------------------------------------------- … … 261 258 ELSE 262 259 WRITE(lunout,*)'This choice of advection schema is not available',iq,hadv(iq),vadv(iq) 260 263 261 CALL abort_gcm('infotrac_init','Bad choice of advection schema - 2',1) 264 262 END IF … … 267 265 tname(new_iq)= tnom_0(iq) 268 266 IF (iadv(new_iq)==0) THEN 269 ttext(new_iq)= str1(1:lnblnk(str1))267 ttext(new_iq)=trim(str1) 270 268 ELSE 271 ttext(new_iq)= str1(1:lnblnk(str1))//descrq(iadv(new_iq))269 ttext(new_iq)=trim(tnom_0(iq))//descrq(iadv(new_iq)) 272 270 END IF 273 271 … … 278 276 new_iq=new_iq+1 279 277 iadv(new_iq)=-20 280 ttext(new_iq)= str2(1:lnblnk(str2))//txts(jq)281 tname(new_iq)= str1(1:lnblnk(str1))//txts(jq)278 ttext(new_iq)=trim(str2)//txts(jq) 279 tname(new_iq)=trim(str1)//txts(jq) 282 280 END DO 283 281 ELSE IF (iadv(new_iq)==30) THEN … … 285 283 new_iq=new_iq+1 286 284 iadv(new_iq)=-30 287 ttext(new_iq)= str2(1:lnblnk(str2))//txtp(jq)288 tname(new_iq)= str1(1:lnblnk(str1))//txtp(jq)285 ttext(new_iq)=trim(str2)//txtp(jq) 286 tname(new_iq)=trim(str1)//txtp(jq) 289 287 END DO 290 288 END IF -
LMDZ5/branches/LMDZ5V1.0-dev/libf/dyn3dpar/infotrac.F90
r1403 r1443 61 61 CHARACTER(len=1), DIMENSION(3) :: txts 62 62 CHARACTER(len=2), DIMENSION(9) :: txtp 63 CHARACTER(len= 13) :: str1,str263 CHARACTER(len=23) :: str1,str2 64 64 65 65 INTEGER :: nqtrue ! number of tracers read from tracer.def, without higer order of moment 66 66 INTEGER :: iq, new_iq, iiq, jq, ierr 67 INTEGER, EXTERNAL :: lnblnk68 67 69 68 !----------------------------------------------------------------------- … … 217 216 new_iq=new_iq+10 ! 9 tracers added 218 217 ELSE 219 WRITE(lunout,*) 'This choice of advection schema is not available' 218 WRITE(lunout,*) 'This choice of advection schema is not available',iq,hadv(iq),vadv(iq) 220 219 CALL abort_gcm('infotrac_init','Bad choice of advection schema - 1',1) 221 220 END IF … … 258 257 iadv(new_iq)=11 259 258 ELSE 260 WRITE(lunout,*)'This choice of advection schema is not available' 259 WRITE(lunout,*)'This choice of advection schema is not available',iq,hadv(iq),vadv(iq) 260 261 261 CALL abort_gcm('infotrac_init','Bad choice of advection schema - 2',1) 262 262 END IF … … 265 265 tname(new_iq)= tnom_0(iq) 266 266 IF (iadv(new_iq)==0) THEN 267 ttext(new_iq)= str1(1:lnblnk(str1))267 ttext(new_iq)=trim(str1) 268 268 ELSE 269 ttext(new_iq)= str1(1:lnblnk(str1))//descrq(iadv(new_iq))269 ttext(new_iq)=trim(tnom_0(iq))//descrq(iadv(new_iq)) 270 270 END IF 271 271 … … 276 276 new_iq=new_iq+1 277 277 iadv(new_iq)=-20 278 ttext(new_iq)= str2(1:lnblnk(str2))//txts(jq)279 tname(new_iq)= str1(1:lnblnk(str1))//txts(jq)278 ttext(new_iq)=trim(str2)//txts(jq) 279 tname(new_iq)=trim(str1)//txts(jq) 280 280 END DO 281 281 ELSE IF (iadv(new_iq)==30) THEN … … 283 283 new_iq=new_iq+1 284 284 iadv(new_iq)=-30 285 ttext(new_iq)= str2(1:lnblnk(str2))//txtp(jq)286 tname(new_iq)= str1(1:lnblnk(str1))//txtp(jq)285 ttext(new_iq)=trim(str2)//txtp(jq) 286 tname(new_iq)=trim(str1)//txtp(jq) 287 287 END DO 288 288 END IF
Note: See TracChangeset
for help on using the changeset viewer.