-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker/Singularity build of PETSc / FiniteVolume integration.
PETSc 3.7.7 and mpich 3.1.3 are proper CMake dependencies and are statically linked into FinteVolume_PETSc_x64 Dockerfile-PETSc builds only PETSc FiniteVolume (useful for development). Dockerfile builds PETSc and non-PETSc solvers - used within vcell project as basis for the vcell-batch Singularity image.
- Loading branch information
Showing
11 changed files
with
727 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
FROM ubuntu:xenial as build_PETSc | ||
|
||
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 | ||
|
||
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 | ||
|
||
# to test installation of PETSc | ||
# make PETSC_DIR=/usr/local/petsc/petsc-3.7.7 PETSC_ARCH=arch-linux2-c-debug test | ||
# make PETSC_DIR=/usr/local/petsc/petsc-3.7.7 PETSC_ARCH=arch-linux2-c-debug streams | ||
|
||
|
||
COPY . /vcellroot | ||
|
||
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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# CorrectWindowsPaths - this module defines one macro | ||
# | ||
# CONVERT_CYGWIN_PATH( PATH ) | ||
# This uses the command cygpath (provided by cygwin) to convert | ||
# unix-style paths into paths useable by cmake on windows | ||
|
||
macro (CONVERT_CYGWIN_PATH _path) | ||
if (WIN32) | ||
EXECUTE_PROCESS(COMMAND cygpath.exe -m ${${_path}} | ||
OUTPUT_VARIABLE ${_path}) | ||
string (STRIP ${${_path}} ${_path}) | ||
endif (WIN32) | ||
endmacro (CONVERT_CYGWIN_PATH) |
Oops, something went wrong.