Skip to content

Commit

Permalink
Build/test how to on its own page
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertPincus committed Dec 2, 2023
1 parent d99baf3 commit 200f7b4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 18 deletions.
23 changes: 23 additions & 0 deletions doc/jekyll_site/how-tos/build-and-test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
layout: "page"
title: "How to build and test"
---
# How-to guides will live here

## How-to: build, run, and test the libraries, examples, and unit-testing codes.

1. Set environment variables `FC` (the Fortran 2003 compiler) and `FCFLAGS` (compiler flags). Examples are provided in the `Compiler-flags.md` file.
2. Set environment variables `RRTMGP_ROOT` to the top-level RTE+RRTMGP directory and `RTE_KERNELS` to `accel` if you want the OpenACC/OpenMP kernels rather than the default.
3. `make libs` in the top-level directory will make the RTE and RRTMGP libraries.
4. The examples and testing codes use netCDF. Set the variables `NCHOME` and `NFHOME` to the roots of the C and Fortran netCDF installations.
5. Download the RRTMGP data either by cloning the [data repository](https://github.com/earth-system-radiation/rrtmgp-data) or from the [Zenodo archive](https://doi.org/10.5281/zenodo.7988260). Set the environment variable `RRTMGP_DATA` to the root of this directory.
6. `make tests` to will build and run the test.
7. Evaluating the results of the tests requires `Python` and the packages described in `environment.yml`. Comparisons can be made with `make check` in the top level directory.
8. `make` invoked without a target in the top level attempts all three steps.



### Building and testing using (Gnu) make

Sergey Kosukhin and his colleagues at the Max Planck Institute for Meteorology
maintain the `autoconf` branch which adds Gnu `autotools` building to `main` branch.
20 changes: 2 additions & 18 deletions doc/jekyll_site/how-tos/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,6 @@
layout: "page"
title: "How-to guides"
---
# How-to guides will live here
# How-to guides

## How-to: build, run, and test the libraries, examples, and unit-testing codes.

1. Set environment variables `FC` (the Fortran 2003 compiler) and `FCFLAGS` (compiler flags). Examples are provided in the `Compiler-flags.md` file.
2. Set environment variables `RRTMGP_ROOT` to the top-level RTE+RRTMGP directory and `RTE_KERNELS` to `accel` if you want the OpenACC/OpenMP kernels rather than the default.
3. `make libs` in the top-level directory will make the RTE and RRTMGP libraries.
4. The examples and testing codes use netCDF. Set the variables `NCHOME` and `NFHOME` to the roots of the C and Fortran netCDF installations.
5. Download the RRTMGP data either by cloning the [data repository](https://github.com/earth-system-radiation/rrtmgp-data) or from the [Zenodo archive](https://doi.org/10.5281/zenodo.7988260). Set the environment variable `RRTMGP_DATA` to the root of this directory.
6. `make tests` to will build and run the test.
7. Evaluating the results of the tests requires `Python` and the packages described in `environment.yml`. Comparisons can be made with `make check` in the top level directory.
8. `make` invoked without a target in the top level attempts all three steps.



### Building and testing using (Gnu) make

Sergey Kosukhin and his colleagues at the Max Planck Institute for Meteorology
maintain the `autoconf` branch which adds Gnu `autotools` building to `main` branch.
- How to [build and test](https://earth-system-radiation.github.io/rte-rrtmgp/how-tos/build-and-test.html)

0 comments on commit 200f7b4

Please sign in to comment.