Commit ae8dd61c authored by passerini's avatar passerini
Browse files

warning suppression: use the same type for the iteration variable and the test variable.

+ use UInt when it makes sense
parent 57c58092
......@@ -191,7 +191,7 @@ template <typename UsrFct>
Real elem_H1_2( const UsrFct& fct, const CurrentFE& fe, const Real t, const UInt nbcomp )
{
Real s(0), x, y, z;
for ( int ig = 0;ig < fe.nbQuadPt();ig++ )
for ( UInt ig = 0;ig < fe.nbQuadPt();ig++ )
{
fe.coorQuadPt( x, y, z, ig );
for ( UInt ic = 0;ic < nbcomp;ic++ )
......@@ -236,7 +236,7 @@ template <typename VectorType>
Real elem_L2_diff_2( VectorType & u,
boost::function<Real( Real, Real, Real, Real, UInt )> fct,
const CurrentFE& fe,
const Dof& dof, const Real t, const int nbcomp )
const Dof& dof, const Real t, const UInt nbcomp )
{
// returns the square of the L2 norm of (u-fct) on the current element
UInt eleID = fe.currentLocalId();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment