Changeset 1608 for LMDZ5/trunk/libf/phy1d/1DUTILS.h_with_writelim
- Timestamp:
- Jan 10, 2012, 2:33:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phy1d/1DUTILS.h_with_writelim
r1607 r1608 735 735 ! local 736 736 737 integer im,jm,lm,i,j,l, lnblnk,iv,iii,iji,iif,ijf737 integer im,jm,lm,i,j,l,iv,iii,iji,iif,ijf 738 738 739 739 logical writectl … … 769 769 nvar(if)=ivar(if) 770 770 var(ivar(if),if)=name 771 tvar(ivar(if),if)=t itlevar(1:lnblnk(titlevar))771 tvar(ivar(if),if)=trim(titlevar) 772 772 nld(ivar(if),if)=nl 773 773 print*,'initialisation ecriture de ',var(ivar(if),if) … … 810 810 file=fichier(if) 811 811 ! WARNING! on reecrase le fichier .ctl a chaque ecriture 812 open(unit(if),file= file(1:lnblnk(file))//'.ctl',812 open(unit(if),file=trim(file)//'.ctl', 813 813 & form='formatted',status='unknown') 814 814 write(unit(if),'(a5,1x,a40)') 815 & 'DSET ','^'// file(1:lnblnk(file))//'.dat'815 & 'DSET ','^'//trim(file)//'.dat' 816 816 817 817 write(unit(if),'(a12)') 'UNDEF 1.0E30' … … 848 848 implicit none 849 849 850 integer if,im,jm,lm,i,j,l ,lnblnk850 integer if,im,jm,lm,i,j,l 851 851 real x(im),y(jm),z(lm),fx,fy,fz,dt 852 852 real xmin,xmax,ymin,ymax … … 868 868 ivar(if)=0 869 869 870 fichier(if)= file(1:lnblnk(file))870 fichier(if)=trim(file) 871 871 872 872 firsttime(if)=.true. … … 898 898 899 899 print*,4*(ifd(if)-iid(if))*(jfd(if)-jid(if)) 900 print*, file(1:lnblnk(file))//'.dat'901 902 OPEN (unit(if)+1,FILE= file(1:lnblnk(file))//'.dat',900 print*,trim(file)//'.dat' 901 902 OPEN (unit(if)+1,FILE=trim(file)//'.dat', 903 903 s FORM='UNFORMATTED', 904 904 s ACCESS='DIRECT' … … 1483 1483 integer iy,im,id,ih 1484 1484 1485 INTEGER, EXTERNAL :: lnblnk1486 1487 1485 real plev_min 1488 1486 1489 1487 plev_min = 55. ! pas de tendance de vap. d eau au-dessus de 55 hPa 1490 1488 1491 open(21,file= fich_toga(:lnblnk(fich_toga)),form='formatted')1489 open(21,file=trim(fich_toga),form='formatted') 1492 1490 read(21,'(a)') 1493 1491 do ip = 1, nt_toga … … 2041 2039 2042 2040 2043 INTEGER, EXTERNAL :: lnblnk2044 2045 2041 print*,fich_rico 2046 open(21,file= fich_rico(:lnblnk(fich_rico)),form='formatted')2042 open(21,file=trim(fich_rico),form='formatted') 2047 2043 do k=1,llm 2048 2044 zlay(k)=0. … … 2195 2191 integer iy,im,id,ih,in 2196 2192 2197 INTEGER, EXTERNAL :: lnblnk 2198 2199 open(21,file=fich_armcu(:lnblnk(fich_armcu)),form='formatted') 2193 open(21,file=trim(fich_armcu),form='formatted') 2200 2194 read(21,'(a)') 2201 2195 do ip = 1, nt_armcu
Note: See TracChangeset
for help on using the changeset viewer.