Skip to content

Commit

Permalink
image_samplers, geometry: C++14 flags
Browse files Browse the repository at this point in the history
These files includes C++11 features and GCC<6 does still
default to C++98/03.
  • Loading branch information
ax3l committed Oct 9, 2020
1 parent 077573e commit 3347196
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 19 deletions.
1 change: 1 addition & 0 deletions yt/geometry/particle_oct_container.pyx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# distutils: include_dirs = LIB_DIR_EWAH
# distutils: language = c++
# distutils: extra_compile_args = CPP14_FLAG
# distutils: libraries = STD_LIBS
"""
Oct container tuned for Particles
Expand Down
4 changes: 2 additions & 2 deletions yt/utilities/lib/bounding_volume_hierarchy.pyx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# distutils: libraries = STD_LIBS
# distutils: include_dirs = LIB_DIR
# distutils: extra_compile_args = OMP_ARGS
# distutils: extra_link_args = OMP_ARGS
# distutils: extra_compile_args = CPP14_FLAG OMP_ARGS
# distutils: extra_link_args = CPP14_FLAG OMP_ARGS
cimport cython

import numpy as np
Expand Down
4 changes: 2 additions & 2 deletions yt/utilities/lib/cyoctree.pyx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# distutils: libraries = STD_LIBS
# distutils: extra_link_args = OMP_ARGS
# distutils: extra_compile_args = OMP_ARGS
# distutils: extra_link_args = CPP14_FLAG OMP_ARGS
# distutils: extra_compile_args = CPP14_FLAG OMP_ARGS
# distutils: include_dirs = LIB_DIR
# distutils: language = c++
"""
Expand Down
6 changes: 5 additions & 1 deletion yt/utilities/lib/field_interpolation_tables.pxd
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# distutils: language = c++
# distutils: extra_compile_args = CPP14_FLAG
# distutils: extra_link_args = CPP14_FLAG
"""
Field Interpolation Tables
Expand All @@ -10,7 +13,8 @@ cimport cython
cimport numpy as np
from yt.utilities.lib.fp_utils cimport imax, fmax, imin, fmin, iclip, fclip, fabs
from libc.stdlib cimport malloc
from libc.math cimport isnormal
cdef extern from "<cmath>" namespace "std":
bint isnormal(double x) nogil

cdef struct FieldInterpolationTable:
# Note that we make an assumption about retaining a reference to values
Expand Down
4 changes: 2 additions & 2 deletions yt/utilities/lib/geometry_utils.pyx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# distutils: libraries = STD_LIBS
# distutils: extra_compile_args = OMP_ARGS
# distutils: extra_link_args = OMP_ARGS
# distutils: extra_compile_args = CPP14_FLAG OMP_ARGS
# distutils: extra_link_args = CPP14_FLAG OMP_ARGS
"""
Simple integrators for the radiative transfer equation
Expand Down
9 changes: 3 additions & 6 deletions yt/utilities/lib/grid_traversal.pyx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# distutils: include_dirs = LIB_DIR
# distutils: libraries = STD_LIBS
# distutils: sources = FIXED_INTERP
# distutils: language = c++
# distutils: extra_compile_args = CPP14_FLAG
# distutils: extra_link_args = CPP14_FLAG
"""
Simple integrators for the radiative transfer equation
Expand All @@ -13,12 +16,6 @@ import numpy as np

cimport cython
cimport numpy as np
from field_interpolation_tables cimport (
FieldInterpolationTable,
FIT_eval_transfer,
FIT_eval_transfer_with_light,
FIT_initialize_table,
)
from fixed_interpolator cimport *
from libc.math cimport (
M_PI,
Expand Down
4 changes: 2 additions & 2 deletions yt/utilities/lib/image_samplers.pyx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# distutils: include_dirs = LIB_DIR
# distutils: extra_compile_args = OMP_ARGS
# distutils: extra_link_args = OMP_ARGS
# distutils: extra_compile_args = CPP14_FLAG OMP_ARGS
# distutils: extra_link_args = CPP14_FLAG OMP_ARGS
# distutils: libraries = STD_LIBS
# distutils: sources = FIXED_INTERP
# distutils: language = c++
Expand Down
5 changes: 3 additions & 2 deletions yt/utilities/lib/misc_utilities.pyx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# distutils: libraries = STD_LIBS
# distutils: extra_compile_args = OMP_ARGS
# distutils: extra_link_args = OMP_ARGS
# distutils: language = c++
# distutils: extra_compile_args = CPP14_FLAG OMP_ARGS
# distutils: extra_link_args = CPP14_FLAG OMP_ARGS
"""
Simple utilities that don't fit anywhere else
Expand Down
2 changes: 2 additions & 0 deletions yt/utilities/lib/partitioned_grid.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# distutils: include_dirs = LIB_DIR
# distutils: libraries = STD_LIBS
# distutils: language = c++
# distutils: extra_compile_args = CPP14_FLAG
# distutils: extra_link_args = CPP14_FLAG
"""
Image sampler definitions
Expand Down
4 changes: 2 additions & 2 deletions yt/utilities/lib/pixelization_routines.pyx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# distutils: include_dirs = LIB_DIR
# distutils: extra_compile_args = OMP_ARGS
# distutils: extra_link_args = OMP_ARGS
# distutils: extra_compile_args = CPP14_FLAG OMP_ARGS
# distutils: extra_link_args = CPP14_FLAG OMP_ARGS
# distutils: language = c++
# distutils: libraries = STD_LIBS
# distutils: sources = yt/utilities/lib/pixelization_constants.c
Expand Down

0 comments on commit 3347196

Please sign in to comment.