-
Notifications
You must be signed in to change notification settings - Fork 225
Fix #702 Activate new plugins after restart #703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #702 Activate new plugins after restart #703
Conversation
|
huh, good catch. I missed that case while implementing it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's an interesting way of checking that.
We usually use if( !boost::filesystem::exists( src ) ) for that - maybe that's more suited here, too.
also saves you the restartFile.close(); lines below.
boost:filesystem is already in the scope, so you can use a slick if( ! exists( src ) ) :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ax3l Thanks, that's way better. I will change it to boost::filesystem::....
|
great fix! 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, please keep it a one-liner. else it's a huge mess in parallel outputs.
Fix #702 Activate new plugins after restart
This pull request solves issue #702:
If we add plugin calls via command line after a restart, checkpoint files for the plugin do not exists thus crashing PIConGPU during the attempt to copy checkpoint files to output files.
This pull request now checks whether a checkpoint file exists. If it does, everthing is handled as before. If the required checkpoint file does not exist, a warning is printed and we just start with data output from the restart point. PIConGPU does not crash anymore.
To Do: