- Timestamp:
- 10/05/18 01:10:39 (6 years ago)
- Location:
- codes/icosagcm/devel/Python/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/devel/Python/src/functions.h
r689 r746 1 1 /* KERNELS */ 2 2 3 # undef PREC_DOUBLE4 5 # ifdef PREC_DOUBLE3 #ifdef CPP_MIXED_PREC 4 typedef float number; 5 #else 6 6 typedef double number; 7 #else8 typedef float number;9 7 #endif 10 8 -
codes/icosagcm/devel/Python/src/unstructured.pyx
r700 r746 12 12 #-------------- choose precision of kernel computations ------------# 13 13 14 DEF prec_double=False 15 16 IF prec_double: 14 # the compile-time constant CPP_MIXED_PREC is set by setup.py 15 # based on the value of mixed_prec defined in module data_unstructured 16 17 IF CPP_MIXED_PREC: 18 c_num=c_float 19 ctypedef float num 20 np_num=np.float32 21 ELSE: 17 22 c_num=c_double 18 23 ctypedef double num 19 24 np_num=np.float64 20 ELSE:21 c_num=c_float22 ctypedef float num23 np_num=np.float3224 25 25 26 ctypedef num *num_ptr
Note: See TracChangeset
for help on using the changeset viewer.