3 # Determine number of cores to compile code
4 NBCORES=$(cat /proc/cpuinfo | grep processor | wc -l)
6 if (($NBCORES > $NB_MAX)); then
11 echo Nb. of cores $NBCORES and nb. of cores used to compilation $NB
15 echo "Configure users modules"
18 if [ -e $MOFEM_SRC_DIR/users_modules/*bone_remodelling* ]
20 /opt/local/bin/cmake \
21 -DCMAKE_BUILD_TYPE=Release \
22 -DBUILD_SHARED_LIBS=yes \
23 -DCMAKE_CXX_FLAGS="-Wall -Wno-sign-compare" \
24 -DMPI_RUN_FLAGS="--allow-run-as-root" \
28 /opt/local/bin/cmake \
29 -DCMAKE_BUILD_TYPE=Release \
30 -DBUILD_SHARED_LIBS=yes \
31 -DCMAKE_CXX_FLAGS="-Wall -Wno-sign-compare" \
32 -DMPI_RUN_FLAGS="--allow-run-as-root" \
36 echo "Run basic tests"
38 make -k -j $NB; /bin/true
39 ctest --output-on-failure -D Experimental