-
Notifications
You must be signed in to change notification settings - Fork 60
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
Checkpointing the insertion object. #964
Conversation
I think I'll need to run the CFD-DEM examples since they are using the restart functionality... |
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.
Some small comments and doc changes to address
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.
One last comment and this is ready for merge
Description of the problem The number of inserted particle wasn't being check-pointed. The "number of particle" parameter had to be adjusted in the prm file when restarting a simulation which is annoying especially if particle cross an output boundary condition before the restart and there's still particle left to insert in the simulation. Description of the solution The attributes "particles_of_each_type_remaining" and "current_inserting_particle_type" are being check-pointed with a virtual void function. How Has This Been Tested? Current tests have been updated in a way that the total number of particle at the end of the test says the same. In brief, the parameter "number of particle" describe the number of particle at the end of the test, which wasn't the case previously. Documentation N/A Comments The circle_restart test output file had to be updated... it's hard to explain, but I think that the insertion method algorithm change after that the creation of the old restart file. This means that we are not able the generated the exact old initial condition of the test. I had to generated the ".insertion_object" restart file, thus running the simulation from t=0 to the checkpoint time step, but since the initial condition is not the same, the restart files and the output file are not the same. Co-authored-by: Bruno Blais <[email protected]> Former-commit-id: 7c362e3
Description of the problem The number of inserted particle wasn't being check-pointed. The "number of particle" parameter had to be adjusted in the prm file when restarting a simulation which is annoying especially if particle cross an output boundary condition before the restart and there's still particle left to insert in the simulation. Description of the solution The attributes "particles_of_each_type_remaining" and "current_inserting_particle_type" are being check-pointed with a virtual void function. How Has This Been Tested? Current tests have been updated in a way that the total number of particle at the end of the test says the same. In brief, the parameter "number of particle" describe the number of particle at the end of the test, which wasn't the case previously. Documentation N/A Comments The circle_restart test output file had to be updated... it's hard to explain, but I think that the insertion method algorithm change after that the creation of the old restart file. This means that we are not able the generated the exact old initial condition of the test. I had to generated the ".insertion_object" restart file, thus running the simulation from t=0 to the checkpoint time step, but since the initial condition is not the same, the restart files and the output file are not the same. Co-authored-by: Bruno Blais <[email protected]> Former-commit-id: 7c362e3
Description of the problem
Description of the solution
How Has This Been Tested?
Documentation
Comments