Question about revinp Answered

I am running a simulation with parameter sweep and getting over 100 simulation files at the end. To save the time, I want to write a revinp script to process the data. Is it possible to read files in different folders recursively in revinp (like in a for loop)? 
 
In addition, when I use revinp file to plot the data (same code as the online tutorial), the plot pops out and crashes immediately after I run the review. I am able to save the data into file, but just not able to keep the plot. What is the problem and is there a way to solve it?

3 comments

  • Official comment

    Hi Jessica,

    Yes it is possible to set up a loop to read in the different outputs from the sequential folder numbers:

    do MyLoop I 1 $nfiles 1

    c Read data
    text fName = '$I/simoutput.flxhst'
    read f1 $fName

    c Perform some post processing...

    end$ MyLoop

     

    Can you point me towards the review tutorial you are using and we can review?

    Thanks,

    Kevin

     

     

     

    Comment actions Permalink
  • https://support.onscale.com/hc/en-us/articles/360017960392-What-is-Review-

     

    Thanks for your response! This is the tutorial that I used. I just put the simple code as:

    read f1 'xx.flxhst'
    
    grph
        plot f1 1
        writ mydata.txt
        end

    The text file is okay but the plot crashes immediately when I run the review.

    Comment actions Permalink
  • Hi Jessica,

    This code is correct, the plot should just flash up and close. If you want to view the plot, add a term after the plot. This will terminate the code (and allow you to view the plot) until you click run again or enter term into the console.

    e.g.

    read f1 'xx.flxhst'
    
    grph
        plot f1 1
        writ mydata.txt
        end
    term

    Best Regards,

    Chloe

    Comment actions Permalink

Please sign in to leave a comment.

Didn't find what you were looking for?

New post