-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes for compiling in v2112 AD mode.
- Loading branch information
Showing
7 changed files
with
53 additions
and
6 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,7 +1,6 @@ | ||
default: | ||
(cd src && python setup.py build_ext --inplace) | ||
(mv src/*.so pyofm) | ||
(cd src && ./Allmake && cd -) | ||
|
||
clean: | ||
(cd src && rm -rf *.cpp *.so build) | ||
(cd src && ./Allclean && cd -) | ||
(rm -rf */__pycache__ */*/__pycache__) |
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,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
rm -rf build *.so *.cpp *.h | ||
wclean |
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,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
# the script will exit if there is any error | ||
set -e | ||
|
||
if [ -z "$WM_PROJECT" ]; then | ||
echo "OpenFOAM environment not found, forgot to source the OpenFOAM bashrc?" | ||
exit 1 | ||
fi | ||
|
||
cythonize -3 pyOFMesh.pyx | ||
wmake -j | ||
cp -r *.so ../pyofm/ |
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,4 @@ | ||
OFMesh.C | ||
pyOFMesh.cpp | ||
|
||
LIB = pyOFMesh.$(shell python3 -c 'import sysconfig; ext_suffix = sysconfig.get_config_var("EXT_SUFFIX"); print(ext_suffix.split(".")[1])') |
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,18 @@ | ||
EXE_INC = \ | ||
-I$(LIB_SRC)/finiteVolume/lnInclude \ | ||
-I$(LIB_SRC)/sampling/lnInclude \ | ||
-I$(LIB_SRC)/meshTools/lnInclude \ | ||
-I$(LIB_SRC)/fileFormats/lnInclude \ | ||
-I$(LIB_SRC)/surfMesh/lnInclude \ | ||
-I$(MPI_ARCH_PATH)/include \ | ||
-I$(MPI_ARCH_PATH)/include64 \ | ||
$(shell python3 -c "import numpy; print('-I' + numpy.get_include())") \ | ||
$(shell python3-config --includes) \ | ||
|
||
|
||
LIB_LIBS = \ | ||
-lmeshTools \ | ||
-lfiniteVolume \ | ||
-L$(MPI_ARCH_PATH)/lib \ | ||
-L$(MPI_ARCH_PATH)/lib64 \ | ||
$(shell python3-config --ldflags) |
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