Skip to content

Fix adjustableRunTIme bug in the FoamTimeStepper - #123

Merged
mattfalcone1997 merged 9 commits into
aurora-multiphysics:mainfrom
mattfalcone1997:fix-timestepper-memory-issue
Jul 13, 2026
Merged

Fix adjustableRunTIme bug in the FoamTimeStepper#123
mattfalcone1997 merged 9 commits into
aurora-multiphysics:mainfrom
mattfalcone1997:fix-timestepper-memory-issue

Conversation

@mattfalcone1997

Copy link
Copy Markdown
Collaborator

Summary

The mooseDeltaT function object is searfched in Foam::Time rather than a reference stored and it is now recreated if it is cleared by Foam::Time::adjustDeltaT

Related Issue

Resolves #122

Checklist

  • Tests have been written for the new/changed behaviour.
  • Documentation/examples have been added/updated for the new changes.

@mattfalcone1997
mattfalcone1997 requested a review from k-collie June 17, 2026 14:48

@k-collie k-collie left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

First set of comments, looks good so far

Comment thread include/base/FoamSolver.h Outdated
Comment thread src/base/FoamSolver.C Outdated
Comment thread include/base/FoamSolver.h Outdated
Comment thread src/base/FoamSolver.C Outdated
Comment thread src/timesteppers/FoamTimeStepper.C
@mattfalcone1997
mattfalcone1997 requested a review from k-collie July 13, 2026 12:07
Comment thread src/base/FoamSolver.C Outdated
Comment thread src/base/FoamSolver.C Outdated
Co-authored-by: k-collie <101559596+k-collie@users.noreply.github.com>
@mattfalcone1997
mattfalcone1997 requested a review from k-collie July 13, 2026 14:17

@k-collie k-collie left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me!

Maybe squash merge when you merge.

@mattfalcone1997
mattfalcone1997 merged commit ec9fa56 into aurora-multiphysics:main Jul 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

We get memory issues when using writeControl adjustableRunTime; in the controlDict

2 participants