Program for computing seismic hazard

R-CRISIS Batch

R-CRISIS Batch

  • 446 Views
  • Last Post 20 July 2018
Asked_at_class posted this 20 July 2018

Hi R-CRISIS Team,

I have a set of R-CRISIS models to evaluate, how can I run them as a Batch process?

 

Thanks in advance.

Content_Manager posted this 20 July 2018

Upon a suggestion of Dr. Thomas Chartier, of IPGP, France, we have now included in the installation package a batch (command line) version of R-CRISIS. It's use is very simple:

 


Method 1:

 

"R-CRISIS Batch.exe" "filename.dat"

or 

"R-CRISIS Batch.exe" "filename.xml"

 

where filename.dat or filename.xml are input data files, correctly constructed, with R-CRISIS graphic user interface, or other means.

For instance, for N models to run, you have to paste the following lines in the command line:

 

"R-CRISIS Batch.exe" "C:\Datasets\Capra Island Mod_1.DAT"

"R-CRISIS Batch.exe" "C:\Datasets\Capra Island Mod_2.DAT"

...

"R-CRISIS Batch.exe" "C:\Datasets\Capra Island Mod_N.DAT"

 

This structure assumes that command line is being run from R-CRISIS installation directory. To open the command line you may press Win + R -> Type cmd -> Enter.

This operation will launch the computation of the case described in the input data file, starting with a validation of the data. All errors as well as the information regarding elapsed and remaining times will be reported in a MSDOS console.

Program R-CRISIS Batch.exe will be installed in the same directory than the rest of R-CRISIS.


Method 2:

An alternative solution is building a Windows Batch file which consists of a series of commands to be executed by the command-line interpreter, stored in a plain text file with *.bat extension. The structure of such file, for the same N models to run, would be like:

 

"C:\Program Files\ERN\R-CRISIS\R-CRISIS Batch.exe" "C:\Datasets\Capra Island Mod_1.DAT"

"C:\Program Files\ERN\R-CRISIS\R-CRISIS Batch.exe" "C:\Datasets\Capra Island Mod_2.DAT"

...

"C:\Program Files\ERN\R-CRISIS\R-CRISIS Batch.exe" "C:\Datasets\Capra Island Mod_N.DAT"

 

Keep in mind that C:\Program Files\ERN\R-CRISIS\ path is where R-CRISIS is installed. It could vary for each user.

Finally, call the batch file (*.bat) in the command-line; all models inside this file will be evaluated.


 

We hope this is helpful.

Thank you for your interest in R-CRISIS.

 

Best regards,

Close