Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29233 Discussions

PLS HELP:write& read in i/o statements

lywong
Beginner
336 Views
Hi,
Please help with this read&write problem in an i/o statement, I can't get it work for a few days!
I currently use a simplex maximization routine [DNEQBF], it behaves very unstable [can't fidn the root], so I would like to try this:
>>read and write an array of valuesto a file so that the new iteration in [DNEQBF] will be readingvalues from the array written from the last iteration.
Currently I did not specify 'action' in an open statement, so as to allow the file to be read and write. But it does not seem to be working.
You can see it in the two small subroutines (in the middle of the file): 'geteff' and 'solve_pbm'. In 'geteff', I initialize the file if use at the first time, and then treat the file as a 'read' file. In 'solve_pbm' subroutine, I write inputs to the same file, but when I print out the values, everything is zero!
What mistakes did I make?
Thanks a bunch!

Message Edited by lywong on 07-15-2004 08:41 PM

Message Edited by lywong on 07-15-2004 08:44 PM

Message Edited by lywong on 07-16-2004 08:40 AM

0 Kudos
0 Replies
Reply