Recent content by komp
-
K
Fortran [Fortran] Help Reading Complex 2D data
This is how the data is supplied. I haven't tried converting the data. As data are in real and then imaginary per bracket. Thanks for your help.- komp
- Post #3
- Forum: Programming and Computer Science
-
K
Fortran [Fortran] Help Reading Complex 2D data
Dear All, Please, I am trying to read in a data shown in array form but no luck. The data is 10 by 10 with each 10 by 10 depicted by a local array, for e.g. 0 0 0 0 0 0. A sample of the code I tried using is as shown below and the data is as attached. Please, any help or suggestion will be...- komp
- Thread
- 2d Complex Data Fortran Reading
- Replies: 2
- Forum: Programming and Computer Science
-
K
Fortran Please, Help with Data Reading in Fortran
It is the same. I just explained that nw-u is actually nwu and not subtraction as it seem to show. Yes, it shows that the error is in the 4th argument but I don't know why it should be out of bound when I clearly defined it. Thanks.- komp
- Post #5
- Forum: Programming and Computer Science
-
K
Fortran Please, Help with Data Reading in Fortran
Thank you very much for your assistant. Sorry as I wasn't explicit enough. The array is declared as: complex*16:: data(1:Nm,1:Nm,-nw:nw,0:nwu) And for clarity, nw-u is actually nwu and not a subtraction as it seem to show.- komp
- Post #3
- Forum: Programming and Computer Science
-
K
Fortran Please, Help with Data Reading in Fortran
I have been trying to read in a data using Fortran but for some reasons, it doesn't read the data correctly. Please, any help will be appreciated. To read the data, I used the following (Note, for the attached data, Nm=1, nw-nu=5, nw=10). The array data(i,j,m,n) is declared as...- komp
- Thread
- Data Fortran Reading
- Replies: 6
- Forum: Programming and Computer Science