|
|
|
# MagicCut
|
|
|
|
|
|
|
|
MagicCut is a tool used to cut Extrae traces written by Oriol Tintó and modified by S.V Paronuzzi Ticco.
|
|
|
|
|
|
|
|
Some assumptions were made for the tool to work:
|
|
|
|
- This tool has been tested just with NEMO, and I don't know (nor Oriol, the author of the tool, does) how it would behave with other models.
|
|
|
|
- Is based on the idea of having a __timestep__ structure in the code.
|
|
|
|
|
|
|
|
The tool will guess which is the first function called, and using this as a marker for the timesteps length, determines the best of them and cuts it using paramedir. This implies some conditions:
|
|
|
|
- your code is supposed to have even steps
|
|
|
|
- the function called are more or less always the same
|
|
|
|
- ... other things that do not occur to me right now.
|
|
|
|
|
|
|
|
The only thing here is: try to use it, and when it fails contact me or Oriol if you can't/don't have the time to figure out yourself what went wrong.
|
|
|
|
|
|
|
|
## The code
|
|
|
|
It is composed by three different part
|
|
|
|
- magicCut bash script
|
|
|
|
- bin/find_time_to_cut.py
|
|
|
|
- templates/cutter_template.xml
|
|
|
|
|
|
|
|
Let's take a look of what they do, and how to use them. |