Skip to content

Commit

Permalink
Update docs with info on obtaining test meshes
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarusz committed May 13, 2024
1 parent 3eb9f16 commit 590854a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
27 changes: 19 additions & 8 deletions components/omega/doc/devGuide/QuickStart.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,18 +130,29 @@ script that you can run to build Omega:
./omega_build.sh
```

(omega-dev-quick-start-getting-meshes)=
### Getting test meshes

Some tests require a valid Omega mesh file. Different tests require different meshes. At the moment, mesh files need
to be copied or linked to specifically named files under the `test` directory. Appropriate mesh files can be downloaded from:
- [Ocean Mesh](https://web.lcrc.anl.gov/public/e3sm/inputdata/ocn/mpas-o/oQU240/ocean.QU.240km.151209.nc)
- [Global Mesh](https://web.lcrc.anl.gov/public/e3sm/polaris/ocean/polaris_cache/global_convergence/icos/cosine_bell/Icos480/init/initial_state.230220.nc)
- [Planar Mesh](https://gist.github.com/mwarusz/f8caf260398dbe140d2102ec46a41268/raw/e3c29afbadc835797604369114321d93fd69886d/PlanarPeriodic48x48.nc)
```sh
wget -O ocean_test_mesh.nc https://web.lcrc.anl.gov/public/e3sm/inputdata/ocn/mpas-o/oQU240/ocean.QU.240km.151209.nc
wget -O global_test_mesh.nc https://web.lcrc.anl.gov/public/e3sm/polaris/ocean/polaris_cache/global_convergence/icos/cosine_bell/Icos480/init/initial_state.230220.nc
wget -O planar_test_mesh.nc https://gist.github.com/mwarusz/f8caf260398dbe140d2102ec46a41268/raw/e3c29afbadc835797604369114321d93fd69886d/PlanarPeriodic48x48.nc
ln -sf ocean_test_mesh.nc test/OmegaMesh.nc
ln -sf global_test_mesh.nc test/OmegaSphereMesh.nc
ln -sf planar_test_mesh.nc test/OmegaPlanarMesh.nc
```

### Running CTests

Omega includes several unit tests that run through CTest. These need to be
run on a compute node. Some tests also require a valid Omega mesh file
called `test/OmegaMesh.nc`. An appropriate mesh file can be downloaded from
[mesh.230220.nc](https://web.lcrc.anl.gov/public/e3sm/polaris/ocean/omega_ctest/ocean.QU.240km.151209.nc).
```sh
wget https://web.lcrc.anl.gov/public/e3sm/polaris/ocean/omega_ctest/ocean.QU.240km.151209.nc
mv ocean.QU.240km.151209.nc test/OmegaMesh.nc
```
run on a compute node.

Then, run the tests:
To run the tests:
```sh
./omega_ctest.sh
```
Expand Down
3 changes: 2 additions & 1 deletion components/omega/doc/userGuide/OmegaBuild.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ parallel job launcher such as SLURM srun should be available. You may first
get allocation of an interactive computing node or use batch system.
In addition, you must either copy (or soft link) a mesh file into the same
directory as the unit test executables or specify in a configuration file
(not implemented yet) the path to that mesh input file.
(not implemented yet) the path to that mesh input file. For detailed instructions
on how to obtain appropiate test meshes see {ref}`omega-dev-quick-start-getting-meshes`.

For example, if you are on an interactive computing node, you can run
Omega unit test by running `omega_ctest.sh` as shown below.
Expand Down

0 comments on commit 590854a

Please sign in to comment.