Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bfa9ca6
)
Fix ID shift for testing export
author
eap
<eap@opencascade.com>
Fri, 12 Mar 2021 16:28:36 +0000
(19:28 +0300)
committer
eap
<eap@opencascade.com>
Fri, 12 Mar 2021 16:28:36 +0000
(19:28 +0300)
src/SMDS/SMDS_ElementFactory.cxx
patch
|
blob
|
history
diff --git
a/src/SMDS/SMDS_ElementFactory.cxx
b/src/SMDS/SMDS_ElementFactory.cxx
index bd5a68380017b95b7b010d2d7ae5619a9ecc965f..162843db8ab09695ff5670496fc05598d2b15761 100644
(file)
--- a/
src/SMDS/SMDS_ElementFactory.cxx
+++ b/
src/SMDS/SMDS_ElementFactory.cxx
@@
-172,12
+172,12
@@
smIdType SMDS_ElementFactory::GetMinID()
SMDS_MeshElement* SMDS_ElementFactory::NewElement( const smIdType ID )
{
SMDS_MeshElement* SMDS_ElementFactory::NewElement( const smIdType ID )
{
- smIdType id = ID
- idShift
;
+ smIdType id = ID
> idShift ? ID - idShift : ID
;
smIdType iChunk = ( id - 1 ) / theChunkSize;
smIdType index = ( id - 1 ) % theChunkSize;
while ((smIdType) myChunks.size() <= iChunk )
{
smIdType iChunk = ( id - 1 ) / theChunkSize;
smIdType index = ( id - 1 ) % theChunkSize;
while ((smIdType) myChunks.size() <= iChunk )
{
- smIdType id0 = myChunks.size() * theChunkSize + 1;
+ smIdType id0 = myChunks.size() * theChunkSize + 1
+ idShift
;
myChunks.push_back( new SMDS_ElementChunk( this, id0 ));
}
SMDS_MeshElement* e = myChunks[iChunk].Element( FromIdType<int>(index) );
myChunks.push_back( new SMDS_ElementChunk( this, id0 ));
}
SMDS_MeshElement* e = myChunks[iChunk].Element( FromIdType<int>(index) );