Skip to content

Conversation

@PrometheusPi
Copy link
Member

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:

  • verify that this pull request solves the restart crash
  • verify that standard restart still works

@PrometheusPi PrometheusPi changed the title Close #702 - add check to allow plugins without restart file Close #702 - treat plugins without checkpoint file Feb 13, 2015
@PrometheusPi PrometheusPi added bug a bug in the project's code component: plugin in PIConGPU plugin labels Feb 13, 2015
@PrometheusPi PrometheusPi added this to the Open Beta milestone Feb 13, 2015
@ax3l ax3l self-assigned this Feb 13, 2015
@ax3l ax3l changed the title Close #702 - treat plugins without checkpoint file Fix #702 Activate new plugins after restart Feb 13, 2015
@ax3l
Copy link
Member

ax3l commented Feb 13, 2015

huh, good catch. I missed that case while implementing it.

Copy link
Member

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 ) ) :)

Copy link
Member Author

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::....

@ax3l
Copy link
Member

ax3l commented Feb 13, 2015

great fix! 👍

Copy link
Member

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.

ax3l added a commit that referenced this pull request Feb 17, 2015
Fix #702 Activate new plugins after restart
@ax3l ax3l merged commit 7d38ee0 into ComputationalRadiationPhysics:dev Feb 17, 2015
@PrometheusPi PrometheusPi deleted the fix-restartPlugin branch February 17, 2015 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug a bug in the project's code component: plugin in PIConGPU plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants