2022-08-05 22:05:10 +00:00
|
|
|
| [Home](/trick) → [Documentation Home](../Documentation-Home) → [Simulation Capabilities](Simulation-Capabilities) → Checkpoints |
|
|
|
|
|------------------------------------------------------------------|
|
|
|
|
|
2019-11-20 17:04:58 +00:00
|
|
|
The Trick CheckPointWriter is a C++ Class that implements checkpointing.
|
|
|
|
|
|
|
|
## Checkpointing
|
|
|
|
```python
|
|
|
|
# Save a checkpoint before the initialization jobs execute. default False
|
|
|
|
trick.checkpoint_pre_init(True|False)
|
|
|
|
# Save a checkpoint after the initialization jobs execute. default False
|
|
|
|
trick.checkpoint_post_init(True|False)
|
|
|
|
# Save a checkpoint when the simulation ends. default False
|
|
|
|
trick.checkpoint_end(True|False)
|
|
|
|
# Save a checkpoint at a time in the future
|
|
|
|
trick.checkpoint(<time>)
|
|
|
|
# Save a checkpoint now
|
|
|
|
trick.checkpoint()
|
|
|
|
|
|
|
|
# Set the CPU to use for checkpoints
|
|
|
|
trick.checkpoint_cpu(<cpu_num>)
|
|
|
|
|
|
|
|
# Save a checkpoint periodically during simulation execution. default False
|
|
|
|
trick.checkpoint_safestore_set_enabled(True|False)
|
|
|
|
# Set the safestore checkpoint period. default 9x10e18
|
|
|
|
trick.checkpoint_safestore(<period>)
|
|
|
|
```
|
|
|
|
|
|
|
|
[Continue to Memory Manager](memory_manager/MemoryManager)
|