Skip to content
Snippets Groups Projects
Commit 54639409 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing compilation in sbalzarini-mac-15

parent dd71684e
No related branches found
No related tags found
No related merge requests found
LINKLIBS = $(OPENMP_LDFLAGS) $(LIBHILBERT_LIB) $(PETSC_LIB) $(METIS_LIB) $(PARMETIS_LIB) $(PTHREAD_LIBS) $(OPT_LIBS) $(BOOST_LDFLAGS) $(BOOST_IOSTREAMS_LIB) $(CUDA_LIBS) LINKLIBS = $(HDF5_LDFLAGS) $(HDF5_LIBS) $(OPENMP_LDFLAGS) $(LIBHILBERT_LIB) $(PETSC_LIB) $(METIS_LIB) $(PARMETIS_LIB) $(PTHREAD_LIBS) $(OPT_LIBS) $(BOOST_LDFLAGS) $(BOOST_IOSTREAMS_LIB) $(CUDA_LIBS)
noinst_PROGRAMS = cart_dec metis_dec dom_box vector_dist noinst_PROGRAMS = cart_dec metis_dec dom_box vector_dist
cart_dec_SOURCES = CartDecomposition_gen_vtk.cpp ../src/lib/pdata.cpp ../openfpm_devices/src/memory/HeapMemory.cpp ../openfpm_devices/src/memory/PtrMemory.cpp ../openfpm_vcluster/src/VCluster/VCluster.cpp ../openfpm_devices/src/Memleak_check.cpp cart_dec_SOURCES = CartDecomposition_gen_vtk.cpp ../src/lib/pdata.cpp ../openfpm_devices/src/memory/HeapMemory.cpp ../openfpm_devices/src/memory/PtrMemory.cpp ../openfpm_vcluster/src/VCluster/VCluster.cpp ../openfpm_devices/src/Memleak_check.cpp
......
...@@ -1155,9 +1155,12 @@ public: ...@@ -1155,9 +1155,12 @@ public:
* \return the selected element * \return the selected element
* *
*/ */
template <unsigned int p>inline auto getProp(const grid_dist_key_dx<dim> & v1) const -> decltype(this->template get<p>(v1)) template <unsigned int p>inline auto get(const grid_dist_key_dx<dim> & v1) const -> typename std::add_lvalue_reference<decltype(loc_grid.get(v1.getSub()).template get<p>(v1.getKey()))>::type
{ {
return this->template get<p>(v1); #ifdef SE_CLASS2
check_valid(this,8);
#endif
return loc_grid.get(v1.getSub()).template get<p>(v1.getKey());
} }
/*! \brief Get the reference of the selected element /*! \brief Get the reference of the selected element
...@@ -1168,12 +1171,14 @@ public: ...@@ -1168,12 +1171,14 @@ public:
* \return the selected element * \return the selected element
* *
*/ */
template <unsigned int p>inline auto getProp(const grid_dist_key_dx<dim> & v1) -> decltype(this->template get<p>(v1)) template <unsigned int p>inline auto get(const grid_dist_key_dx<dim> & v1) -> typename std::add_lvalue_reference<decltype(loc_grid.get(v1.getSub()).template get<p>(v1.getKey()))>::type
{ {
return this->template get<p>(v1); #ifdef SE_CLASS2
check_valid(this,8);
#endif
return loc_grid.get(v1.getSub()).template get<p>(v1.getKey());
} }
/*! \brief Get the reference of the selected element /*! \brief Get the reference of the selected element
* *
* \tparam p property to get (is an integer) * \tparam p property to get (is an integer)
...@@ -1182,12 +1187,9 @@ public: ...@@ -1182,12 +1187,9 @@ public:
* \return the selected element * \return the selected element
* *
*/ */
template <unsigned int p>inline auto get(const grid_dist_key_dx<dim> & v1) const -> typename std::add_lvalue_reference<decltype(loc_grid.get(v1.getSub()).template get<p>(v1.getKey()))>::type template <unsigned int p>inline auto getProp(const grid_dist_key_dx<dim> & v1) const -> decltype(this->template get<p>(v1))
{ {
#ifdef SE_CLASS2 return this->template get<p>(v1);
check_valid(this,8);
#endif
return loc_grid.get(v1.getSub()).template get<p>(v1.getKey());
} }
/*! \brief Get the reference of the selected element /*! \brief Get the reference of the selected element
...@@ -1198,14 +1200,12 @@ public: ...@@ -1198,14 +1200,12 @@ public:
* \return the selected element * \return the selected element
* *
*/ */
template <unsigned int p>inline auto get(const grid_dist_key_dx<dim> & v1) -> typename std::add_lvalue_reference<decltype(loc_grid.get(v1.getSub()).template get<p>(v1.getKey()))>::type template <unsigned int p>inline auto getProp(const grid_dist_key_dx<dim> & v1) -> decltype(this->template get<p>(v1))
{ {
#ifdef SE_CLASS2 return this->template get<p>(v1);
check_valid(this,8);
#endif
return loc_grid.get(v1.getSub()).template get<p>(v1.getKey());
} }
//! Flag that indicate if the external ghost box has been initialized //! Flag that indicate if the external ghost box has been initialized
bool init_e_g_box = false; bool init_e_g_box = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment