-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Medcoupling #24378
Adding Medcoupling #24378
Changes from all commits
0689be5
1885969
ee8e62a
0cedede
680915d
c05b6a6
e661266
bdb4163
c31dd6c
eb0b17c
b2c4b51
1cf18ec
0488bdc
cce8c32
1393db3
d8d18fe
8451db1
a659a7b
c2af3a9
2a23e9f
1f28875
7fe2584
b754a36
a309e99
2b5fe4a
6f94360
469a4ff
578be84
d7390f3
ab20977
ad10928
e151b6d
03b24e8
844f8d3
05a1c04
1d6cd50
8b1347c
ac49b48
9243c3c
29edf70
bec5cca
ddcff95
7daae95
61a4027
e05032a
171be9f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@echo off | ||
|
||
|
||
cmake -B build -G "Ninja" . ^ | ||
-Wno-dev ^ | ||
-D CMAKE_BUILD_TYPE="Release" ^ | ||
-D PYTHON_ROOT_DIR="%PREFIX%" ^ | ||
-D CMAKE_CXX_FLAGS="/bigobj" ^ | ||
-D PYTHON_EXECUTABLE:FILEPATH="%PYTHON%" ^ | ||
-D CONFIGURATION_ROOT_DIR="%SRC_DIR%/deps/config" ^ | ||
-D SALOME_CMAKE_DEBUG=ON ^ | ||
-D SALOME_USE_MPI=OFF ^ | ||
-D MEDCOUPLING_BUILD_STATIC=OFF ^ | ||
-D MEDCOUPLING_BUILD_TESTS=OFF ^ | ||
-D MEDCOUPLING_BUILD_DOC=OFF ^ | ||
-D MEDCOUPLING_USE_64BIT_IDS=OFF ^ | ||
-D MEDCOUPLING_USE_MPI=OFF ^ | ||
-D MEDCOUPLING_MEDLOADER_USE_XDR=OFF ^ | ||
-D MEDCOUPLING_INSTALL_PYTHON=%SP_DIR% ^ | ||
-D XDR_INCLUDE_DIRS="" ^ | ||
-D MEDCOUPLING_ENABLE_PYTHON=ON ^ | ||
-D MEDCOUPLING_ENABLE_PARTITIONER=ON ^ | ||
-D MEDCOUPLING_PARTITIONER_PARMETIS=OFF ^ | ||
-D MEDCOUPLING_PARTITIONER_METIS=OFF ^ | ||
-D MEDCOUPLING_PARTITIONER_SCOTCH=OFF ^ | ||
-D MEDCOUPLING_PARTITIONER_PTSCOTCH=OFF ^ | ||
%CMAKE_ARGS% | ||
|
||
if errorlevel 1 exit 1 | ||
cmake --build build --target install | ||
if errorlevel 1 exit 1 | ||
Krande marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
:: Move dll files from %PREFIX%/Library/Lib to %PREFIX%/Library/Bin | ||
:: This is needed for the python bindings to work | ||
|
||
cd %LIBRARY_LIB% | ||
move *.dll %LIBRARY_BIN% |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
if [[ "$mpi" == "nompi" ]]; then | ||
on_mpi="OFF" | ||
else | ||
on_mpi="ON" | ||
fi | ||
|
||
cmake -B build . \ | ||
-DCMAKE_BUILD_TYPE="Release" \ | ||
-DPYTHON_ROOT_DIR="${PREFIX}" \ | ||
Krande marked this conversation as resolved.
Show resolved
Hide resolved
|
||
-DPYTHON_EXECUTABLE:FILEPATH="$PYTHON" \ | ||
-Wno-dev \ | ||
-DCONFIGURATION_ROOT_DIR="${SRC_DIR}/deps/config" \ | ||
-DSALOME_CMAKE_DEBUG=ON \ | ||
-DMED_INT_IS_LONG=ON \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I think we could add this to libmed cmake build There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. actually, libmed cmake file has that line, i'm going to try to cleanup a few things in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Thanks, I really appreciate your help! |
||
-DSALOME_USE_MPI=${on_mpi} \ | ||
-DMEDCOUPLING_BUILD_TESTS=OFF \ | ||
-DMEDCOUPLING_BUILD_DOC=OFF \ | ||
-DMEDCOUPLING_USE_64BIT_IDS=ON \ | ||
-DMEDCOUPLING_USE_MPI=${on_mpi} \ | ||
-DMEDCOUPLING_MEDLOADER_USE_XDR=OFF \ | ||
-DXDR_INCLUDE_DIRS="" \ | ||
-DMEDCOUPLING_PARTITIONER_PARMETIS=OFF \ | ||
-DMEDCOUPLING_PARTITIONER_METIS=OFF \ | ||
-DMEDCOUPLING_PARTITIONER_SCOTCH=OFF \ | ||
-DMEDCOUPLING_PARTITIONER_PTSCOTCH=${on_mpi} \ | ||
-DMPI_C_COMPILER:PATH="$(which mpicc)" \ | ||
${CMAKE_ARGS} | ||
|
||
cd build | ||
make install -j$CPU_COUNT |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
mpi: | ||
- nompi |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{% set version = "9.10.0" %} | ||
|
||
package: | ||
name: medcoupling | ||
version: '{{ version }}' | ||
|
||
source: | ||
- fn: 'medcoupling_{{ version }}.tar.gz' | ||
url: https://git.salome-platform.org/gitweb/?p=tools/medcoupling.git;a=snapshot;h=V{{ version.replace('.', '_') }};sf=tgz | ||
sha256: 02087a4e59ffcdab6fc68460ffd86b03a80b5c0faa695b0bfb2142f1d0d3e5ea | ||
- fn: 'config_{{ version }}.tar.gz' | ||
url: https://git.salome-platform.org/gitweb/?p=tools/configuration.git;a=snapshot;h=V{{ version.replace('.', '_') }};sf=tgz | ||
folder: deps/config | ||
sha256: d58f6749514ce49b00590a96d6dc9090a76a07c13690e2453403643afb40346c | ||
|
||
|
||
build: | ||
skip: True # [osx] | ||
detect_binary_files_with_prefix: true | ||
# string: py{{ CONDA_PY }}_mpi_{{ mpi }}_h{{ PKG_HASH }}_{{ PKG_BUILDNUM }} # [mpi != "nompi"] | ||
# string: py{{ CONDA_PY }}_nompi_h{{ PKG_HASH }}_{{ PKG_BUILDNUM }} # [mpi == "nompi"] | ||
number: 0 | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('c') }} | ||
- {{ compiler('cxx') }} | ||
- make # [not win] | ||
- ninja # [win] | ||
Krande marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- cmake | ||
- swig >=4.0.2 | ||
|
||
host: | ||
- python | ||
- numpy | ||
- libboost-devel | ||
- zlib | ||
- hdf5 | ||
- libxml2 | ||
Krande marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- libmed | ||
Krande marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- petsc # [mpi != 'nompi'] | ||
Krande marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- {{ mpi }} # [mpi != 'nompi'] | ||
|
||
run: | ||
- python | ||
- {{ pin_compatible('numpy') }} | ||
- {{ mpi }} # [mpi != 'nompi'] | ||
|
||
test: | ||
imports: | ||
- medcoupling | ||
Krande marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- MEDRenumber | ||
- MEDCouplingRemapper | ||
- MEDLoader | ||
- MEDPartitioner | ||
- MEDCoupling # [linux] | ||
- MEDCouplingCompat # [win or osx] | ||
|
||
about: | ||
home: https://git.salome-platform.org/gitweb/?p=tools/medcoupling.git | ||
license: LGPL-2.1-or-later | ||
license_family: LGPL | ||
license_file: COPYING | ||
summary: 'The MEDCoupling tool gathers several powerful functionalities around the input and output data of simulation codes (meshes and fields mainly)' | ||
description: | | ||
The MEDCoupling tool gathers several powerful functionalities around the input and output data of simulation codes (meshes and fields mainly) | ||
doc_url: https://docs.salome-platform.org/latest/dev/MEDCoupling/developer/index.html | ||
dev_url: https://git.salome-platform.org/gitweb/?p=tools/medcoupling.git;a=summary | ||
|
||
extra: | ||
recipe-maintainers: | ||
- Krande |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really thought it was this one...