Skip to content

Commit

Permalink
Merge pull request #16 from gerlero/cgal
Browse files Browse the repository at this point in the history
Support functionality that depends on CGAL
  • Loading branch information
gerlero authored Mar 8, 2022
2 parents 1840b1f + 1b7e947 commit 78ff7a1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ brew "open-mpi"
brew "libomp"
brew "adios2"
brew "boost"
brew "gerlero/openfoam/cgal@4"
brew "cmake"
brew "fftw"
brew "kahip"
Expand Down
5 changes: 3 additions & 2 deletions configure.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/bin/bash -e

echo 'export WM_COMPILER=Clang' >> etc/prefs.sh
echo 'export CPATH=$(brew --prefix libomp)/include' >> etc/prefs.sh
echo 'export LIBRARY_PATH=$(brew --prefix libomp)/lib' >> etc/prefs.sh
echo 'export CPATH=$(brew --prefix libomp)/include:$(brew --prefix gmp)/include:$(brew --prefix mpfr)/include' >> etc/prefs.sh
echo 'export LIBRARY_PATH=$(brew --prefix libomp)/lib:$(brew --prefix gmp)/lib:$(brew --prefix mpfr)/lib' >> etc/prefs.sh
bin/tools/foamConfigurePaths \
-adios-path '$(brew --prefix adios2)' \
-boost-path '$(brew --prefix boost)' \
-cgal-path '$(brew --prefix cgal\@4)' \
-cmake-path '$(brew --prefix cmake)' \
-fftw-path '$(brew --prefix fftw)' \
-kahip-path '$(brew --prefix kahip)' \
Expand Down
6 changes: 6 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ cd backwardFacingStep2D
$BASH -e ./Allrun
! grep 'FOAM Warning' log.simpleFoam
cd ..

rm -rf blob
cp -r "$FOAM_TUTORIALS/mesh/foamyHexMesh/blob" blob
cd blob
$BASH -e ./Allrun
cd ..

0 comments on commit 78ff7a1

Please sign in to comment.