[cig-commits] commit 2452 by heister to /var/svn/dealii/aspect

dealii.demon at gmail.com dealii.demon at gmail.com
Wed Apr 9 14:29:49 PDT 2014


Revision 2452

fs: cleanup, timing

U   branches/freesurface/source/simulator/freesurface.cc


http://www.dealii.org/websvn/revision.php?repname=Aspect+Repository&path=%2F&rev=2452&peg=2452

Diff:
Modified: branches/freesurface/source/simulator/freesurface.cc
===================================================================
--- branches/freesurface/source/simulator/freesurface.cc	2014-04-09 21:18:30 UTC (rev 2451)
+++ branches/freesurface/source/simulator/freesurface.cc	2014-04-09 21:29:45 UTC (rev 2452)
@@ -40,6 +40,8 @@
   {
     if (!parameters.free_surface_enabled)
       return;
+    computing_timer.enter_section("FreeSurface");
+
     pcout << "FS: free_surface_execute()" << std::endl;
 
     free_surface_make_constraints();
@@ -51,6 +53,7 @@
     free_surface_displace_mesh();
 
     rebuild_stokes_matrix = rebuild_stokes_preconditioner = true;
+    computing_timer.exit_section("FreeSurface");
   }
 
   template <int dim>
@@ -58,7 +61,6 @@
   {
     if (!parameters.free_surface_enabled)
       return;
-    pcout << "FS: free_surface_make_constraints()" << std::endl;
 
     mesh_constraints.clear();
     mesh_constraints.reinit(mesh_locally_relevant);
@@ -125,10 +127,8 @@
   void Simulator<dim>::free_surface_project_normal_velocity_onto_boundary(LinearAlgebra::Vector &output)
   {
     // TODO: should we use the extrapolated solution?
-    pcout << "FS: free_surface_project_normal_velocity_onto_boundary()" << std::endl;
 
 
-
 //    std::pair<double, Point<dim> > corrections = free_surface_determine_mesh_corrections();
 //     double patch = corrections.first;
 //     Point<dim> centroid = corrections.second;
@@ -326,7 +326,7 @@
     mesh_vertices = distributed_mesh_vertices;
 
 
-    // calculate mesh_velocity from mesh_vertex_velocity:
+    // calculate mesh_velocity from mesh_vertex_velocity
 
     LinearAlgebra::BlockVector distributed_mesh_velocity;
     distributed_mesh_velocity.reinit(introspection.index_sets.system_partitioning, mpi_communicator);
@@ -334,8 +334,6 @@
     const std::vector<Point<dim> > support_points
       = finite_element.base_element(introspection.component_indices.velocities[0]).get_unit_support_points();
 
-    pcout << "support points: " << support_points.size() << std::endl;
-
     Quadrature<dim> quad(support_points);
     UpdateFlags update_flags = UpdateFlags(update_values | update_JxW_values);
     FEValues<dim> fs_fe_values (mapping, free_surface_fe, quad, update_flags);


More information about the CIG-COMMITS mailing list