Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

make_data.f

Go to the documentation of this file.
00001       program make_data
00002 c
00003 c     Make sample data for mcdraw.
00004 c
00005       parameter (N = 250, ND = 5, PI = 3.14159)
00006 c
00007       open(10,file='DATA.1')
00008       rewind 10
00009       do i = 1,N
00010           xx = 3.*i/float(N)
00011           write(10,*)i,xx,sin(2.*PI*xx),cos(2.*PI*xx),
00012      $                    exp(-xx)*sin(2.*PI*xx)
00013       end do
00014       close(10)
00015 c
00016       open(10,file='DATA.2')
00017       rewind 10
00018       do j = 1,N/2
00019           yy = 3.*j/float(N/2)
00020           do i = 1,N/2
00021               xx = 2.*i/float(N/2)
00022               write(10,*)sin(2.*PI*xx)*cos(2.*PI*yy)
00023           end do
00024       end do
00025       close(10)
00026 c
00027       end

Generated at Sun Feb 24 09:57:08 2002 for STARLAB by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001