template <typename VectorType>
template <typename ForwardIterator, typename OutputIterator>
inline
-void BlockVectorBase<VectorType>::extract_subvector_to (ForwardIterator indices_begin,
- const ForwardIterator indices_end,
- OutputIterator values_begin) const
+void BlockVectorBase<VectorType>::extract_subvector_to (ForwardIterator indices_begin,
+ const ForwardIterator indices_end,
+ OutputIterator values_begin) const
{
- while (indices_begin != indices_end)
- {
- *values_begin = operator()(*indices_begin);
- indices_begin++; values_begin++;
- }
+ while (indices_begin != indices_end)
+ {
+ *values_begin = operator()(*indices_begin);
+ indices_begin++;
+ values_begin++;
+ }
}
#endif // DOXYGEN
std::fabs(local_matrix(local_row,local_row)) : average_diagonal);
global_matrix.add(global_row, global_row, new_diagonal);
- // if the use_inhomogeneities_for_rhs flag is
- // set to true, the inhomogeneities are used
- // to create the global vector. instead of
- // fill in a zero in the ith components with an
- // inhomogeneity, we set those to:
- // inhomogeneity(i)*global_matrix (i,i).
+ // if the use_inhomogeneities_for_rhs flag is set to true, the
+ // inhomogeneities are used to create the global vector. instead
+ // of fill in a zero in the ith components with an inhomogeneity,
+ // we set those to: inhomogeneity(i)*global_matrix (i,i).
if (use_inhomogeneities_for_rhs == true)
- global_vector(global_row) += constraints.get_inhomogeneity(global_row) * new_diagonal;
+ {
+ /* @whattodo */
+ /* global_vector(global_row) += constraints.get_inhomogeneity(global_row) * new_diagonal; */
+ Assert ((false), ExcMessage ("This function is corrupt: @whattodo"));
+ }
}
}
}
n_actual_col_dofs,
local_matrix, col_ptr, val_ptr);
const size_type n_values = col_ptr - &cols[0];
- Assert (n_values == (size_type)(val_ptr - &vals[0]),
- ExcInternalError());
if (n_values > 0)
- global_matrix.add(row, n_values, &cols[0], &vals[0], false, true);
+ {
+ /* @whattodo Note, this is a tricky one! */
+ /* global_matrix.add(row, n_values, &cols[0], &vals[0], false, true); */
+ Assert ((false), ExcMessage ("This function is corrupt: @whattodo"));
+ }
}
}
-/*
- * Some tests (notably base/thread*, base/task*) create output that
- * comes out in random order. To make the output of these tests comparable,
- * we need to sort them.
- *
- * This function does just that with the file given. All streams writing
- * to this should be closed when calling this function.
- */
-void sort_file_contents (const std::string &filename)
-{
- int error = std::system ((std::string ("LC_ALL=C sort ") + filename + " -o " + filename).c_str());
- Assert (error == 0,
- ExcInternalError());
-}
+ /*
+ * Replace all occurences of ' &' by '& ' from the given file to hopefully be
+ * more compiler independent with respect to __PRETTY_FUNCTION__
+ *
+ * Also, while GCC prepends the name by "virtual " if the function is virtual,
+ * Intel's ICC does not do that, so filter that out as well.
+ */
+ void unify_pretty_function (const std::string &filename)
+ {
+
+ int error = std::system ((std::string ("sed -i -e 's/ \\&/ \\& /g' -e 's/ & ,/\\&,/g' -e 's/ \\& )/\\&)/g' -e 's/ \\& /\\& /g' -e 's/^DEAL::virtual /DEAL::/g' ") + filename).c_str());
+
+ Assert (error == 0,
+ ExcInternalError());
+
+ }
-
-
-
-
#ifndef DEAL_II_STACKTRACE_SWITCH
#define DEAL_II_STACKTRACE_SWITCH