Commit 77358ab8 authored by passerini's avatar passerini
Browse files

removed useless explicit castings, use coherently int / UInt in loop tests.

parent 55a8d0a4
......@@ -780,7 +780,7 @@ VenantKirchhofSolver<Mesh, SolverType>::updateJacobian( vector_type & sol, int i
_elmatK.zero();
// _dk_loc contains the displacement in the nodes
for ( UInt j = 0 ; j < ( UInt ) M_FESpace.fe().nbNode ; ++j )
for ( UInt j = 0 ; j < M_FESpace.fe().nbNode ; ++j )
{
for ( UInt ic = 0; ic < nc; ++ic )
{
......@@ -938,7 +938,7 @@ VenantKirchhofSolver<Mesh, SolverType>::evalConstraintTensor()
}
for (int ii = 1; ii <= (int)M_FESpace.dim(); ++ii)
for (UInt ii = 1; ii <= M_FESpace.dim(); ++ii)
{
(*M_sxx)[ii] /= count[ii];
(*M_syy)[ii] /= count[ii];
......
......@@ -502,12 +502,12 @@ void my_matvecSfSsPrime(double *z, double *Jz, AZ_MATRIX *J, int proc_config[])
vector_type zSolid(dim);
for (int ii = 0; ii < (int) dim; ++ii)
for (UInt ii = 0; ii < dim; ++ii)
{
zSolid[ii] = z[ii];
}
if ( xnorm == 0.0 )
for (int i=0; i <(int) dim; ++i)
for (UInt i=0; i < dim; ++i)
{
Jz[i] = 0.0;
}
......@@ -558,7 +558,7 @@ void my_matvecSfSsPrime(double *z, double *Jz, AZ_MATRIX *J, int proc_config[])
}
my_data->M_pFS->computeResidualFSI();
for (int i = 0; i < (int) dim; ++i)
for (UInt i = 0; i < dim; ++i)
{
Jz[i] = my_data->M_pFS->residual()[i];
}
......
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