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

Forcing for ISDAC #3025

Merged
merged 1 commit into from
Aug 27, 2024
Merged

Forcing for ISDAC #3025

merged 1 commit into from
Aug 27, 2024

Conversation

haakon-e
Copy link
Member

@haakon-e haakon-e commented May 17, 2024

Purpose

See CliMA/AtmosphericProfilesLibrary.jl#41 for forcing

To-do

Content


  • I have read and checked the items on the review checklist.

Copy link
Member

@akshaysridhar akshaysridhar left a comment

Choose a reason for hiding this comment

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

I'll take a closer look at the AtmosphericProfiles shortly and comment here once that is done, but this LGTM overall.

@haakon-e haakon-e force-pushed the he/isdac-les branch 2 times, most recently from acbc977 to 08dc509 Compare June 21, 2024 16:43
@haakon-e
Copy link
Member Author

haakon-e commented Jul 7, 2024

@akshaysridhar could you have a look at the config file and see if there's something I should change to make the test pass? I'm probably just misconfiguring resolution / time step / other knobs relative to a robust LES setup.

@szy21
Copy link
Member

szy21 commented Jul 7, 2024

Where is smagorinsky_lilly used? Maybe it is unstable because there is no diffusion.

@jty53
Copy link
Contributor

jty53 commented Jul 29, 2024

When I ran this, the simulation crashed in the first few iterations until I reduced the timestep to satisfy the cfl condition (thanks @akshaysridhar).

Copy link
Contributor

@jty53 jty53 left a comment

Choose a reason for hiding this comment

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

device: CUDA is invalid. Use device: CUDADevice

@@ -189,3 +189,58 @@ function external_forcing_tendency!(Yₜ, Y, p, t, ::GCMForcing)

return nothing
end

# ISDAC external forcing (i.e. nudging)
external_forcing_cache(Y, external_forcing::ISDACForcing) = (;) # Don't need to cache anything
Copy link
Contributor

Choose a reason for hiding this comment

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

@Sbozzolo
Line is missing parameters argument.

Copy link
Contributor

Choose a reason for hiding this comment

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

Resolved in latest push.

jty53
jty53 previously requested changes Aug 14, 2024
Copy link
Contributor

@jty53 jty53 left a comment

Choose a reason for hiding this comment

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

GCMForcing{DType}([...]) is in the wrong elseif block. Moved up into appropriate section for GCMForcing.

@jty53 jty53 dismissed their stale review August 16, 2024 02:02

Issue resolved

@haakon-e haakon-e added this pull request to the merge queue Aug 27, 2024
Merged via the queue into main with commit bd85668 Aug 27, 2024
10 of 14 checks passed
@haakon-e haakon-e deleted the he/isdac-les branch August 27, 2024 17:54
@haakon-e haakon-e mentioned this pull request Sep 16, 2024
1 task
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.

4 participants