Skip to content

A dwarf to test tangent-linear and adjoint versions of the CLOUDSC2 cloud microphysics scheme.

License

Notifications You must be signed in to change notification settings

ecmwf-ifs/dwarf-p-cloudsc2-tl-ad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dwarf-p-cloudsc2-tl-ad

dwarf-p-cloudsc2-tl-ad is intended to test tangent-linear and adjoint version of the CLOUDSC2 cloud microphysics scheme of the IFS.

This package is made available to support research collaborations and is not officially supported by ECMWF

Contact

Michael Lange ([email protected]), Willem Deconinck ([email protected]) Balthasar Reuter ([email protected]),

Licence

dwarf-p-cloudsc2-tl-ad is distributed under the Apache Licence Version 2.0. See LICENSE file for details.

Prototypes available

  • dwarf-cloudsc2-nl: The nonlinear forward run only. This has been created from the original CLOUDSC dwarf. The reference results have not been updated, so errors are expected.
  • dwarf-cloudsc2-tl: Tangent linear version of CLOUDSC2 that performs a Taylor test to validate the TL code.
  • dwarf-cloudsc2-ad: Adjoint test of CLOUDSC2 that validates adjoint symmetry.

Download and Installation

The preferred method to install the CLOUDSC dwarf uses the bundle definition shipped in the main repository. For this please install the bundle via:

./cloudsc-bundle create  # Checks out dependency packages
./cloudsc-bundle build [--build-type=debug|bit|release] [--arch=$PWD/arch/ecmwf/machine/compiler/version/env.sh]

Example usage and verification

Following the build, please run the following to set up the environment:

cd build
source env.sh

Example run of the non-linear baseline run on CPU (4 threads):

./bin/dwarf-cloudsc2-nl 4 160000 32

Verify the correctness of the tangent linear version by running a Taylor test for each column with:

./bin/dwarf-cloudsc2-tl 1 100 1

Note that this is not yet ready for performance evaluation.

Verify the correctness of the adjoint, please run:

./bin/dwarf-cloudsc2-ad 1 100 100

Note that this is not yet ready for performance evaluation.

About

A dwarf to test tangent-linear and adjoint versions of the CLOUDSC2 cloud microphysics scheme.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published