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

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

metris $(cat metrisInput.txt) > metrisOutput.txt

where preAnalysis generated the file "metrisInput.txt" which contains commandline arguments for metris.

The metris analysis directory is assumed to contain a metric.meshb file. This file will be generated automatically with preAnalysis using ScalarFieldFile or HessianFieldFile inputs, or can be generated manually via system calls to metris and setting MetricFieldFile.

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 metris AIM object. In this mode, caps_execute and Analysis.runAnalysis can be used to run the analysis, or metris can be executed by calling preAnalysis, system call, and posAnalysis as demonstrated below with a pyCAPS example:

print ("\n\preAnalysis......")
metris.preAnalysis()
print ("\n\nRunning......")
metris.system("metris $(cat metrisInput.txt) > metrisOutput.txt"); # Run via system call
print ("\n\postAnalysis......")
metris.postAnalysis()