Skip to content
Snippets Groups Projects
VirtualFluidsMPICH.def 917 B
BootStrap: docker
From: ubuntu:20.04

%files
    3rdParty 3rdParty
    apps apps
    CMake CMake
    Python Python
    src src
    CMakeLists.txt CMakeLists.txt
    cpu.cmake cpu.cmake
    gpu.cmake gpu.cmake
    setup.py setup.py
    pyproject.toml pyproject.toml


%post
    export DEBIAN_FRONTEND=noninteractive
    apt-get update &&          \
    apt-get install -y         \
    build-essential            \
    cmake=3.16.3-1ubuntu1      \
    python3                    \
    python3-dev                \
    python3-pip                \
    mpich                      \
    libomp-dev
    
    pip3 install setuptools wheel

    export PYTHONPATH=Python
    python3 /setup.py install

%environment
    export PYTHONPATH=/Python

%runscript
    python3 /Python/liddrivencavity/simulation.py

%appenv poiseuille
    export PYTHONPATH=Python

%apprun poisueille
    python3 /Python/poiseuille/poiseuille_hpc.py