I am trying to compile someone else's code but am not use to fortran. When trying to compile I get the error
ForceToForce.f90:119.34:
99 FORMAT(3(F15.10),X,3I)
1
Error: Nonnegative width required in format string at (1)
ForceToForce.f90:120.37:
111 FORMAT(4(F15.10),X,2(3I))
1
Error: Nonnegative width required in format string at (1)
ForceToForce.f90:153.60:
WRITE(399999,FMT=111)QPCOM(i,1),QPCOM(i
1
Error: FORMAT label 111 at (1) not defined
I did a bit of research and I understand that you need to put an integer after the I to gin the number of positions used. So I changed the line to
111 FORMAT(4(F15.10),X,2(I3))
and the code complies but gives me a segmentation fault. As this is the only thing I changed in I assume I must have misunderstood how FORMAT is suppose to be used. Is there something else I should try?