Skip to content

Commit

Permalink
remove PETSc build from Docker FiniteVolume solver
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Jul 26, 2024
1 parent 28c9532 commit 3feb14e
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ RUN apt-get -y update && apt-get install -y apt-utils && \
apt-get install -y -qq -o=Dpkg::Use-Pty=0 build-essential gfortran zlib1g-dev \
libhdf5-dev libcurl4-openssl-dev libboost-dev cmake wget python

#
# build PETSc with mpich for static linking
#
RUN mkdir /usr/local/petsc && \
cd /usr/local/petsc && \
wget http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.7.7.tar.gz && \
tar xzf petsc-3.7.7.tar.gz && \
cd petsc-3.7.7 && \
./configure --with-shared-libraries=0 --download-fblaslapack=1 --with-debugging=1 --download-mpich && \
make PETSC_DIR=/usr/local/petsc/petsc-3.7.7 PETSC_ARCH=arch-linux2-c-debug all

ENV PETSC_DIR=/usr/local/petsc/petsc-3.7.7 \
PETSC_ARCH=arch-linux2-c-debug
##
## build PETSc with mpich for static linking
##
#RUN mkdir /usr/local/petsc && \
# cd /usr/local/petsc && \
# wget http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.7.7.tar.gz && \
# tar xzf petsc-3.7.7.tar.gz && \
# cd petsc-3.7.7 && \
# ./configure --with-shared-libraries=0 --download-fblaslapack=1 --with-debugging=1 --download-mpich && \
# make PETSC_DIR=/usr/local/petsc/petsc-3.7.7 PETSC_ARCH=arch-linux2-c-debug all

#ENV PETSC_DIR=/usr/local/petsc/petsc-3.7.7 \
# PETSC_ARCH=arch-linux2-c-debug

COPY . /vcellroot

Expand All @@ -43,28 +43,28 @@ RUN /usr/bin/cmake \
make && \
ctest

##
## build FiniteVolume with PETSc (FiniteVolume_PETSc_x64)
##
#RUN mkdir -p /vcellroot/build_PETSc/bin
#WORKDIR /vcellroot/build_PETSc
#
# build FiniteVolume with PETSc (FiniteVolume_PETSc_x64)
#
RUN mkdir -p /vcellroot/build_PETSc/bin
WORKDIR /vcellroot/build_PETSc

RUN /usr/bin/cmake \
-DOPTION_TARGET_MESSAGING=ON \
-DOPTION_TARGET_PARALLEL=OFF \
-DOPTION_TARGET_PETSC=ON \
-DOPTION_TARGET_CHOMBO2D_SOLVER=OFF \
-DOPTION_TARGET_CHOMBO3D_SOLVER=OFF \
-DOPTION_TARGET_SMOLDYN_SOLVER=OFF \
-DOPTION_TARGET_FV_SOLVER=ON \
-DOPTION_TARGET_STOCHASTIC_SOLVER=OFF \
-DOPTION_TARGET_NFSIM_SOLVER=OFF \
-DOPTION_TARGET_MOVINGBOUNDARY_SOLVER=OFF \
-DOPTION_TARGET_SUNDIALS_SOLVER=OFF \
-DOPTION_TARGET_HY3S_SOLVERS=OFF \
.. && \
make && \
ctest
#RUN /usr/bin/cmake \
# -DOPTION_TARGET_MESSAGING=ON \
# -DOPTION_TARGET_PARALLEL=OFF \
# -DOPTION_TARGET_PETSC=ON \
# -DOPTION_TARGET_CHOMBO2D_SOLVER=OFF \
# -DOPTION_TARGET_CHOMBO3D_SOLVER=OFF \
# -DOPTION_TARGET_SMOLDYN_SOLVER=OFF \
# -DOPTION_TARGET_FV_SOLVER=ON \
# -DOPTION_TARGET_STOCHASTIC_SOLVER=OFF \
# -DOPTION_TARGET_NFSIM_SOLVER=OFF \
# -DOPTION_TARGET_MOVINGBOUNDARY_SOLVER=OFF \
# -DOPTION_TARGET_SUNDIALS_SOLVER=OFF \
# -DOPTION_TARGET_HY3S_SOLVERS=OFF \
# .. && \
# make && \
# ctest


FROM eclipse-temurin:17 as jre-build
Expand Down Expand Up @@ -96,7 +96,7 @@ RUN apt-get install -qq -y -o=Dpkg::Use-Pty=0 gcc gfortran zlib1g \
libhdf5-103 libhdf5-cpp-103 libcurl4-openssl-dev zip

COPY --from=build /vcellroot/build/bin /vcellbin
COPY --from=build /vcellroot/build_PETSc/bin/FiniteVolume_PETSc_x64 /vcellbin/
#COPY --from=build /vcellroot/build_PETSc/bin/FiniteVolume_PETSc_x64 /vcellbin/
WORKDIR /vcellbin
ENV PATH=/vcellbin:$PATH

0 comments on commit 3feb14e

Please sign in to comment.