fempar/fempar:gnu-release_p4est-serial

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

Singularity Recipe

BootStrap: docker
From: fempar/fempar-env:gnu-release_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=/tmp 
    INSTALL_ROOT=$(mktemp -p /tmp -d) 
    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=RELEASE $FORTRAN_EXTRA_FLAGS $SOURCES_DIR/ThirdParty 
    cmake --build . 
    ################################################ 
    # Build fempar library 
    ################################################ 
    cd $BUILD_DIR 
    cmake -DCMAKE_BUILD_TYPE=RELEASE -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-release_p4est-serial
collection name fempar/fempar
branch experimental
tag gnu-release_p4est-serial
commit 01cfd159285417f479def70e94efb646403a00c6
version (container hash) f6e0a387a6aa5c0c7ba27f9c8942f066
build date 2019-05-24T15:49:13.416Z
size (MB) 4017
size (bytes) 1100193823
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.