Closed GoogleCodeExporter closed 9 years ago
Rocky,
Glad to here you have had some success using RFortran.
I think I understand your problem.
Unfortunatly, the RFortran mode of operation is for the Fortran process to wait
until the R commands executed through RFortran (e.g. Reval or Rcall) are
completed before returning control to the Fortran process. I am not currently
aware of how to easily change this.
This has advantages when you are debugging because you can put browser()
commands in R scripts called via RFortran and this actually pauses the Fortran
process.
In your case however, this has the disadvantage the HYDR model has to wait
until the R process is finished plotting before continuing.
A suggested workaround is to potentially re-arrange your RFortran commands, so
that the data transfer (Fortran->R) is undertaken during running of the HYDR
model (variable transfer is usually quick), and the computationally expensive
processing of data into the plots is undertaken after the "Model Run Ends"
command is executed - either through R commands via RFortran or manually
running R scripts.
Hope this helps.
Mark
Original comment by mark.th...@gmail.com
on 13 Feb 2011 at 1:16
Original issue reported on code.google.com by
rocky.y...@gmail.com
on 10 Feb 2011 at 5:29