[cig-commits] r1309 - trunk/aspect/source/simulator
bangerth at dealii.org
bangerth at dealii.org
Mon Oct 22 06:31:43 PDT 2012
Author: bangerth
Date: 2012-10-22 07:31:43 -0600 (Mon, 22 Oct 2012)
New Revision: 1309
Modified:
trunk/aspect/source/simulator/core.cc
Log:
Only report on the composition DoFs if we actually do have compositional fields.
Modified: trunk/aspect/source/simulator/core.cc
===================================================================
--- trunk/aspect/source/simulator/core.cc 2012-10-22 00:33:46 UTC (rev 1308)
+++ trunk/aspect/source/simulator/core.cc 2012-10-22 13:31:43 UTC (rev 1309)
@@ -418,8 +418,9 @@
system_dofs_per_block[0]+system_dofs_per_block[1]);
statistics.add_value("Number of temperature degrees of freedom",
system_dofs_per_block[2]);
- statistics.add_value("Number of composition degrees of freedom",
- (parameters.n_compositional_fields>0)?system_dofs_per_block[3]:0);
+ if (parameters.n_compositional_fields > 0)
+ statistics.add_value("Number of composition degrees of freedom",
+ system_dofs_per_block[3]);
// then interpolate the current boundary velocities. this adds to
More information about the CIG-COMMITS
mailing list