Skip to content

Commit

Permalink
damping gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
OsKnoth committed Jan 1, 2024
1 parent fa86172 commit 1f9ac77
Show file tree
Hide file tree
Showing 13 changed files with 780 additions and 12 deletions.
7 changes: 6 additions & 1 deletion Examples/testNHSphere.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ RhoRPos = parsed_args["RhoRPos"]
HorLimit = parsed_args["HorLimit"]
Upwind = parsed_args["Upwind"]
Damping = parsed_args["Damping"]
Geos = parsed_args["Geos"]
Relax = parsed_args["Relax"]
StrideDamp = parsed_args["StrideDamp"]
Geos = parsed_args["Geos"]
Coriolis = parsed_args["Coriolis"]
CoriolisType = parsed_args["CoriolisType"]
Buoyancy = parsed_args["Buoyancy"]
Expand Down Expand Up @@ -248,6 +248,11 @@ if Microphysics
@show "False Type Microphysics"
end
end
# Damping
if Damping
Damp = GPU.DampingW()(H,StrideDamp,Relax,Model.wPos)
Model.Damp = Damp
end

# Surface flux
if Model.SurfaceFlux || Model.VerticalDiffusion
Expand Down
Binary file modified GlobInd
Binary file not shown.
5 changes: 4 additions & 1 deletion Jobs/NHSphere/JobNHHeldSuarezMoistSphere
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mpirun -n 1 julia --project Examples/testNHSphere.jl \
mpirun -n 6 julia --project Examples/testNHSphere.jl \
--Problem="HeldSuarezMoistSphere" \
--Device="CPU" \
--GPUType="Metal" \
Expand All @@ -23,6 +23,9 @@ mpirun -n 1 julia --project Examples/testNHSphere.jl \
--Microphysics=true \
--TypeMicrophysics="SimpleMicrophysics" \
--Buoyancy=true \
--Damping=true \
--StrideDamp=10000 \
--Relax=1.0e-3 \
--Decomp="EqualArea" \
--SimSeconds=0 \
--SimDays=10 \
Expand Down
Loading

0 comments on commit 1f9ac77

Please sign in to comment.