Breaking a large program file [message #91970] |
Thu, 24 September 2015 04:39  |
Rosie
Messages: 27 Registered: September 2012
|
Junior Member |
|
|
Hello,
I am using a very large program file which takes 15 min to complete one run. The final part is generating contours globally out of data from mathematical calculations (first part).
Can anyone help me on how to separate those two parts, so that I can store and use the data from mathematical part to analyse lots of graphical details later. It will save lots of time.
Regards,
|
|
|
Re: Breaking a large program file [message #91986 is a reply to message #91970] |
Thu, 24 September 2015 11:18  |
Phillip Bitzer
Messages: 223 Registered: June 2006
|
Senior Member |
|
|
On Thursday, September 24, 2015 at 6:39:35 AM UTC-5, Parij wrote:
> Hello,
>
> I am using a very large program file which takes 15 min to complete one run. The final part is generating contours globally out of data from mathematical calculations (first part).
>
> Can anyone help me on how to separate those two parts, so that I can store and use the data from mathematical part to analyse lots of graphical details later. It will save lots of time.
>
> Regards,
A common problem for scientific programmers:
1) Analyze/parse a bunch of data
2) Plot said analysis
When I need to do this, I typically take the output from 1) and put into a SAVE file. That way, I can work on the plotting, separate from the analysis.
You could dump the analysis is some other intermediary file (ASCII, binary, etc) but I find the SAVE/RESTORE capabilities to *very* useful and simple.
|
|
|