3# Determine number of cores to compile code
4NBCORES=$(cat /proc/cpuinfo | grep processor | wc -l)
6if (($NBCORES > $NB_MAX)); then
11echo Nb. of cores $NBCORES and nb. of cores used to compilation $NB
15echo "Configure users modules"
18if [ -e $MOFEM_SRC_DIR/users_modules/*bone_remodelling* ]
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" \
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" \
38make -k -j $NB; /bin/true
39ctest --output-on-failure -D Experimental