fempar/fempar:gnu-debug_p4est-serial

$ singularity pull shub://fempar/fempar:gnu-debug_p4est-serial

Singularity Recipe

BootStrap: docker
From: fempar/fempar-env:gnu-debug_p4est-serial

%setup


%post

    #------------------
    # REQUERIMENTS
    #------------------

    mkdir -p /mnt /scratch /opt/fempar

    #------------------
    # USER INSTALL
    #------------------

    # ... Install here your software

    #------------------
    # CLEAN APT files
    #------------------
    apt-get clean
    rm -rf /var/lib/apt/lists/*
    rm -rf /var/tmp/*

%runscript

    echo "Arguments received: $*"
    exec "$@"

%test

    cd /opt/fempar
    ctest -j8 -V -E par_test 

%help

    echo "------------------------------------------------"
    echo "| Finite Element Multiphysics PARallel solvers |"
    echo "|             http://fempar.org/               |"
    echo "------------------------------------------------"

%appinstall fempar

    . /opt/intel/mkl/bin/mklvars.sh intel64 
    PACKAGE=fempar 
    VERSION=experimental 
    URL="https://gitlab.com/$PACKAGE/$PACKAGE.git" 
    ROOT_DIR=$(mktemp -p /tmp -d) 
    INSTALL_ROOT=/opt 
    SOURCES_DIR=$ROOT_DIR/$PACKAGE-$VERSION 
    BUILD_DIR=$INSTALL_ROOT/$PACKAGE 
    THIRDPARTY_BUILD_DIR=$INSTALL_ROOT/$PACKAGE-thirdparty 
    FORTRAN_EXTRA_FLAGS="-DFORTRAN_EXTRA_FLAGS=-fimplicit-none" 
    git clone --single-branch --branch $VERSION --recursive $URL $SOURCES_DIR 
    mkdir -p $BUILD_DIR $THIRDPARTY_BUILD_DIR 
    ################################################ 
    # Build fempar thirdparty libraries 
    ################################################ 
    cd $THIRDPARTY_BUILD_DIR 
    cmake -DCMAKE_BUILD_TYPE=DEBUG $FORTRAN_EXTRA_FLAGS $SOURCES_DIR/ThirdParty 
    cmake --build . 
    ################################################ 
    # Build fempar library 
    ################################################ 
    cd $BUILD_DIR 
    cmake -DCMAKE_BUILD_TYPE=DEBUG -DFEMPAR_ENABLE_TESTS=ON -DFEMPAR_THIRDPARTY_DIR=$THIRDPARTY_BUILD_DIR -DMPIEXEC_PREFLAGS="--allow-run-as-root -oversubscribe" $SOURCES_DIR 
    cmake --build . 
    ################################################ 
    # Clean sources 
    ################################################ 
    rm -rf $SOURCES_DIR 

%appenv fempar

    FEMPAR_DIR=/opt/fempar
    export FEMPAR_DIR

%apphelp fempar

    echo "------------------------------------------------"
    echo "| Finite Element Multiphysics PARallel solvers |"
    echo "|             http://fempar.org/               |"
    echo "|          ------------------------            |"
    echo "| FEMPAR_DIR   = /opt/fempar                   |"
    echo "| ENABLED_LIBS = MKL, BLAS, LAPACK, QHULL,     |"
    echo "|                HDF5, P4EST (serial)          |"
    echo "------------------------------------------------"

Collection


View on Datalad

Metrics

key value
id /containers/fempar-fempar-gnu-debug_p4est-serial
collection name fempar/fempar
branch experimental
tag gnu-debug_p4est-serial
commit 5b111a2b45eca9cbf1bfe541dc429b003b1b1186
version (container hash) 2436f5a13a2d7d54810589864aa3a392
build date 2019-05-24T15:49:13.426Z
size (MB) 5130
size (bytes) 1580560415
SIF Download URL (please use pull with shub://)
Datalad URL View on Datalad
Singularity Recipe Singularity Recipe on Datalad
We cannot guarantee that all containers will still exist on GitHub.