mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-12 01:30:34 +05:00
fix missing "break"s
This commit is contained in:
parent
981e2bca16
commit
34d237befe
@ -1073,14 +1073,14 @@ Driver_Mesh::Status DriverCGNS_Read::Perform()
|
|||||||
PGetNodesFun getNodesFun = 0;
|
PGetNodesFun getNodesFun = 0;
|
||||||
if ( elemType == SMDSAbs_Face && meshDim == 3 )
|
if ( elemType == SMDSAbs_Face && meshDim == 3 )
|
||||||
switch ( axis ) {
|
switch ( axis ) {
|
||||||
case 0: getNodesFun = & TZoneData::IFaceNodes;
|
case 0: getNodesFun = & TZoneData::IFaceNodes; break;
|
||||||
case 1: getNodesFun = & TZoneData::JFaceNodes;
|
case 1: getNodesFun = & TZoneData::JFaceNodes; break;
|
||||||
case 2: getNodesFun = & TZoneData::KFaceNodes;
|
case 2: getNodesFun = & TZoneData::KFaceNodes; break;
|
||||||
}
|
}
|
||||||
else if ( elemType == SMDSAbs_Edge && meshDim == 2 )
|
else if ( elemType == SMDSAbs_Edge && meshDim == 2 )
|
||||||
switch ( axis ) {
|
switch ( axis ) {
|
||||||
case 0: getNodesFun = & TZoneData::IEdgeNodes;
|
case 0: getNodesFun = & TZoneData::IEdgeNodes; break;
|
||||||
case 1: getNodesFun = & TZoneData::JEdgeNodes;
|
case 1: getNodesFun = & TZoneData::JEdgeNodes; break;
|
||||||
}
|
}
|
||||||
if ( !getNodesFun )
|
if ( !getNodesFun )
|
||||||
{
|
{
|
||||||
@ -1103,14 +1103,14 @@ Driver_Mesh::Status DriverCGNS_Read::Perform()
|
|||||||
PGetNodesFun getNodesFun = 0;
|
PGetNodesFun getNodesFun = 0;
|
||||||
if ( elemType == SMDSAbs_Face )
|
if ( elemType == SMDSAbs_Face )
|
||||||
switch ( axis ) {
|
switch ( axis ) {
|
||||||
case 0: getNodesFun = & TZoneData::IFaceNodes;
|
case 0: getNodesFun = & TZoneData::IFaceNodes; break;
|
||||||
case 1: getNodesFun = & TZoneData::JFaceNodes;
|
case 1: getNodesFun = & TZoneData::JFaceNodes; break;
|
||||||
case 2: getNodesFun = & TZoneData::KFaceNodes;
|
case 2: getNodesFun = & TZoneData::KFaceNodes; break;
|
||||||
}
|
}
|
||||||
else if ( elemType == SMDSAbs_Edge && meshDim == 2 )
|
else if ( elemType == SMDSAbs_Edge && meshDim == 2 )
|
||||||
switch ( axis ) {
|
switch ( axis ) {
|
||||||
case 0: getNodesFun = & TZoneData::IEdgeNodes;
|
case 0: getNodesFun = & TZoneData::IEdgeNodes; break;
|
||||||
case 1: getNodesFun = & TZoneData::JEdgeNodes;
|
case 1: getNodesFun = & TZoneData::JEdgeNodes; break;
|
||||||
}
|
}
|
||||||
if ( !getNodesFun )
|
if ( !getNodesFun )
|
||||||
{
|
{
|
||||||
@ -1129,9 +1129,9 @@ Driver_Mesh::Status DriverCGNS_Read::Perform()
|
|||||||
|
|
||||||
PAddElemFun addElemFun = 0;
|
PAddElemFun addElemFun = 0;
|
||||||
switch ( meshDim ) {
|
switch ( meshDim ) {
|
||||||
case 1: addElemFun = & add_BAR_2;
|
case 1: addElemFun = & add_BAR_2; break;
|
||||||
case 2: addElemFun = & add_QUAD_4;
|
case 2: addElemFun = & add_QUAD_4; break;
|
||||||
case 3: addElemFun = & add_HEXA_8;
|
case 3: addElemFun = & add_HEXA_8; break;
|
||||||
}
|
}
|
||||||
int elemID = meshInfo.NbElements();
|
int elemID = meshInfo.NbElements();
|
||||||
const SMDS_MeshElement* elem = 0;
|
const SMDS_MeshElement* elem = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user