Commit 07d44f17 authored by passerini's avatar passerini
Browse files

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

are these files used at all in lifev?
parent f88820d9
......@@ -1481,7 +1481,7 @@ NavierStokesHandler<Mesh, DataType>::AreaAndFlux( const face_dof_type & __faces_
Int i_quadr = 0; //! check only at the 1rst quad point
//(assuming that the element is not too distorted)
Real n_dot_ref = 0.;
for ( int ic = 0; ic < (int)nc_u; ++ic ) { //! dot product
for ( UInt ic = 0; ic < nc_u; ++ic ) { //! dot product
n_dot_ref =_feBd_u.normal( ic, i_quadr ) * __reference_normal( ic );
}
if ( __modify_sign_normal && n_dot_ref < 0 ) {
......
......@@ -655,7 +655,7 @@ updateSystem()
UInt eleID = M_uFESpace.fe().currentLocalId();
// Non linear term, Semi-implicit approach
// M_elvec contains the velocity values in the nodes
for ( UInt iNode = 0 ; iNode < ( UInt ) M_uFESpace.fe().nbNode ; iNode++ )
for ( UInt iNode = 0 ; iNode < M_uFESpace.fe().nbNode ; iNode++ )
{
UInt iloc = M_uFESpace.fe().patternFirst( iNode );
for ( UInt iComp = 0; iComp < nbCompU; ++iComp )
......
......@@ -424,7 +424,7 @@ iterate( const Real& time )
UInt eleID = this->_fe_u.currentId();
// Non linear term, Semi-implicit approach
// ULoc contains the velocity values in the nodes
for ( UInt k = 0 ; k < ( UInt ) this->_fe_u.nbNode ; k++ )
for ( UInt k = 0 ; k < this->_fe_u.nbNode ; k++ )
{
UInt iloc = this->_fe_u.patternFirst( k );
for ( UInt ic = 0; ic < nc_u; ++ic )
......@@ -695,7 +695,7 @@ void NavierStokesSolverPC<Mesh>::ShearStressCompute( std::string filename_stress
{
Vector residual( this->residual() );
UInt ss = residual.size() / NDIM;
Vector sstress( this->_ns_post_proc.compute_sstress( residual, ( UInt ) NDIM ) );
Vector sstress( this->_ns_post_proc.compute_sstress( residual, NDIM ) );
// just a stupid way for writing the shear stress in OpenDx or Medit formats,
// exploting the existent subroutines
UInt s = sstress.size() / NDIM;
......
......@@ -218,7 +218,7 @@ void IPStabilization<MESH, DOF>::apply( MATRIX& matrix, const VECTOR& state, co
for ( int iNode = 0; iNode < M_feBd.nbNode; ++iNode )
{
UInt iloc = M_fToP( iFaEl, iNode+1 );
for ( int iCoor = 0; iCoor < M_fe1.nbCoor(); ++iCoor )
for ( UInt iCoor = 0; iCoor < M_fe1.nbCoor(); ++iCoor )
{
UInt ig = M_dof.localToGlobal( iElAd1, iloc + 1 ) - 1 +iCoor*nDof;
if (state.BlockMap().LID(ig + 1) >= 0)
......
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