remove deprecated function call in mg_block_smoother.h
git-svn-id: https://svn.dealii.org/trunk@29589
0785d39b-7218-0410-832d-
ea1e28bc413d
{
deallog.push("Smooth");
- unsigned int maxlevel = matrices.get_maxlevel();
+ unsigned int maxlevel = matrices.max_level();
unsigned int steps2 = steps;
if (variable)
set_component_to_block_map (const std::vector<unsigned int> &map);
/**
- * Finite element does not
- * provide prolongation matrices.
+ * Finite element does not provide prolongation matrices.
*/
DeclException0(ExcNoProlongation);
/**
- * Call @p build_matrices
- * function first.
+ * You have to call build_matrices() before using this object.
*/
DeclException0(ExcMatricesNotBuilt);
* Memory used by this object.
*/
std::size_t memory_consumption () const;
-
+
+ /**
+ * Print all the matrices for debugging purposes.
+ */
+ void print_matrices(std::ostream& os) const;
private:
}
+template <class VECTOR>
+void
+MGTransferPrebuilt<VECTOR>::print_matrices (std::ostream& os) const
+{
+ for (unsigned int level = 0;level<prolongation_matrices.size();++level)
+ {
+ os << "Level " << level << std::endl;
+ prolongation_matrices[level]->print(os);
+ os << std::endl;
+ }
+}
// explicit instantiation
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams