Skip to content

Commit

Permalink
Add SMESH patch
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder committed May 14, 2023
1 parent 5fbf9f2 commit a70b678
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions patch/SMESH_swap_bool_vector.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/src/SMESH/SMESH_MeshEditor.cxx 2023-05-13 20:04:14.611798489 +0800
+++ b/src/SMESH/SMESH_MeshEditor.cxx 2023-05-15 05:58:50.875607024 +0800
@@ -4307,7 +4307,7 @@
std::swap( itNN[0], itNN[1] );
std::swap( prevNod[0], prevNod[1] );
std::swap( nextNod[0], nextNod[1] );
- std::swap( isSingleNode[0], isSingleNode[1] );
+ isSingleNode.swap( isSingleNode[0], isSingleNode[1] );
if ( nbSame > 0 )
sames[0] = 1 - sames[0];
iNotSameNode = 1 - iNotSameNode;
5 changes: 5 additions & 0 deletions prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ def prepare_smesh():
if not success:
raise RuntimeError('Failed to apply StdMeshers_ViscousLayers patch.')

pset = patch.fromfile('patch/SMESH_swap_bool_vector.patch')
success = pset.apply(strip=0, root='src/SMESH')
if not success:
raise RuntimeError('Failed to apply SMESH_swap_bool_vector patch.')

# Copy MeshVSLink sources
shutil.copytree('extra/MeshVSLink',
'src/SMESH/src/MeshVSLink', dirs_exist_ok=True)
Expand Down

0 comments on commit a70b678

Please sign in to comment.