Changeset 1608 for LMDZ5/trunk/libf/phy1d/1DUTILS.h_no_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_no_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' … … 1360 1360 integer iy,im,id,ih 1361 1361 1362 INTEGER, EXTERNAL :: lnblnk1363 1364 1362 real plev_min 1365 1363 1366 1364 plev_min = 55. ! pas de tendance de vap. d eau au-dessus de 55 hPa 1367 1365 1368 open(21,file= fich_toga(:lnblnk(fich_toga)),form='formatted')1366 open(21,file=trim(fich_toga),form='formatted') 1369 1367 read(21,'(a)') 1370 1368 do ip = 1, nt_toga … … 1918 1916 1919 1917 1920 INTEGER, EXTERNAL :: lnblnk1921 1922 1918 print*,fich_rico 1923 open(21,file= fich_rico(:lnblnk(fich_rico)),form='formatted')1919 open(21,file=trim(fich_rico),form='formatted') 1924 1920 do k=1,llm 1925 1921 zlay(k)=0. … … 2072 2068 integer iy,im,id,ih,in 2073 2069 2074 INTEGER, EXTERNAL :: lnblnk 2075 2076 open(21,file=fich_armcu(:lnblnk(fich_armcu)),form='formatted') 2070 open(21,file=trim(fich_armcu),form='formatted') 2077 2071 read(21,'(a)') 2078 2072 do ip = 1, nt_armcu
Note: See TracChangeset
for help on using the changeset viewer.