comses / megadapt

Containerized versions of the megadapt theoretical and empirical models
GNU General Public License v3.0
2 stars 0 forks source link
agent-based-simulation water-management

megadapt

Build Status

CoMSES MEGADAPT repository for containerized megadapt models

Setup

Development

To create an interactive environment to work on developing megadapt run

docker-compose up -d

on the command line

Then go to localhost:8787 in your web browser. Enter the default username and password (rstudio and test respectively).

You should now see an rstudio environment.

Now source the megadapt project in RStudio (File > Open Project) and go to code > src > r > megadaptr in the explorer and click megadaptr.Rproj.

Your R environment is now setup for you.

Press Ctnl+Shift+b to build and reload from megadaptr package from rstudio.

High Performance Computing

Build the singularity images

cd deploy
singularity build --fakeroot megadapt-base.sif megadapt-base.def
singularity build --fakeroot megadapt.sif megadapt.def

Then copy the final image to your hpc environment and run

scp megadapt.sif <server>:~/.

Detailed instructions are in the packages vignette.

Code Organization

Resources