- #1
- 3,971
- 329
Hi guys, I've been tinkering with this code for a while now, as you probably have seen from my other threads. Right now I am working on changing the code around so that it actually writes out the correct output instead of the old output.
I am getting this runtime error:
The code that is around line 2057 is this:
Now, I basically just copy-pasted this code from a previous iteration, so I don't know really what all those formatting things mean. The previous iteration worked fine and did not give this error. The part that I copy pasted looks like this in the previous iteration:
As you can see, it is nearly identical except instead of printing xsum and xsumbar which are two nflavor by nflavor matrices, I have replaced it with printing an xsum that has been expanded to a nflavor2 by nflavor2 matrix (nflavor2=nflavor*2). So instead of printing 18 numbers, it should print 36 numbers.
Can anyone shed some light on what's happening? Maybe having a bigger matrix to print out is a problem?
I am getting this runtime error:
Code:
At line 2057 of file bulb-new.F90 (unit = 6, file = 'stdout')
Fortran runtime error: Expected INTEGER for item 26 in formatted transfer, got REAL
(a1,f15.10,i5,1p,20e15.7)
^
The code that is around line 2057 is this:
Code:
write(6,'(a1,f15.10,i5,1p,20e15.7)')'x',r,iter,dr,err, &
& xsum(1:nflavor2,1:nflavor2)
open(unit=7,file='status')
write(7,'(a1,f15.10,i5,1p,20e15.7)')'x',r,iter,dr,err, &
& xsum(1:nflavor2,1:nflavor2)
close(7)
Now, I basically just copy-pasted this code from a previous iteration, so I don't know really what all those formatting things mean. The previous iteration worked fine and did not give this error. The part that I copy pasted looks like this in the previous iteration:
Code:
write(6,'(a1,f15.10,i5,1p,20e15.7)')'x',r,iter,dr,err, &
& xsum(1:nflavor,1:nflavor),xbarsum(1:nflavor,1:nflavor)
open(unit=7,file='status')
write(7,'(a1,f15.10,i5,1p,20e15.7)')'x',r,iter,dr,err, &
& xsum(1:nflavor,1:nflavor),xbarsum(1:nflavor,1:nflavor)
close(7)
As you can see, it is nearly identical except instead of printing xsum and xsumbar which are two nflavor by nflavor matrices, I have replaced it with printing an xsum that has been expanded to a nflavor2 by nflavor2 matrix (nflavor2=nflavor*2). So instead of printing 18 numbers, it should print 36 numbers.
Can anyone shed some light on what's happening? Maybe having a bigger matrix to print out is a problem?