[cig-commits] commit 2020 by bangerth to /var/svn/dealii/aspect

dealii.demon at gmail.com dealii.demon at gmail.com
Wed Nov 20 07:42:28 PST 2013


Revision 2020

Copy a whole array in bulk, rather than element by element.

U   trunk/aspect/source/simulator/assembly.cc


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

Diff:
Modified: trunk/aspect/source/simulator/assembly.cc
===================================================================
--- trunk/aspect/source/simulator/assembly.cc	2013-11-19 21:31:42 UTC (rev 2019)
+++ trunk/aspect/source/simulator/assembly.cc	2013-11-20 15:42:00 UTC (rev 2020)
@@ -862,9 +862,9 @@
                                        typename MaterialModel::Interface<dim>::MaterialModelInputs &material_model_inputs) const
   {
     const unsigned int n_q_points = material_model_inputs.temperature.size();
-    for (unsigned int q=0; q<n_q_points; ++q)
-      material_model_inputs.position[q] = input_finite_element_values.quadrature_point(q);
 
+    material_model_inputs.position = input_finite_element_values.get_quadrature_points();
+
     input_finite_element_values[introspection.extractors.temperature].get_function_values (input_solution,
         material_model_inputs.temperature);
     input_finite_element_values[introspection.extractors.pressure].get_function_values(input_solution,


More information about the CIG-COMMITS mailing list