Skip to content

Commit

Permalink
New Grid Constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
OsKnoth committed Nov 27, 2023
1 parent 81a0065 commit 946e933
Show file tree
Hide file tree
Showing 12 changed files with 364 additions and 251 deletions.
4 changes: 2 additions & 2 deletions src/DyCore/InitDriver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function InitSphere(backend,FT,OrdPoly,OrdPolyZ,nz,nPanel,H,GridType,Topography,
ParallelCom.ProcNumber = ProcNumber

TimeStepper = TimeStepperStruct{FT}(backend)
Grid = Grids.GridStruct{FT}(backend,nz,Topography)
# Grid = Grids.GridStruct{FT}(backend,nz,Topography)

if GridType == "HealPix"
# Grid=CGDycore.InputGridH("Grid/mesh_H12_no_pp.nc",
Expand All @@ -19,7 +19,7 @@ function InitSphere(backend,FT,OrdPoly,OrdPolyZ,nz,nPanel,H,GridType,Topography,
elseif GridType == "Msh"
Grid = Grids.InputGridMsh("Grid/Quad.msh",OrientFaceSphere,RadEarth,Grid)
elseif GridType == "CubedSphere"
Grid = Grids.CubedGrid(nPanel,Grids.OrientFaceSphere,RadEarth,Grid)
Grid = Grids.CubedGrid(backend,FT,nPanel,Grids.OrientFaceSphere,RadEarth,nz,Topography)
elseif GridType == "TriangularSphere"
IcosahedronGrid = Grids.CreateIcosahedronGrid()
RefineLevel = 0
Expand Down
Loading

0 comments on commit 946e933

Please sign in to comment.