Skip to content

Adding new example lake

QuinnThomas edited this page May 19, 2022 · 1 revision

You can add a new example lake that is automatically run using updated GLM-AED code.

  1. Add lake directory to glm-examples subdirectory. The directory of the lake can not have spaces in the name.
  2. Add configuration and driver files to the new lake directory. In the glm3.nml, be sure that the output.nc and lake.csv are written to an output subdirectory.
  3. Add lake to the github action file glm-aed/.github/workflows/compile.yml. You should add it after the other example lakes. Here is an example:
      - name: run GLM Lake Alex
        run: |
          cd glm-examples/LakeAlexandrina
          $GITHUB_WORKSPACE/glm-source/GLM/glm
  1. Update .gitignore to include the output.nc file from the new example. For example this is the line that should be added for LakeAlexandrina:
glm-examples/LakeAlexandrina/output/output.nc
  1. Add plotting of lake output to glm-aed/glm-examples/example_lakes.Rmd. Use the plotting code for the other lakes as a template.

Background

  1. Introduction
  2. Publications

Getting started

  1. Downloading
  2. Running the model
  3. glm.nml configuration file
  4. Tutorials & examples
  5. Navigating GLM outputs

Advanced use

  1. Command line options
  2. Restarting a simulation
  3. Customising the WQ setup
  4. Adding a new example lake
  5. Using GLM in R

Developer guide

  1. Downloading the code
  2. Compiling the code
  3. Updating existing submodule state
  4. Adding new submodules
  5. Using GLM as a linked library

FAQs
License

Clone this wiki locally