[cig-commits] r1275 - trunk/aspect/source/velocity_boundary_conditions

bangerth at dealii.org bangerth at dealii.org
Sat Oct 13 12:31:25 PDT 2012


Author: bangerth
Date: 2012-10-13 13:31:25 -0600 (Sat, 13 Oct 2012)
New Revision: 1275

Modified:
   trunk/aspect/source/velocity_boundary_conditions/gplates.cc
Log:
Avoid a warning.

Modified: trunk/aspect/source/velocity_boundary_conditions/gplates.cc
===================================================================
--- trunk/aspect/source/velocity_boundary_conditions/gplates.cc	2012-10-13 19:29:35 UTC (rev 1274)
+++ trunk/aspect/source/velocity_boundary_conditions/gplates.cc	2012-10-13 19:31:25 UTC (rev 1275)
@@ -99,7 +99,7 @@
 
 
             const int n_points = pt.get_child("gpml:FeatureCollection.gml:featureMember.gpml:VelocityField.gml:domainSet.gml:MultiPoint").size();
-            const int n_phi = std::sqrt(2*n_points);
+            const int n_phi = static_cast<int>(std::sqrt(2.*n_points));
             const int n_theta = n_phi /2;
 
             if ((delta_theta != 0.0) || (delta_phi != 0.0))



More information about the CIG-COMMITS mailing list