Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template for Examples documentation #160

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions examples/KelvinHelmholtz/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
--- # Documentation for the Kelvin-Helmholtz Example
example:
name: Kelvin-Hemholtz Instability
short: KelvinHelmholtz
author: Axel Huebl <a.huebl (at) hzdr.de>, E. Paulo Alves, Thomas Grismayer
maintainer: Axel Huebl <a.huebl (at) hzdr.de>

description: |
... This should be an *extensive* documentation for the
physicists using this example. Quote references
... Example references: *Alves12, *Bussmann13 ...

references:
- Alves12: &Alves12
author ...
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no colon, no spacing as below

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, missing here.

title: ...
journal: ...
year: ...
link: doi link!
- Bussmann13: &Bussmann13
author: ...
title: ...
journal: ...
year: ...
link: doi link!

--- # Run-Time Tests for the Kelvin-Helmholtz Example
test:
- growthRate:
name: Kelvin-Helmholtz e-/e+ Growth Rate Test
description: |
This test runs the simulation with an electrons-positrons
gas and measures the growth rate of the characteristic B_z
field over time.
This is a very crutal test to see if the plasma dynamics
comes up right.
cmakeflag: 0
cfgfile: submit/0016gpus.cfg
gpus: 16

pre-run:
- echo "Starting KHI Growth Rate Test"
- echo "Just printing even more here..."
post-run:
- echo "Check number of particles..."
- echo "Check total energy..."
- echo "Creating Energy(B_z) over time plot..."
- echo "Fit to expected growth rate..."
- echo "Check charge conservation..."
- echo "ok / failed"

- relativistic:
name: Relativistic Kelvin-Helmholtz e-/p+ setting
description: |
This test runs the simulation with an electrons-protons
gas and a relativistic inital velocity of the streams...
cmakeflag: 1
cfgfile: submit/0016gpus.cfg
gpus: 16

pre-run:
- echo "Starting Relativisitic KHI"
post-run:
- echo "Check number of particles..."
- echo "creating Energy(B_z) over time plot..."
- echo "fit ..."
- echo "measure artificial cherenkov / total energy..."
14 changes: 14 additions & 0 deletions examples/limits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- # Limits for run-time tests in the folder examples/
limits:
description: |
This file contains the limits for allowed run-time tests in the
example's `documentation.yml`. Maintainers of the examples
should not exceed this limits, else their tests will be
considered as *failed*.
A zero-value for a limit means *no limit*.

tests: 5 # the maximum number of tests per example
gpus: 16 # the maximum number of GPUs a test can use
walltime: 01:00:00 # the TOTAL walltime that is allowed for ALL
# tests of A SINGLE example to finish,
# including pre- and post-processing