From 5e1ff2aa959bacbb0d6b2e96a989d8c20d807939 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Tue, 28 Sep 2021 23:04:41 +0100 Subject: [PATCH] libmesh not finding target --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Dockerfile b/Dockerfile index 89fec615ef..83352274c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -129,6 +129,18 @@ RUN if [ "$include_dagmc" = "true" ] ; \ rm -rf /DAGMC/DAGMC /DAGMC/build ; \ fi +# Clone and install libmesh +RUN mkdir libmesh ; \ + cd libmesh ; \ + git clone --single-branch --recurse-submodules --branch v1.6.0 https://github.com/libMesh/libmesh.git ; \ + # cd libmesh ; \ + # git submodule update --init --recursive ; \ + mkdir build ; \ + cd build ; \ + ../libmesh/configure --prefix=/opt/LIBMESH --enable-exodus --disable-netcdf-4 --disable-eigen --disable-lapack --disable-mpi ; \ + make -j"$compile_cores" ; \ + make -j"$compile_cores" install + # Clone and install OpenMC with DAGMC RUN if [ "$include_dagmc" = "true" ] ; \ then git clone --recurse-submodules https://github.com/openmc-dev/openmc.git /opt/openmc ; \ @@ -137,6 +149,8 @@ RUN if [ "$include_dagmc" = "true" ] ; \ cd build ; \ cmake -Doptimize=on \ -Ddagmc=ON \ + -Dlibmesh=ON \ + -DCMAKE_PREFIX_PATH=/opt/libmesh/ \ -DDAGMC_DIR=/DAGMC/ \ -DHDF5_PREFER_PARALLEL=on .. ; \ make -j"$compile_cores" ; \