Skip to content

Commit

Permalink
Update tools/make_unstruct_grid/MakeUnstructGrid.py
Browse files Browse the repository at this point in the history
Co-authored-by: Gregory Lemieux <[email protected]>
  • Loading branch information
rgknox and glemieux authored May 10, 2024
1 parent 07dc8c1 commit 6b4f3f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/make_unstruct_grid/MakeUnstructGrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ def TransferData(da_key,ds_base,ds_unst,minis,minjs,dset_type):
dtype_out = np.float64
elif(ds_base[da_key].dtype == 'int32'):
dtype_out = np.int32
elif(ds_base[da_key].dtype == 'float32'):
dtype_out = np.float32
else:
print('unknown data type: {}.\n Exiting'.format(ds_base[da_key].dtype))
exit(2)
Expand Down

0 comments on commit 6b4f3f9

Please sign in to comment.