Skip to content

Commit

Permalink
Merge pull request #90 from FlorianDeconinck/feature/fixed_precision_…
Browse files Browse the repository at this point in the history
…fields

Fixed precision Field descriptors
  • Loading branch information
FlorianDeconinck authored Dec 11, 2024
2 parents cf4c2ce + 28e2375 commit 7c03e92
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ndsl/dsl/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,20 @@ def global_set_floating_point_precision():
Bool = np.bool_

FloatField = Field[gtscript.IJK, Float]
FloatField64 = Field[gtscript.IJK, np.float64]
FloatField32 = Field[gtscript.IJK, np.float32]
FloatFieldI = Field[gtscript.I, Float]
FloatFieldI64 = Field[gtscript.I, np.float64]
FloatFieldI32 = Field[gtscript.I, np.float32]
FloatFieldJ = Field[gtscript.J, Float]
FloatFieldJ64 = Field[gtscript.J, np.float64]
FloatFieldJ32 = Field[gtscript.J, np.float32]
FloatFieldIJ = Field[gtscript.IJ, Float]
FloatFieldIJ64 = Field[gtscript.IJ, np.float64]
FloatFieldIJ32 = Field[gtscript.IJ, np.float32]
FloatFieldK = Field[gtscript.K, Float]
FloatFieldK64 = Field[gtscript.K, np.float64]
FloatFieldK32 = Field[gtscript.K, np.float32]
IntField = Field[gtscript.IJK, Int]
IntFieldIJ = Field[gtscript.IJ, Int]
IntFieldK = Field[gtscript.K, Int]
Expand Down

0 comments on commit 7c03e92

Please sign in to comment.