Commit a9a2348f authored by incardon's avatar incardon
Browse files

Adding missing installation files

parent 9498e79d
......@@ -24,7 +24,7 @@ NN/CellList/MemBalanced.hpp NN/CellList/MemFast.hpp NN/CellList/MemMemoryWise.hp
Space/Ghost.hpp Space/Matrix.hpp Space/SpaceBox.hpp Space/SpaceBox_unit_tests.hpp \
Space/Shape/AdaptiveCylinderCone.hpp Space/Shape/Box.hpp Space/Shape/Box_unit_tests.hpp Space/Shape/HyperCube.hpp Space/Shape/HyperCube_unit_test.hpp Space/Shape/Point.hpp Space/Shape/Point_unit_test.hpp Space/Shape/Point_operators_functions.hpp Space/Shape/Point_operators.hpp Space/Shape/Sphere.hpp \
util/check_no_pointers.hpp util/common.hpp util/convert.hpp util/create_vmpl_sequence.hpp util/ct_array.hpp util/for_each_ref.hpp util/mathutil.hpp util/object_creator.hpp util/object_s_di.hpp util/object_si_d.hpp util/object_util.hpp util/util_debug.hpp util/util_test.hpp util/variadic_to_vmpl.hpp util/variadic_to_vmpl_unit_test.hpp util/Pack_stat.hpp \
NN/CellList/CellList_util.hpp NN/CellList/CellNNIteratorRuntimeM.hpp NN/VerletList/VerletListM.hpp NN/VerletList/VerletNNIteratorM.hpp Vector/map_vector.hpp Vector/map_vector_std_util.hpp Vector/map_vector_std_ptr.hpp Vector/map_vector_std.hpp Vector/util.hpp Vector/vect_isel.hpp Vector/vector_test_util.hpp Vector/vector_unit_tests.hpp Vector/se_vector.hpp Vector/map_vector_grow_p.hpp Vector/vector_std_pack_unpack.ipp Vector/vector_pack_unpack.ipp Vector/vector_map_iterator.hpp \
NN/CellList/CellList_util.hpp NN/CellList/CellNNIteratorRuntimeM.hpp NN/VerletList/VerletListM.hpp NN/VerletList/VerletNNIteratorM.hpp Vector/map_vector.hpp Vector/vector_def.hpp Vector/map_vector_std_util.hpp Vector/map_vector_std_ptr.hpp Vector/map_vector_std.hpp Vector/util.hpp Vector/vect_isel.hpp Vector/vector_test_util.hpp Vector/vector_unit_tests.hpp Vector/se_vector.hpp Vector/map_vector_grow_p.hpp Vector/vector_std_pack_unpack.ipp Vector/vector_pack_unpack.ipp Vector/vector_map_iterator.hpp \
timer.hpp \
util/copy_compare/compare_fusion_vector.hpp util/SimpleRNG.hpp util/copy_compare/compare_general.hpp util/copy_compare/copy_compare_aggregates.hpp util/copy_compare/copy_fusion_vector.hpp util/copy_compare/copy_general.hpp util/copy_compare/meta_compare.hpp util/copy_compare/meta_copy.hpp util/mul_array_extents.hpp \
Packer_Unpacker/Pack_selector.hpp Packer_Unpacker/Packer_nested_tests.hpp Packer_Unpacker/Packer_unit_tests.hpp Packer_Unpacker/Packer.hpp Packer_Unpacker/Unpacker.hpp Packer_Unpacker/Packer_util.hpp Packer_Unpacker/prp_all_zero.hpp Packer_Unpacker/has_pack_encap.hpp Packer_Unpacker/has_pack_agg.hpp Packer_Unpacker/has_max_prop.hpp
......
......@@ -379,7 +379,12 @@ private:
}
}
//! Initialize the structures of the data structure
/*! Initialize the structures of the Cell-list
*
* \param div number of cells on each direction
* \param tot_n_cell total number of cells
*
*/
void InitializeStructures(const size_t (& div)[dim], size_t tot_n_cell)
{
cl_n.resize(tot_n_cell);
......@@ -440,6 +445,7 @@ private:
public:
//! Type of symmetric iterator
typedef CellNNIteratorSym<dim,CellList<dim,T,FAST,transform,base>,RUNTIME,NO_CHECK> SymNNIterator;
//! Object type that the structure store
......@@ -458,6 +464,17 @@ public:
return CellDecomposer_sm<dim,T,transform>::getGrid();
}
/*! \brief Set the cell decomposer for the Cell-list
*
* The first cell decomposer is the decomposition of the
* full-domain in cells the second cell-decomposer is the
* cell-decomposition of only the processor space domain
*
* \param cd First cell-decomposer
* \param cd_sm Second cell-decomposer
* \param pad padding of the second Cell-decomposer
*
*/
void setCellDecomposer(CellDecomposer_sm<dim,T,transform> & cd, const CellDecomposer_sm<dim,T,transform> & cd_sm, const Box<dim,T> & dom_box, size_t pad) const
{
Box<dim,long int> bx = cd_sm.convertDomainSpaceIntoCellUnitsNear(dom_box);
......@@ -555,14 +572,22 @@ public:
:slot(STARTING_NSLOT)
{};
//! Copy constructor
/*! \brief Copy constructor
*
* \param cell Cell-list to copy
*
*/
CellList(const CellList<dim,T,FAST,transform,base> & cell)
:slot(STARTING_NSLOT)
{
this->operator=(cell);
}
//! Copy constructor
/*! Copy constructor
*
* \param cell Cell-list to copy
*
*/
CellList(CellList<dim,T,FAST,transform,base> && cell)
:slot(STARTING_NSLOT)
{
......@@ -689,7 +714,7 @@ public:
/*! \brief Get an iterator over particles following the cell structure
*
* \param vector containing the id of the domain cells
* \param dom_cells vector containing the id of the domain cells
*
* \return a particle iterator
*
......
#ifndef BASE_TYPE_HPP
#define BASE_TYPE_HPP
#include <boost/multi_array.hpp>
template<class T>
struct base_type
{
typedef T type;
};
template<class T>
struct base_type<boost::multi_array_ref<T,1>>
{
typedef T type;
};
template<class T>
struct base_type<boost::multi_array_ref<T,2>>
{
typedef T type;
};
template<class T>
struct base_type<boost::multi_array_ref<T,3>>
{
typedef T type;
};
template<class T>
struct base_type<boost::multi_array_ref<T,4>>
{
typedef T type;
};
template<class T>
struct base_type<boost::multi_array_ref<T,5>>
{
typedef T type;
};
#endif
......@@ -87,7 +87,7 @@ namespace openfpm
*/
template<class T>
inline constexpr T pow(const T base, unsigned const exponent)
inline constexpr size_t pow(const T base, unsigned const exponent)
{
// (parentheses not required in next line)
return (exponent == 0) ? 1 : (base * pow(base, exponent-1));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment