Astros Analysis Interface Module (AIM)
Natran Analysis Interface Module (AIM)
Loading...
Searching...
No Matches
AIM Execution

If auto execution is enabled when creating an Astros AIM, the AIM will execute Astros just-in-time with the command line:

$ASTROS_ROOT/astros < $Proj_Name.dat > $Proj_Name.out

where preAnalysis generated the file Proj_Name + ".dat" which contains the input information. The environemtn variable ASTROS_ROOT is assumed to point to the location where the "astros.exe" executable and run files "ASTRO.D01" and "ASTRO.IDX" are located.

The analysis can be also be explicitly executed with caps_execute in the C-API or via Analysis.runAnalysis in the pyCAPS API.

Calling preAnalysis and postAnalysis is NOT allowed when auto execution is enabled.

Auto execution can also be disabled when creating an Astros AIM object. In this mode, caps_execute and Analysis.runAnalysis can be used to run the analysis, or Astros can be executed by calling preAnalysis, system call, and posAnalysis as demonstrated below with a pyCAPS example:

print ("\n\preAnalysis......")
astros.preAnalysis()
print ("\n\nRunning......")
astros.system(ASTROS_ROOT + os.sep + "astros.exe < " + astros.input.Proj_Name + ".dat > " + astros.input.Proj_Name + ".out"); # Run via system call
print ("\n\postAnalysis......")
astros.postAnalysis()