diff --git a/utils/containers/sundials/Dockerfile b/utils/containers/sundials/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..6351587729933050b0f2746b70eadf79de31445b --- /dev/null +++ b/utils/containers/sundials/Dockerfile @@ -0,0 +1,52 @@ +FROM ubuntu:20.04 + +WORKDIR /code + +# Get library dependencies +RUN apt-get update -y && \ + apt-get upgrade -y && \ + DEBIAN_FRONTEND="noninteractive" apt-get install -y software-properties-common \ + libnetcdf-dev \ + libnetcdff-dev \ + liblapack-dev \ + libopenblas-dev \ + cmake \ + g++ \ + git \ + libssl-dev \ + make \ + gfortran \ + wget \ + python3-pip \ + gdb &&\ + apt-get autoclean + +RUN pip3 install xarray +RUN pip3 install netcdf4 + +# Install the C++ Actor Framework From Git +RUN git clone https://github.com/actor-framework/actor-framework.git +WORKDIR /code/actor-framework +RUN ./configure +WORKDIR /code/actor-framework/build +RUN make +RUN make test +RUN make install + +WORKDIR /code + +# Install Sundials +RUN wget https://github.com/LLNL/sundials/releases/download/v5.8.0/sundials-5.8.0.tar.gz +RUN tar -xzf sundials-5.8.0.tar.gz +RUN mkdir sundials +WORKDIR /code/sundials +RUN mkdir instdir +RUN mkdir builddir +WORKDIR /code/sundials/builddir +RUN cmake ../../sundials-5.8.0 -DBUILD_FORTRAN_MODULE_INTERFACE=ON -DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_INSTALL_PREFIX=/code/sundials/instdir -DEXAMPLES_INSTALL_PATH=/code/sundials/instdir/examples +RUN make +RUN make install + +# Change workdir for when we attach to this container +WORKDIR /Summa-Actors +ENV LD_LIBRARY_PATH=/Summa-Actors/bin:/usr/local/lib:/code/sundials/instdir/lib \ No newline at end of file diff --git a/utils/containers/sundials/build_docker_container.sh b/utils/containers/sundials/build_docker_container.sh new file mode 100755 index 0000000000000000000000000000000000000000..f67064f8902c0569b5b3b4ede949bdcceccb513e --- /dev/null +++ b/utils/containers/sundials/build_docker_container.sh @@ -0,0 +1,3 @@ +#! /bin/bash + +docker build -t summa-sundials . \ No newline at end of file diff --git a/utils/containers/sundials/launch_docker_container.sh b/utils/containers/sundials/launch_docker_container.sh new file mode 100755 index 0000000000000000000000000000000000000000..4acc705ed4cbf9591cf370daae6f27bb0d32d555 --- /dev/null +++ b/utils/containers/sundials/launch_docker_container.sh @@ -0,0 +1,7 @@ +#! /bin/bash + +export PROJECT_DIR=/Users/kyleklenk/SUMMA-Projects/Summa-Actors +export NA_TEST=/home/local/kck540/NA_Summa_Test +export SUMMA=/Users/kyleklenk/SUMMA-Projects/Summa-Sundials/summa +docker run -d -it --name SUMMA-Sundials --mount type=bind,source=${PROJECT_DIR},target=/Summa-Actors \ + --mount type=bind,source=${SUMMA},target=/SUMMA summa-sundials:latest diff --git a/utils/laugh_tests/celia1990/verification_data/runinfo.txt b/utils/laugh_tests/celia1990/verification_data/runinfo.txt index 574fdb56d4b33a696b760382653f40e2c96981a1..feeb3b8df05117586f9255a5b3f954fb08236900 100644 --- a/utils/laugh_tests/celia1990/verification_data/runinfo.txt +++ b/utils/laugh_tests/celia1990/verification_data/runinfo.txt @@ -1 +1 @@ - Run start time on system: ccyy=2022 - mm=08 - dd=26 - hh=18 - mi=33 - ss=52.626 + Run start time on system: ccyy=2022 - mm=08 - dd=27 - hh=02 - mi=48 - ss=23.700 diff --git a/utils/laugh_tests/celia1990/verification_data/summa_celia1990_G1-1_timestep.nc b/utils/laugh_tests/celia1990/verification_data/summa_celia1990_G1-1_timestep.nc index cd79685a54999fab4f36ba2dc1327cbe8781f026..ba51c0e9abb84add6c3aed5b8a142efa26b4817f 100644 Binary files a/utils/laugh_tests/celia1990/verification_data/summa_celia1990_G1-1_timestep.nc and b/utils/laugh_tests/celia1990/verification_data/summa_celia1990_G1-1_timestep.nc differ