Skip to content

TUM-PIK-ESM/LPJmL-hybrid-photosynthesis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An implementation of the LPJmL photosynthesis and related processes in Julia

Overview

The implementation is based on LPJmL and contains processes for:

  • water stress
  • temperatures tress
  • photosynthesis
  • radiation

Requirements

Requires an installation of Julia (1.8.2). The dependencies can be installed via the package manager ]

pkg> activate .
(LPJ) pkg> instantiate

Usage

Simulation parameters, options and directories are defined in src/default_parameters.jl. Inside the Julia REPL run:

using LPJ

run_lpj()

or from the command line

julia --project=. src/execute.jl

to benchmark the performance e.g. use

julia --project=. src/execute.jl --benchmark --find_lambda "solver"

to enable CUDA for GPUs, the --gpu flag can be used.

Flags

The following flags can be used:

Flag Type Function
--gpu Bool Enable GPU
--benchmark Bool Run performance benchmark
--find_lambda String Algorithm to determin the optimal lambda

Tests

To run all test on a GPU do

julia --project=. test/runtests.jl --gpu

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published