Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixes for --enable-singleprecision
  • Loading branch information
Roy H. Stogner committed Nov 12, 2012
1 parent d80c905 commit ed4798d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -45,15 +45,15 @@ class CurlCurlExactSolution
const Real duy_dx = -pi*cos(pi*x)*cos(pi*y);
const Real duy_dy = pi*sin(pi*x)*sin(pi*y);

return RealTensor( dux_dx, dux_dy, 0.0, duy_dx, duy_dy );
return RealTensor( dux_dx, dux_dy, Real(0), duy_dx, duy_dy );
}

RealGradient curl( Real x, Real y )
{
const Real dux_dy = pi*cos(pi*x)*cos(pi*y);
const Real duy_dx = -pi*cos(pi*x)*cos(pi*y);

return RealGradient( 0.0, 0.0, duy_dx - dux_dy );
return RealGradient( Real(0), Real(0), duy_dx - dux_dy );
}

RealGradient forcing( Real x, Real y )
Expand Down

0 comments on commit ed4798d

Please sign in to comment.