-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add snapshot frequency to Euler Forward driver #10
base: master
Are you sure you want to change the base?
Conversation
745e804
to
76159f6
Compare
Add snapshot frequency for euler forward and printer disable flag for CSV printer
b159d10
to
e99ac65
Compare
@mscuttari Added a disable printing flag to the CSV printer as well. |
} while (std::abs(simulation::getOptions().endTime - time) >= | ||
eulerforward::getOptions().timeStep); | ||
updateNonStateVariables(); | ||
EULER_FORWARD_PROFILER_NONSTATEVAR_STOP; | ||
|
||
if (marco::runtime::simulation::getOptions().debug) { |
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.
This should be done only if the snapshot steps condition holds.
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.
Pushing soon
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.
The macros / assertions -- introduced as sequence points?
lib/Simulation/Runtime.cpp
Outdated
@@ -270,6 +270,7 @@ namespace | |||
dynamicModelEnd(); | |||
SIMULATION_PROFILER_DYNAMIC_MODEL_STOP; | |||
|
|||
|
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.
Same question :D
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.
No :D
@@ -34,6 +34,7 @@ namespace marco::runtime | |||
|
|||
std::vector<int64_t> derOrders; | |||
|
|||
|
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.
Is this whiteline inserted by clang-format? :D
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.
No :D
This PR adds a snapshot frequency CLI parameter for the formatter.
Setting a positive value greater than 1 will cause the printer to skip iteration numbers that are not divisible by the snapshot frequency.