Skip to content
Snippets Groups Projects
Commit f9f7c745 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

sacrifice a few ASSERTs

parent 352f8979
No related branches found
No related tags found
1 merge request!886Powerfield now inherits from IField; new c'tors
...@@ -396,7 +396,6 @@ typename Powerfield<T>::const_iterator Powerfield<T>::begin() const ...@@ -396,7 +396,6 @@ typename Powerfield<T>::const_iterator Powerfield<T>::begin() const
template <class T> template <class T>
std::vector<int> Powerfield<T>::getAxesBinIndices(size_t global_index) const std::vector<int> Powerfield<T>::getAxesBinIndices(size_t global_index) const
{ {
ASSERT(m_ll_data);
size_t remainder = global_index; size_t remainder = global_index;
std::vector<int> result; std::vector<int> result;
result.resize(rank()); result.resize(rank());
...@@ -411,7 +410,6 @@ std::vector<int> Powerfield<T>::getAxesBinIndices(size_t global_index) const ...@@ -411,7 +410,6 @@ std::vector<int> Powerfield<T>::getAxesBinIndices(size_t global_index) const
template <class T> template <class T>
size_t Powerfield<T>::getAxisBinIndex(size_t global_index, size_t i_selected_axis) const size_t Powerfield<T>::getAxisBinIndex(size_t global_index, size_t i_selected_axis) const
{ {
ASSERT(m_ll_data);
size_t remainder(global_index); size_t remainder(global_index);
for (size_t i = 0; i < rank(); ++i) { for (size_t i = 0; i < rank(); ++i) {
size_t i_axis = rank() - 1 - i; size_t i_axis = rank() - 1 - i;
...@@ -426,7 +424,6 @@ size_t Powerfield<T>::getAxisBinIndex(size_t global_index, size_t i_selected_axi ...@@ -426,7 +424,6 @@ size_t Powerfield<T>::getAxisBinIndex(size_t global_index, size_t i_selected_axi
template <class T> template <class T>
size_t Powerfield<T>::toGlobalIndex(const std::vector<unsigned>& axes_indices) const size_t Powerfield<T>::toGlobalIndex(const std::vector<unsigned>& axes_indices) const
{ {
ASSERT(m_ll_data);
ASSERT(axes_indices.size() == rank()); ASSERT(axes_indices.size() == rank());
size_t result = 0; size_t result = 0;
size_t step_size = 1; size_t step_size = 1;
...@@ -441,7 +438,6 @@ size_t Powerfield<T>::toGlobalIndex(const std::vector<unsigned>& axes_indices) c ...@@ -441,7 +438,6 @@ size_t Powerfield<T>::toGlobalIndex(const std::vector<unsigned>& axes_indices) c
template <class T> template <class T>
size_t Powerfield<T>::findGlobalIndex(const std::vector<double>& coordinates) const size_t Powerfield<T>::findGlobalIndex(const std::vector<double>& coordinates) const
{ {
ASSERT(m_ll_data);
ASSERT(coordinates.size() == rank()); ASSERT(coordinates.size() == rank());
std::vector<unsigned> axes_indexes; std::vector<unsigned> axes_indexes;
axes_indexes.resize(rank()); axes_indexes.resize(rank());
......
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