-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from NOAA-GFDL/feature/init_standard
Standardizing module import method for pyFV3
- Loading branch information
Showing
36 changed files
with
144 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
from ._config import DynamicalCoreConfig | ||
from .dycore_state import DycoreState | ||
from .stencils.fv_dynamics import DynamicalCore | ||
from .stencils.fv_subgridz import DryConvectiveAdjustment | ||
from .wrappers.geos_wrapper import GeosDycoreWrapper | ||
from .stencils import DryConvectiveAdjustment, DynamicalCore | ||
|
||
|
||
""" | ||
DynamicalCoreConfig: Configuration for the FV3 dynamical core | ||
DycoreState: Dataclass containing state of the dynamical core | ||
DryConvectiveAdjustment: Sub-grid dry convective adjustment | ||
DynamicalCore: The FV3 dynamical core | ||
GeosDycoreWrapper: Interface to the dycore for the GEOS model | ||
""" | ||
|
||
__version__ = "0.2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
from .analytic_init import init_analytic_state | ||
|
||
|
||
""" | ||
init_analytic_state: Creates dycore state object out of analytic initial conditions | ||
""" |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
from .a2b_ord4 import AGrid2BGridFourthOrder | ||
from .c_sw import CGridShallowWaterDynamics | ||
from .d2a2c_vect import DGrid2AGrid2CGridVectors | ||
from .d_sw import DGridShallowWaterLagrangianDynamics | ||
from .del2cubed import HyperdiffusionDamping | ||
from .delnflux import DelnFlux, DelnFluxNoSG | ||
from .divergence_damping import DivergenceDamping | ||
from .dyn_core import AcousticDynamics | ||
from .fillz import FillNegativeTracerValues | ||
from .fv_dynamics import DynamicalCore | ||
from .fv_subgridz import DryConvectiveAdjustment | ||
from .fvtp2d import FiniteVolumeTransport | ||
from .fxadv import FiniteVolumeFluxPrep | ||
from .map_single import MapSingle | ||
from .mapn_tracer import MapNTracer | ||
from .neg_adj3 import AdjustNegativeTracerMixingRatio | ||
from .nh_p_grad import NonHydrostaticPressureGradient | ||
from .pk3_halo import PK3Halo | ||
from .ray_fast import RayleighDamping | ||
from .remap_profile import RemapProfile | ||
from .remapping import LagrangianToEulerian | ||
from .riem_solver3 import NonhydrostaticVerticalSolver | ||
from .riem_solver_c import NonhydrostaticVerticalSolverCGrid | ||
from .saturation_adjustment import SatAdjust3d | ||
from .sim1_solver import Sim1Solver | ||
from .tracer_2d_1l import TracerAdvection | ||
from .updatedzc import UpdateGeopotentialHeightOnCGrid | ||
from .updatedzd import UpdateHeightOnDGrid | ||
from .xppm import XPiecewiseParabolic | ||
from .yppm import YPiecewiseParabolic | ||
|
||
|
||
""" | ||
AGrid2BGridFourthOrder: Converts field from A grid to B grid | ||
CGridShallowWaterDynamics: C-grid shallow water solver | ||
DGrid2AGrid2CGridVectors: Converts velocities from the D-grid to the A-grid and C-grid | ||
DGridShallowWaterLagrangianDynamics: D-grid shallow water solver | ||
HyperdiffusionDamping: Performs hyper diffusion filtering | ||
DelnFlux: Computes damping fluxes and applies them to a field | ||
DelnFluxNoSG: Only computes damping fluxes, but does not apply them | ||
DivergenceDamping: Diffusively damps the divergence field | ||
AcousticDynamics: Acoustic loop of the dynamical core | ||
FillNegativeTracerValues: Fixes negative tracer values | ||
DynamicalCore: The FV3 dynamical core | ||
DryConvectiveAdjustment: Performs subgrid dry convective adjustment mixing | ||
FiniteVolumeTransport: Calculates fluxes for finite volume transport | ||
FiniteVolumeFluxPrep: Prepares fluxes for finite volume transport | ||
MapSingle: Remaps vertical layers for one field | ||
MapNTracer: Remaps vertical layers for all tracer species | ||
AdjustNegativeTracerMixingRatio: Updates winds from pressure gradients | ||
PK3Halo: Calculates pressure raised to kappa power in halos | ||
RayleighDamping: Applies Rayleigh damping | ||
RemapProfile: Calculates cubic spline interpolation for vertical remapping | ||
LagrangianToEulerian: Remaps Lagrangian surfaces onto Eulerian coordinates | ||
NonhydrostaticVerticalSolver: Calculates nonhydrostatic w and p after advection | ||
NonhydrostaticVerticalSolverCGrid: Calculates nonhydrostatic w and p after | ||
C-grid advection | ||
SatAdjust3d: Fast microphysical phase changes | ||
Sim1Solver: Semi-implict method solver | ||
TracerAdvection: Advects tracers | ||
UpdateGeopotentialHeightOnCGrid: Updates cell heights on C-grid | ||
UpdateHeightOnDGrid: Updates cell heights on D-grid | ||
XPiecewiseParabolic: Piecewise parabolic method advection in x-direction | ||
YPiecewiseParabolic: Piecewise parabolic method advection in y-direction | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from .geos_wrapper import GeosDycoreWrapper, MemorySpace, StencilBackendCompilerOverride | ||
|
||
|
||
""" | ||
GeosDycoreWrapper: Main class, wrap the digest the GEOS interface call | ||
and execute the pyFV3 numerics | ||
MemorySpace: Flag describing the memory space for both side of the interface | ||
StencilBackendCompilerOverride: Custom workaround to align gt backends | ||
build with orchestrated backends | ||
""" |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.