[cig-commits] commit 2325 by bangerth to /var/svn/dealii/aspect
dealii.demon at gmail.com
dealii.demon at gmail.com
Thu Feb 27 15:21:31 PST 2014
Revision 2325
Mark a variable as constant.
U trunk/aspect/source/simulator/solver.cc
http://www.dealii.org/websvn/revision.php?repname=Aspect+Repository&path=%2F&rev=2325&peg=2325
Diff:
Modified: trunk/aspect/source/simulator/solver.cc
===================================================================
--- trunk/aspect/source/simulator/solver.cc 2014-02-27 23:19:57 UTC (rev 2324)
+++ trunk/aspect/source/simulator/solver.cc 2014-02-27 23:21:30 UTC (rev 2325)
@@ -332,7 +332,7 @@
// Compute the residual before we solve and return this at the end.
// This is used in the nonlinear solver.
- double initial_residual = system_matrix.block(block_number,block_number).residual
+ const double initial_residual = system_matrix.block(block_number,block_number).residual
(temp,
distributed_solution.block(block_number),
system_rhs.block(block_number));
More information about the CIG-COMMITS
mailing list