*/
MGLevelObject<Object> &operator = (const double d);
+ /**
+ * Call @p clear on all objects stored by this object. This function
+ * is only implemented for some @p Object classes, e.g., matrix
+ * types or the PreconditionBlockSOR and similar classes. Using this
+ * function will fail with a compiler error if the @p Object
+ * template type to this class does not provide a
+ * <code>clear()</code> member function.
+ *
+ * @deprecated Use clear_elements () instead
+ */
+ void clear() DEAL_II_DEPRECATED;
+
/**
* Call @p clear on all objects stored by this object. This function
* is only implemented for some @p Object classes, e.g., matrix
* template type to this class does not provide a
* <code>clear()</code> member function.
*/
- void clear();
+ void clear_elements();
/**
* The coarsest level for which this class stores a level object.
template<class Object>
void
-MGLevelObject<Object>::clear ()
+MGLevelObject<Object>::clear () // DEPRECATED
+{
+ // Avoid code duplication in deprecated call by calling replacing function
+ clear_elements();
+}
+
+
+template<class Object>
+void
+MGLevelObject<Object>::clear_elements ()
{
typename std::vector<std_cxx11::shared_ptr<Object> >::iterator v;
for (v = objects.begin(); v != objects.end(); ++v)