Commit 94fa017d authored by incardon's avatar incardon
Browse files

Fixed the build script

parent c9fb5d55
#! /bin/bash
# Make a directory in /tmp/OpenFPM_data
mkdir /tmp/openfpm_data
mv * .[^.]* /tmp/openfpm_data
mv /tmp/openfpm_data OpenFPM_data
git clone git@ppmcore.mpi-cbg.de:incardon/openfpm_devices.git OpenFPM_devices
cd $"OpenFPM_data"
sh ./autogen.sh
sh ./configure
make
......@@ -27,7 +27,7 @@
#include "Vector/map_vector.hpp"
// Stub implementation
template<unsigned int dim, typename T, unsigned int impl=FAST, typename base=openfpm::vector<T>>
template<unsigned int dim, typename T, unsigned int impl=FAST, typename base=openfpm::vector<size_t>>
class CellList
{
};
......
......@@ -25,6 +25,8 @@ template<unsigned int dim ,typename T> class Point
{
public:
typedef T coord_type;
//! boost fusion that store the point
typedef boost::fusion::vector<T[dim]> type;
//! layout that interleave the properties
......
......@@ -89,6 +89,17 @@ public:
base.resize(base.size() + 1);
}
/*! \brief Erase the elements from start to end
*
* \param start element
* \param end element
*
*/
void erase(typename std::vector<T>::iterator start, typename std::vector<T>::iterator end)
{
base.erase(start,end);
}
/*! \brief Remove one entry from the vector
*
* \param keys element to remove
......@@ -99,6 +110,26 @@ public:
base.erase(base.begin() + key);
}
/*! \brief Return an std compatible iterator to the first element
*
* \return an iterator to the first element
*
*/
inline auto begin() -> decltype(base.begin())
{
return base.begin();
}
/*! \brief Return an std compatible iterator to the last element
*
* \return an iterator to the last element
*
*/
inline auto end() -> decltype(base.begin())
{
return base.end();
}
/*! \brief Get the last element
*
* \return the last element
......@@ -248,6 +279,16 @@ public:
{
return 1;
}
/*! \brief Return the pointer to the chunk of memory
*
* \return the pointer to the chunk of memory
*
*/
void * getPointer()
{
return &base[0];
}
};
......
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