Commit f88820d9 authored by passerini's avatar passerini
Browse files

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

warnings suppression: use the same type for iteration variable and test variable, comment out unused variables
parent ca5830b7
......@@ -476,7 +476,7 @@ void FSIOperator::createInterfaceMaps(dof_interface_type3D dofStructureToHarmoni
//is the interface map between HE (first) and solid (second)
if( this->isFluid() )
{
for (int dim = 0; dim < (int)nDimensions; ++dim)
for (UInt dim = 0; dim < nDimensions; ++dim)
for ( Iterator i = locDofMap.begin(); i != locDofMap.end(); ++i )
dofInterfaceFluid.push_back(i->second + dim * M_dFESpace->dof().numTotalDof()); // in solid numerotation
}
......@@ -503,7 +503,7 @@ void FSIOperator::createInterfaceMaps(dof_interface_type3D dofStructureToHarmoni
if (this->isSolid())
{
//std::cout << "solid" << std::endl;
for (int dim = 0; dim < (int)nDimensions; ++dim)
for (UInt dim = 0; dim < nDimensions; ++dim)
for ( Iterator i = locDofMap.begin(); i != locDofMap.end(); ++i )
dofInterfaceSolid.push_back(i->second + dim * M_dFESpace->dof().numTotalDof()); // in solid numerotation
}
......@@ -760,7 +760,7 @@ FSIOperator::transferFluidOnInterface(const vector_type &_vec1, vector_type &_ve
typedef std::map<ID, ID>::const_iterator Iterator;
for (int dim = 0; dim < (int)nDimensions; ++dim)
for (UInt dim = 0; dim < nDimensions; ++dim)
for ( Iterator it = locDofMap.begin(); it != locDofMap.end(); ++it )
{
// std::cout << it->second + dim*numTotalDofFluid << " to "
......@@ -888,7 +888,7 @@ FSIOperator::transferInterfaceOnSolid(const vector_type& _vec1, vector_type& _ve
typedef std::map<ID, ID>::const_iterator Iterator;
for (int dim = 0; dim < (int)nDimensions; ++dim)
for (UInt dim = 0; dim < nDimensions; ++dim)
for ( Iterator it = locDofMap.begin(); it != locDofMap.end(); ++it )
{
_vec2.checkAndSet( it->second + dim*numTotalDofSolid,
......@@ -1439,7 +1439,7 @@ FSIOperator::transferMeshMotionOnFluid( const vector_type& _vec1, vector_type& _
typedef std::map<ID, ID>::iterator Iterator;
for (int dim = 0; dim < (int)nDimensions; ++dim)
for (UInt dim = 0; dim < nDimensions; ++dim)
for ( Iterator it = locDofMap.begin(); it != locDofMap.end(); ++it )
{
// std::cout << " doing: for " << it->second << " to " << it->second
......
......@@ -282,10 +282,10 @@ public:
const double& x,
const double& y,
const double& z,
const ID& i,
const ID& /*i*/,
const EntityFlag& ref)
{
double pi = acos(-1.0);
// double pi = acos(-1.0);
Real iapp=0.0;
Real x_0= 3.316424,y_0 = 31.496351,z_0 = 5.799850;//APEX, node number: 80185 : 3.316424 31.496351 5.799850
if (fmod(t,G_Time_period)<=25)
......
......@@ -289,7 +289,7 @@ void Mitchell_Schaeffer<Mesh, SolverType>::updateElvec( UInt eleID )
M_elvec.zero();
UInt ig;
//! Filling local elvec_w with recovery variable values in the nodes
for ( UInt iNode = 0 ; iNode < ( UInt ) IonicSolver<Mesh, SolverType>::M_uFESpace.fe().nbNode ; iNode++ )
for ( UInt iNode = 0 ; iNode < IonicSolver<Mesh, SolverType>::M_uFESpace.fe().nbNode ; iNode++ )
{
ig = IonicSolver<Mesh, SolverType>::M_uFESpace.dof().localToGlobal( eleID, iNode + 1 );
M_elvec.vec()[ iNode ] = M_wVecRep[ig];
......@@ -458,7 +458,7 @@ void Rogers_McCulloch<Mesh, SolverType>::updateElvec( UInt eleID )
M_elvec.zero();
UInt ig;
//! Filling local elvec_w with recovery variable values in the nodes
for ( UInt iNode = 0 ; iNode < ( UInt ) IonicSolver<Mesh, SolverType>::M_uFESpace.fe().nbNode ; iNode++ )
for ( UInt iNode = 0 ; iNode < IonicSolver<Mesh, SolverType>::M_uFESpace.fe().nbNode ; iNode++ )
{
ig = IonicSolver<Mesh, SolverType>::M_uFESpace.dof().localToGlobal( eleID, iNode + 1 );
M_elvec.vec()[ iNode ] = M_wVecRep[ig];
......@@ -716,7 +716,7 @@ void Luo_Rudy<Mesh, SolverType>::updateElvec( UInt eleID)
M_elvec_Iion.zero();
UInt ig;
//! Filling local elvec with recovery variable values in the nodes
for ( UInt iNode = 0 ; iNode < ( UInt ) IonicSolver<Mesh, SolverType>::M_uFESpace.fe().nbNode ; iNode++ )
for ( UInt iNode = 0 ; iNode < IonicSolver<Mesh, SolverType>::M_uFESpace.fe().nbNode ; iNode++ )
{
ig = IonicSolver<Mesh, SolverType>::M_uFESpace.dof().localToGlobal( eleID, iNode + 1 );
M_elvec_Iion.vec()[ iNode ] = M_Iion_VecRep[ig];
......
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