Skip to content

Conversation

@wdhawkins
Copy link
Collaborator

Adds pre-advance and post-advance hooks to TimeDependentSourceSolver::Execute to improve usability of c++ time-stepping method.

@wdhawkins wdhawkins requested review from andrsd and ragusa December 26, 2025 23:48
@wdhawkins wdhawkins self-assigned this Dec 26, 2025
@wdhawkins wdhawkins added the enhancement New feature or request label Dec 26, 2025
Comment on lines +156 to +157
if (dt < 0.0)
throw std::runtime_error(GetName() + " dt must be non-negative");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can dt be = 0? should we not check for strict positivity?


void PostAdvance(std::function<void()> callback);

void PostAdvance(std::nullptr_t);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these 4 setters have Set prefix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants