* clear() member functions of the standard library containers and of
* several other classes within deal.II, which not only reset the values of
* stored elements to zero, but release all memory and return the object
- * into a virginial state. However, since the size of objects of the present
+ * into an empty state. However, since the size of objects of the present
* type is determined by its template parameters, resizing is not an option,
* and indeed the state where all elements have a zero value is the state
* right after construction of such an object.
* clear() member functions of the standard library containers and of
* several other classes within deal.II, which not only reset the values of
* stored elements to zero, but release all memory and return the object
- * into a virginial state. However, since the size of objects of the present
+ * into an empty state. However, since the size of objects of the present
* type is determined by its template parameters, resizing is not an option,
* and indeed the state where all elements have a zero value is the state
* right after construction of such an object.
* clear() member functions of the standard library containers and of
* several other classes within deal.II, which not only reset the values of
* stored elements to zero, but release all memory and return the object
- * into a virginial state. However, since the size of objects of the present
+ * into an empty state. However, since the size of objects of the present
* type is determined by its template parameters, resizing is not an option,
* and indeed the state where all elements have a zero value is the state
* right after construction of such an object.
virtual ~Triangulation() override;
/**
- * Reset this triangulation into a virgin state by deleting all data.
+ * Reset this triangulation into an empty state by deleting all data.
*
* Note that this operation is only allowed if no subscriptions to this
* object exist any more, such as DoFHandler objects using it.
* a triangulation; it only becomes one after @p restore is first called. Note
* also that the @p execute_coarsening_and_refinement stores all necessary
* flags for later reconstruction using the @p restore function.
- * Triangulation::clear() resets the underlying triangulation to a virgin
+ * Triangulation::clear() resets the underlying triangulation to an empty
* state, but does not affect the stored refinement flags needed for later
* reconstruction and does also not touch the coarse grid which is used within
* restore().
virtual ~Triangulation() override;
/**
- * Reset this triangulation into a virgin state by deleting all data.
+ * Reset this triangulation into an empty state by deleting all data.
*
* Note that this operation is only allowed if no subscriptions to this
* object exist any more, such as DoFHandler objects using it.
--gridpoints_y;
}
- // first clear old data and set it
- // to virgin state
+ // first clear old data and re-set the object to a correctly sized state:
patches.clear();
patches.resize((gridpoints_x) * (gridpoints_y));
* Release the pointers to the data vectors and the DoF handler. You have to
* set all data entries again using the add_data_vector() function. The
* pointer to the dof handler is cleared as well, along with all other data.
- * In effect, this function resets everything to a virgin state.
+ * In effect, this function resets everything to an empty state.
*/
virtual void
clear();
Assert(tria == nullptr, ExcGridNotDeleted());
Assert(refine_flags.size() == coarsen_flags.size(), ExcInternalError());
- // create a virgin triangulation and
+ // create an empty triangulation and
// set it to a copy of the coarse grid
tria = new Triangulation<dim>();
tria->copy_triangulation(*coarse_grid);