Skip to content

Commit

Permalink
Merge pull request #86 from FlorianDeconinck/feature/seconds_per_day_…
Browse files Browse the repository at this point in the history
…in_constants

Add SECONDS_PER_DAY as a constant
  • Loading branch information
FlorianDeconinck authored Dec 2, 2024
2 parents 53b273b + c436b0b commit 3c1ee68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ndsl/constants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
from enum import Enum

from ndsl.dsl.typing import Float
from ndsl.logging import ndsl_log


Expand Down Expand Up @@ -119,6 +120,7 @@ class ConstantVersions(Enum):
else:
raise RuntimeError("Constant selector failed, bad code.")

SECONDS_PER_DAY = Float(86400.0)
DZ_MIN = 2.0
CV_AIR = CP_AIR - RDGAS # Heat capacity of dry air at constant volume
RDG = -RDGAS / GRAV
Expand Down

0 comments on commit 3c1ee68

Please sign in to comment.