Changeset 1979
- Timestamp:
- Feb 14, 2014, 11:58:58 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phy1d/1DUTILS.h
r1975 r1979 747 747 END 748 748 749 subroutine inigrads(if,im750 s ,x,fx,xmin,xmax,jm,y,ymin,ymax,fy,lm,z,fz751 s ,dt,file,titlel)752 753 754 implicit none755 756 integer if,im,jm,lm,i,j,l757 real x(im),y(jm),z(lm),fx,fy,fz,dt758 real xmin,xmax,ymin,ymax759 integer nf760 761 character file*10,titlel*40762 763 #include "gradsdef.h"764 765 data unit/24,32,34,36,38,40,42,44,46,48/766 data nf/0/767 768 if (if.le.nf) stop'verifier les appels a inigrads'769 770 print*,'Entree dans inigrads'771 772 nf=if773 title(if)=titlel774 ivar(if)=0775 776 fichier(if)=trim(file)777 778 firsttime(if)=.true.779 dtime(if)=dt780 781 iid(if)=1782 ifd(if)=im783 imd(if)=im784 do i=1,im785 xd(i,if)=x(i)*fx786 if(xd(i,if).lt.xmin) iid(if)=i+1787 if(xd(i,if).le.xmax) ifd(if)=i788 enddo789 print*,'On stoke du point ',iid(if),' a ',ifd(if),' en x'790 791 jid(if)=1792 jfd(if)=jm793 jmd(if)=jm794 do j=1,jm795 yd(j,if)=y(j)*fy796 if(yd(j,if).gt.ymax) jid(if)=j+1797 if(yd(j,if).ge.ymin) jfd(if)=j798 enddo799 print*,'On stoke du point ',jid(if),' a ',jfd(if),' en y'800 801 print*,'Open de dat'802 print*,'file=',file803 print*,'fichier(if)=',fichier(if)804 805 print*,4*(ifd(if)-iid(if))*(jfd(if)-jid(if))806 print*,trim(file)//'.dat'807 808 OPEN (unit(if)+1,FILE=trim(file)//'.dat',809 s FORM='UNFORMATTED',810 s ACCESS='DIRECT'811 s ,RECL=4*(ifd(if)-iid(if)+1)*(jfd(if)-jid(if)+1))812 813 print*,'Open de dat ok'814 815 lmd(if)=lm816 do l=1,lm817 zd(l,if)=z(l)*fz818 enddo819 820 irec(if)=0821 !CR822 ! print*,if,imd(if),jmd(if),lmd(if)823 ! print*,'if,imd(if),jmd(if),lmd(if)'824 825 return826 end827 749 SUBROUTINE gr_dyn_fi(nfield,im,jm,ngrid,pdyn,pfi) 828 750 IMPLICIT NONE
Note: See TracChangeset
for help on using the changeset viewer.