Error handling in review files Answered
What error handling capabilities are there in analyst mode? Specifically, is there any error handling enabled for reading in external files. I know modern Fortran has the capability of going to a different line when an error is encountered, but I couldn't find any documentation about a similar ability in the command reference for onscale.
My specific problem is that I'm using a review file to calculate the impedance for hundreds of runs that were previously done as part of a batch run. In the review file I use a do loop to iterate through the run numbers and read each flxhst file. However, I know that some of the runs don't have flxhst files because the geometry in that DOE caused an error. So when the review file gets to run 19 for example, I get an error when the program tries to read a file that doesn't exist. It would be nice if there as a line of code that would let me say "if this line returns an error, skip to line 68".
Is this functionality available?
1 comment
Hi Sarah,
Unfortunately we do not currently have this functionality in OnScale. However, we are in the process of developing a Matlab Toolbox which allows you to control job submission and post-processing of OnScale models via Matlab and gives you the flexibility to do things like error handling.This is still in the beta stage but if you are interested I can get someone to reach out to you with an example?
Best Regards,
Chloe
Please sign in to leave a comment.
Didn't find what you were looking for?
New post