Hi,
I've now got everything working a bit better thanks - I can return the
solution.ps file for any of the test problems via a call from Java.
The only problem I'm having is with using IO in genpack.f to solve my own problem.
I'm not a FORTRAN77 expert - is there anything unexpected in genpack.f which could affect my editing of the subroutines to take input from file?
From testing I know the defpro subroutine is fine, so I think the problem is in evalw or evaldw.
When I try to select problem 1 at runtime, the command prompt just freezes.
Again, I appreciate any help!
Anyway, here is what I have for evalw and evaldw:
evalw:
C LOCAL SCALARS
double precision tmp,a1,a2,a3,a4,b1,b2,b3,b4,c1,c2,c3,c4
if ( probid .eq. 1 ) then
open(unit=8, file="c:\\users\\laurence\\vals.txt")
read(8, *) a1
read(8, *) a2
read(8, *) a3
read(8, *) a4
read(8, *) b1
read(8, *) b2
read(8, *) b3
read(8, *) b4
read(8, *) c1
read(8, *) c2
read(8, *) c3
read(8, *) c4
close(8)
w(1) = a1 * p(1) + b1 * p(2) + c1
w(2) = a2 * p(1) + b2 * p(2) + c2
w(3) = a3 * p(1) + b3 * p(2) + c3
w(4) = a4 * p(1) + b4 * p(2) + c4
...
evaldw:
if ( probid .eq. 1 ) then
open(UNIT=4, FILE="c:\\users\\laurence\\diffs.txt")
read(4, *) dwdp1(1)
read(4, *) dwdp1(2)
read(4, *) dwdp1(3)
read(4, *) dwdp1(4)
read(4, *) dwdp2(1)
read(4, *) dwdp2(2)
read(4, *) dwdp2(3)
read(4, *) dwdp2(4)
close(4)
...