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

Skip rrtmgp callback in ode init #1932

Closed
wants to merge 1 commit into from
Closed

Conversation

charleskawczynski
Copy link
Member

This PR changes the RRTMGP callback to skip on integrator initialization. I was looking into reducing latency, and found that this accounts for 97% of integrator = ODE.init(...) (for cases with rrtmgp radiation). If this is behavior changing, then we should first think about whether this change makes sense (we can always call this callback after getting the integrator in the driver, or make a wrapper that does it), but I like the change at the very least because it decouples getting the integrator from doing computations. For example, if someone is debugging a job that has rrtmgp, but they want to call some other tendency, it doesn't make sense to do all of these extra computations.

@charleskawczynski
Copy link
Member Author

Superseded by CliMA/RRTMGP.jl#391

@charleskawczynski charleskawczynski deleted the ck/skip_cb_init branch October 6, 2023 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant