mirror of
https://github.com/nasa/trick.git
synced 2024-12-26 00:01:09 +00:00
2c794060f4
Taking in the latest er7_utils directory and adding it into Trick in the same location it was as an external repository. Made one change to the files_to_ICG.hh file in the repository to remove the CheckpointHelper header files. Those go in the Trick files_to_ICG.hh file. refs #180 Conflicts: Makefile autoconf/configure.ac configure include/trick/files_to_ICG.hh share/trick/makefiles/Makefile.common share/trick/makefiles/config_user.mk.in trick_source/sim_services/Integrator/Makefile trick_source/trick_swig/Makefile
25 lines
776 B
Plaintext
25 lines
776 B
Plaintext
##include "er7_utils/CheckpointHelper/Manager.hh"
|
|
##include "er7_utils/CheckpointHelper/CheckpointItem.hh"
|
|
##include "er7_utils/CheckpointHelper/InputAllocsChkptRestart.hh"
|
|
|
|
class CheckpointHelperSimObject : public Trick::SimObject {
|
|
public:
|
|
CheckpointHelper::Manager manager;
|
|
CheckpointHelper::InputAllocsChkptRestart inputAllocs;
|
|
|
|
CheckpointHelperSimObject() {
|
|
P1 ("initialization") manager.processConstructorAllocs();
|
|
|
|
("checkpoint") manager.checkpoint();
|
|
("checkpoint") inputAllocs.writeChkptFile();
|
|
|
|
P59000 ("preload_checkpoint") inputAllocs.loadChkptFile();
|
|
("preload_checkpoint") manager.processConstructorAllocs();
|
|
("restart") manager.restart();
|
|
}
|
|
};
|
|
|
|
CheckpointHelperSimObject checkpointHelper;
|
|
|
|
|