- Timestamp:
- Jan 10, 2012, 2:33:09 PM (13 years ago)
- Location:
- LMDZ5/trunk/libf/phy1d
- Files:
-
- 4 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 -
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 -
LMDZ5/trunk/libf/phy1d/1DUTILS.h_with_writelim_old
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 1485 1487 1486 real plev_min … … 1489 1488 plev_min = 55. ! pas de tendance de vap. d eau au-dessus de 55 hPa 1490 1489 1491 open(21,file= fich_toga(:lnblnk(fich_toga)),form='formatted')1490 open(21,file=trim(fich_toga),form='formatted') 1492 1491 read(21,'(a)') 1493 1492 do ip = 1, nt_toga … … 2041 2040 2042 2041 2043 INTEGER, EXTERNAL :: lnblnk2044 2045 2042 print*,fich_rico 2046 open(21,file= fich_rico(:lnblnk(fich_rico)),form='formatted')2043 open(21,file=trim(fich_rico),form='formatted') 2047 2044 do k=1,llm 2048 2045 zlay(k)=0. … … 2195 2192 integer iy,im,id,ih,in 2196 2193 2197 INTEGER, EXTERNAL :: lnblnk 2198 2199 open(21,file=fich_armcu(:lnblnk(fich_armcu)),form='formatted') 2194 open(21,file=trim(fich_armcu),form='formatted') 2200 2195 read(21,'(a)') 2201 2196 do ip = 1, nt_armcu -
LMDZ5/trunk/libf/phy1d/lmdz1d.F
r1607 r1608 1 1 PROGRAM lmdz1d 2 2 3 USE ioipsl, only: ju2ymds, ymds2ju 4 USE calendar 3 USE ioipsl, only: ju2ymds, ymds2ju, ioconf_calendar 5 4 use phys_state_var_mod 6 5 use comgeomphy … … 298 297 299 298 c calend = 'earth_365d' 300 #301 299 if (calend == 'earth_360d') then 302 300 call ioconf_calendar('360d') … … 358 356 ! Initialization of dimensions, geometry and initial state 359 357 !--------------------------------------------------------------------- 360 call init_phys_lmdz(1,1,llm,1, 1)358 call init_phys_lmdz(1,1,llm,1,(/1/)) 361 359 call suphel 362 360 call initcomgeomphy
Note: See TracChangeset
for help on using the changeset viewer.