Question

Say I have two programs: solve.f and plot.f . The solve program solves an equation and prints the data to a file. The plot routine reads that data and plots it. Is there a way that I can call the plot.f file in the solve.f file?

I've tried compiling the plot program (the file was named plot) and tried calling it using "call plot" but that did not work. I looked through the documentation and have not been able to find anything related to this issue.

The only alternative I can think of is to combine the two programs into one.

Was it helpful?

Solution

Unless I have completely misunderstood your question, can't you use the SYSTEM() function to execute plot.f (well, its compiled executable really) from solve.f?

Documentation is here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top