regression fix

regression fix introduced by 013f92ba26

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
pull/1/head
Thorsten Liebig 2012-11-21 16:18:06 +01:00
parent fdd8f08a7b
commit 3dba30c240
1 changed files with 6 additions and 2 deletions

View File

@ -199,7 +199,9 @@ double Operator::GetNodeWidth(int ny, const int pos[3], bool dualMesh) const
if ( (pos[0]<0) || (pos[1]<0) || (pos[2]<0) ) if ( (pos[0]<0) || (pos[1]<0) || (pos[2]<0) )
return 0.0; return 0.0;
return GetNodeWidth(ny, pos, dualMesh); //call the unsigned int version of GetNodeWidth
unsigned int uiPos[]={(unsigned int)pos[0],(unsigned int)pos[1],(unsigned int)pos[2]};
return GetNodeWidth(ny, uiPos, dualMesh);
} }
double Operator::GetNodeArea(int ny, const unsigned int pos[3], bool dualMesh) const double Operator::GetNodeArea(int ny, const unsigned int pos[3], bool dualMesh) const
@ -214,7 +216,9 @@ double Operator::GetNodeArea(int ny, const int pos[3], bool dualMesh) const
if ( (pos[0]<0) || (pos[1]<0) || (pos[2]<0) ) if ( (pos[0]<0) || (pos[1]<0) || (pos[2]<0) )
return 0.0; return 0.0;
return GetNodeArea(ny, pos, dualMesh); //call the unsigned int version of GetNodeArea
unsigned int uiPos[]={(unsigned int)pos[0],(unsigned int)pos[1],(unsigned int)pos[2]};
return GetNodeArea(ny, uiPos, dualMesh);
} }
unsigned int Operator::SnapToMeshLine(int ny, double coord, bool &inside, bool dualMesh) const unsigned int Operator::SnapToMeshLine(int ny, double coord, bool &inside, bool dualMesh) const