-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to SMESH 9.9
- Loading branch information
Showing
5 changed files
with
84 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,165 +1,160 @@ | ||
name: Workflow | ||
name: Build Project | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
branches: ['*'] | ||
pull_request: | ||
branches: | ||
- '*' | ||
branches: ['*'] | ||
release: | ||
types: [published] | ||
jobs: | ||
|
||
jobs: | ||
build_linux: | ||
name: Build (${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ['ubuntu-latest'] | ||
|
||
steps: | ||
|
||
- name: "Clone SMESH" | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: "Fix dependencies" | ||
run: | | ||
sudo apt-get install libxext-dev | ||
sudo ln -s /usr/lib/x86_64-linux-gnu/ /usr/lib64 | ||
- name: "Configure conda" | ||
shell: pwsh | ||
run: | | ||
conda init --all | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniforge-version: latest | ||
use-mamba: true | ||
channels: conda-forge | ||
|
||
- name: "Install conda build" | ||
shell: pwsh | ||
run: conda install -c conda-forge conda-build | ||
run: mamba install conda-build python-patch | ||
|
||
- name: "Check conda" | ||
shell: pwsh | ||
run: | | ||
conda info -a | ||
conda list | ||
- name: Prepare sources | ||
- name: "Install Linux Dependencies" | ||
run: | | ||
sudo apt-get install -y libxext-dev | ||
sudo ln -s /usr/lib/x86_64-linux-gnu/ /usr/lib64 | ||
- name: "Prepare sources" | ||
shell: pwsh | ||
run: | | ||
conda activate | ||
conda install -c conda-forge python-patch | ||
python prepare.py | ||
- name: "Run conda build" | ||
shell: pwsh | ||
run: | | ||
mkdir conda | ||
conda build ci/conda -c conda-forge --output-folder conda | ||
conda build ci/conda --output-folder conda | ||
- name: "Upload conda package" | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: smesh-${{ matrix.os }} | ||
path: conda | ||
|
||
build_win: | ||
build_osx: | ||
name: Build (${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ['windows-latest'] | ||
os: ['macos-latest'] | ||
|
||
steps: | ||
|
||
- name: "Clone SMESH" | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: "Add conda to PATH" | ||
shell: bash -l {0} | ||
run: echo "$CONDA/Scripts" >> $GITHUB_PATH | ||
|
||
- name: "Configure conda" | ||
shell: bash -l {0} | ||
run: | | ||
conda init --all | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniforge-version: latest | ||
use-mamba: true | ||
channels: conda-forge | ||
|
||
- name: "Install conda build" | ||
shell: bash -l {0} | ||
run: conda install -c conda-forge conda-build | ||
shell: sh -l {0} | ||
run: mamba install conda-build python-patch | ||
|
||
- name: "Check conda" | ||
shell: bash -l {0} | ||
shell: sh -l {0} | ||
run: | | ||
conda info -a | ||
conda list | ||
- name: Prepare sources | ||
shell: bash -l {0} | ||
- name: "Prepare sources" | ||
shell: sh -l {0} | ||
run: | | ||
conda activate | ||
conda install -c conda-forge python-patch | ||
python prepare.py | ||
- name: "Run conda build" | ||
shell: bash -l {0} | ||
shell: sh -l {0} | ||
run: | | ||
mkdir conda | ||
source activate | ||
conda build ci/conda -c conda-forge --output-folder conda | ||
conda build ci/conda --output-folder conda | ||
- name: "Upload conda package" | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: smesh-${{ matrix.os }} | ||
path: conda | ||
|
||
build_macos: | ||
build_windows: | ||
name: Build (${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ['macos-latest'] | ||
os: ['windows-latest'] | ||
|
||
steps: | ||
|
||
- name: "Clone SMESH" | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: "Configure conda" | ||
shell: pwsh | ||
run: | | ||
conda init --all | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniforge-version: latest | ||
use-mamba: true | ||
channels: conda-forge | ||
|
||
- name: "Install conda build" | ||
shell: pwsh | ||
run: conda install -c conda-forge conda-build | ||
shell: sh -l {0} | ||
run: mamba install conda-build python-patch | ||
|
||
- name: "Check conda" | ||
shell: pwsh | ||
shell: sh -l {0} | ||
run: | | ||
conda info -a | ||
conda list | ||
- name: Prepare sources | ||
shell: pwsh | ||
- name: "Prepare sources" | ||
shell: sh -l {0} | ||
run: | | ||
conda activate | ||
conda install -c conda-forge python-patch | ||
python prepare.py | ||
- name: "Run conda build" | ||
shell: pwsh | ||
shell: sh -l {0} | ||
run: | | ||
mkdir conda | ||
conda build ci/conda -c conda-forge --output-folder conda | ||
conda build ci/conda --output-folder conda | ||
- name: "Upload conda package" | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: smesh-${{ matrix.os }} | ||
path: conda | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
[submodule "external/Netgen"] | ||
path = external/Netgen | ||
url = https://github.com/NGSolve/netgen.git | ||
path = external/Netgen | ||
url = https://github.com/NGSolve/netgen.git | ||
branch = netgen-5.3 | ||
[submodule "external/NETGENPlugin"] | ||
path = external/NETGENPlugin | ||
url = https://git.salome-platform.org/gitpub/plugins/netgenplugin.git | ||
path = external/NETGENPlugin | ||
url = https://git.salome-platform.org/gitpub/plugins/netgenplugin.git | ||
branch = V9_9_0 | ||
[submodule "external/SMESH"] | ||
path = external/SMESH | ||
url = https://git.salome-platform.org/gitpub/modules/smesh.git | ||
path = external/SMESH | ||
url = https://git.salome-platform.org/gitpub/modules/smesh.git | ||
branch = V9_9_0 | ||
[submodule "external/Kernel"] | ||
path = external/Kernel | ||
url = https://git.salome-platform.org/gitpub/modules/kernel.git | ||
path = external/Kernel | ||
url = https://git.salome-platform.org/gitpub/modules/kernel.git | ||
branch = V9_9_0 | ||
[submodule "external/Geom"] | ||
path = external/Geom | ||
url = https://git.salome-platform.org/gitpub/modules/geom.git | ||
path = external/Geom | ||
url = https://git.salome-platform.org/gitpub/modules/geom.git | ||
branch = V9_9_0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters