From 68128abe0b0d9c25d52398b8ee47d68c47d03ae9 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 26 Jun 2001 14:15:56 +0000 Subject: [PATCH] Fix gcc3 issues. git-svn-id: https://svn.dealii.org/trunk@4762 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/deal.II/wave-test-3.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/deal.II/wave-test-3.cc b/tests/deal.II/wave-test-3.cc index b6c8f737a1..2d5d2b7526 100644 --- a/tests/deal.II/wave-test-3.cc +++ b/tests/deal.II/wave-test-3.cc @@ -1875,7 +1875,7 @@ void EndEnergy::compute_vectors (const PartOfDomain pod, Vector &final_u_bar, Vector &final_v_bar) const { const double y_offset = 300000000; - const double n_q_points = quadrature->n_quadrature_points; + const unsigned int n_q_points = quadrature->n_quadrature_points; const unsigned int dofs_per_cell = fe->dofs_per_cell; final_u_bar.reinit (dof->n_dofs()); @@ -3547,7 +3547,7 @@ class Distorted : public Function { const double pi = 3.1415926539; return (1+0.5*((sin(3*pi*x)>0 ? 1 : 0)+ - (sin(3*pi*(2*x+y)/sqrt(3)))>0 ? 1 : 0)); + (sin(3*pi*(2*x+y)/sqrt(3.0)))>0 ? 1 : 0)); }; virtual void value_list (const std::vector > &points, @@ -4237,14 +4237,14 @@ case square: { const double radius = 1.; const double a = radius/2; - const Point<2> vertices[8] = { Point<2>(-1,-1)*(radius/sqrt(2)), - Point<2>(+1,-1)*(radius/sqrt(2)), - Point<2>(-1,-1)*(radius/sqrt(2)*a), - Point<2>(+1,-1)*(radius/sqrt(2)*a), - Point<2>(-1,+1)*(radius/sqrt(2)*a), - Point<2>(+1,+1)*(radius/sqrt(2)*a), - Point<2>(-1,+1)*(radius/sqrt(2)), - Point<2>(+1,+1)*(radius/sqrt(2)) }; + const Point<2> vertices[8] = { Point<2>(-1,-1)*(radius/sqrt(2.0)), + Point<2>(+1,-1)*(radius/sqrt(2.0)), + Point<2>(-1,-1)*(radius/sqrt(2.0)*a), + Point<2>(+1,-1)*(radius/sqrt(2.0)*a), + Point<2>(-1,+1)*(radius/sqrt(2.0)*a), + Point<2>(+1,+1)*(radius/sqrt(2.0)*a), + Point<2>(-1,+1)*(radius/sqrt(2.0)), + Point<2>(+1,+1)*(radius/sqrt(2.0)) }; const int cell_vertices[4][4] = {{0, 1, 3, 2}, {0, 2, 4, 6}, -- 2.39.5