Skip to content

Commit

Permalink
Add example of expected output
Browse files Browse the repository at this point in the history
  • Loading branch information
C. Carouge committed May 15, 2023
1 parent 9275bb3 commit a2d174c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
37 changes: 37 additions & 0 deletions docs/user_guide/expected_output.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Expected output from benchcab

Below you will find examples of the expected output printed by `benchcab` to the screen when running the full workflow, with `benchcab run`.

Other sub-commands should print out part of this output.

```
$ benchcab run
Creating src directory: /scratch/tm70/sb8430/bench_example/src
Checking out repositories...
Successfully checked out trunk at revision 9550
Successfully checked out test-branch at revision 9550
Successfully checked out CABLE-AUX at revision 9550
Writing revision number info to rev_number-1.log
Compiling CABLE serially for realisation trunk...
Successfully compiled CABLE for realisation trunk
Compiling CABLE serially for realisation test-branch...
Successfully compiled CABLE for realisation test-branch
Setting up run directory tree for FLUXNET tests...
Creating runs/site/logs directory: /scratch/tm70/sb8430/bench_example/runs/site/logs
Creating runs/site/outputs directory: /scratch/tm70/sb8430/bench_example/runs/site/outputs
Creating runs/site/tasks directory: /scratch/tm70/sb8430/bench_example/runs/site/tasks
Creating task directories...
Setting up tasks...
Successfully setup FLUXNET tasks
Creating PBS job script to run FLUXNET tasks on compute nodes: benchmark_cable_qsub.sh
PBS job submitted: 82479088.gadi-pbs
The CABLE log file for each task is written to runs/site/logs/<task_name>_log.txt
The CABLE standard output for each task is written to runs/site/tasks/<task_name>/out.txt
The NetCDF output for each task is written to runs/site/outputs/<task_name>_out.nc
```

The PBS schedule job should print out the following to the job log file:
```
Running FLUXNET tasks...
Successfully ran FLUXNET tasks
```
10 changes: 7 additions & 3 deletions docs/user_guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ cd bench_example
`benchcab` will stop if it is not run within a work directory with the proper structure.


Currently, `benchcab` can only run CABLE for flux sites. To run the flux site tests, run
Currently, `benchcab` can only run CABLE for flux sites. **To run the whole workflow**, run

```bash
benchcab run
Expand All @@ -90,13 +90,17 @@ The tool will follow the steps:
2. Compile the source code from all branches
3. Setup and launch a PBS job to run the simulations in parallel. When `benchcab` launches the PBS job, it will print out the job ID to the terminal. You can check the status of the job with `qstat`. `benchcab` will not warn you when the simulations are over.

For help on the available options for `benchcab`:
!!! tip "Expected output"

You can see [an example of the expected output](expected_output.md) printed out to the screen by `benchcab run` to check if the tool has worked as expected.

For help on the **available options** for `benchcab`:

```bash
benchcab -h
```

!!! Tip
!!! Tip "Running parts of the workflow"
It is possible to run each step of the workflow separately using sub-commands for `benchcab`. Refer to the help message to learn more.

## Directory structure and files
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@ nav:
- user_guide/index.md
- user_guide/config_options.md
- user_guide/default_science_configurations.md
- user_guide/expected_output.md

0 comments on commit a2d174c

Please sign in to comment.