Skip to content

jpmattern/dualnum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dualnum

An example implementation of dual number-based tangent linear and adjoint models. This repository contains the code for a simple nutrient-phytoplankton-zooplankton (NPZ) model, including its nonlinear code and dual number-based tangent linear and adjoint code. It also includes a code to test the consistency between models.

Getting Started

All that is needed is a Python 3 installation with numpy and (optionally) matplotlib.

Running the tests

To see if it is all working, try running the NPZ nonlinear and tangent linear model (requires matplotlib):

python3 NPZmodel.py

or perform a series of dot-product tests:

python3 dotproduct_test.py

Authors

License

This project is licensed under the Apache License - see the LICENSE.md file for details.

About

dual number-based example implementation of tangent linear and adjoint model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages