Skip to content
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

Update termination criteria #297

Merged
merged 7 commits into from
Nov 28, 2024
Merged

Update termination criteria #297

merged 7 commits into from
Nov 28, 2024

Conversation

nichollsh
Copy link
Contributor

@nichollsh nichollsh commented Nov 27, 2024

Removes old steady state check and improves radiative equilibrium / energy balance condition. Closes #295.

Tidies up this code significantly, and also prints information to log regarding which criteria are enabled.

Fixes bug where config.params.stop.iter.minimum wasn't actually being used.

@nichollsh nichollsh marked this pull request as ready for review November 27, 2024 11:10
Copy link
Member

@lsoucasse lsoucasse left a comment

Choose a reason for hiding this comment

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

I really like these new changes. It lightens the main script and it is now very clear how the code goes through all the stopping conditions.

@nichollsh
Copy link
Contributor Author

nichollsh commented Nov 28, 2024

Thanks! I agree that it was quite unclear previously - this is something I have been wanting to do for a while.

@nichollsh nichollsh merged commit 03c7329 into main Nov 28, 2024
5 checks passed
@nichollsh nichollsh deleted the hn/terminate branch November 28, 2024 09:17
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.

Model does not terminate when F_tidal > F_atm
2 participants