Yeah I did what you suggested me but I got this
[code]
-20.50000 1.450721
-13.50000 1.410950
-6.500000 1.247190
7.500000 1.258387
14.50000 1.406754
-20.50000 1.320300
-13.50000 1.294613
-6.500000...
Hi it works I got to write my vectors Y1 and Z1,Z2,Z3... with its elements, this is a result
-20.50000 -13.50000 -6.500000 7.500000 14.50000 this is Y1
1.450721 1.410950 1.247190 1.258387 1.406754 this is Z1
-20.50000...
Hi Pals I got to read the files finally :-) and the write in one file in this case output.dat
[code\]
PROGRAM eta
implicit none
integer ::n,i,j
real,dimension(:),allocatable::x,y,z,u,v,w,p,f
character(len=12)::fn
n=3 !NUMBER OF FILES...
hey thanks for your replied, One more question since my vector X,Y,Z has 5 elements so what I need to do is a loop
PROGRAM
IMPLICIT NONE
INTEGER :: n
REAL,DIMENSION(:),ALLOCATABLE :: x,y,z
CHARACTER(len=12) :: FN
n=400...
Im going to explain what I need to do.
First I would like to open 400 files e.g ISO1.dat,..ISO400.dat, within this files I have datas which means numbers for instance( X,Y,Z are vectors)
ISO1.dat has X1,Y1,Z1 vectors
ISO2.dat has X1,Y2,Z2 vectors
ISO3.dat has X1,Y3,Z3 vectors
I only need...
following your tips I compile the program and it worked, but I need to read and stored the dates in another file,well I thought It wouldn't difficult but I was wrong, so further details of my code is
implicit real*8(a-h,o-z)
parameter(nx=100)
dimension y(nx),eta(nx)...
Thanks for your replied but I need to do the same steps for 400 files so How can I do it, for instance
DO I=1,400
OPEN(I,file=' ISO?.DAT'...) HERE IS MY PROBLEM HOW CAN I OPEN FILES AS ISO1,ISO2...ISO400
END DO
...
DO i=1,4
ii = i + 10
READ(ii,*) ...
...
END DO
...
looking...
Hi pals I'm using fortran program to open several files like iso1.dat,iso2.dat... iso9.dat withis this files are number that I can read with my program, but I don't know how can I open the files above and then read it
this is my simple code
implicit real*8(a-h,o-z)...