Skip to content

Commit

Permalink
Update Catch2
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallwork23 committed Aug 21, 2024
1 parent f4f49a5 commit 88040cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: 'Domain Decomposition Toolkit CI'
name: Domain Decomposition Toolkit CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-on-ubuntu:
runs-on: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
shell: bash
run: |
sudo apt-get install -y cmake libboost-program-options-dev libhdf5-mpi-dev libcurl4-nss-dev
git clone -b v2.x https://github.com/catchorg/Catch2.git
git clone https://github.com/catchorg/Catch2.git
cd Catch2
cmake -DBUILD_TESTING=OFF -Bbuild -S.
sudo cmake --build build --config Release --target install
Expand Down Expand Up @@ -71,8 +71,7 @@ jobs:
- name: Install dependencies
run: |
brew install cmake
brew extract --version=2.13.9 catch2 homebrew/cask-versions
brew install [email protected]
brew install catch2
brew install boost
brew install hdf5-mpi
brew install pnetcdf
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ The project installs a shared library that can be imported by other CMake projec
### How to run
The binary `decomp` can be used to partition a 2D grid with an optional land mask represented as a netCDF file. By default, the name of the dimensions in the netCDF file are `x` and `y` with the `y` dimension increasing the fastest, and the name of the variable representing the land mask is `mask`. For netCDF files using the enhanced model, we assume the group that contains the information of interest is named `data`. These can be overridden using command-line options. For example:
```
mpirun -n 2 ./decomp grid.nc --dim0 y --dim1 x --mask land_mask
mpirun -n 2 ./decomp --grid grid.nc --dim0 y --dim1 x --mask land_mask
```

The `decomp` tool produces two netCDF-4 files (using the classic data model) named `partition_mask_<num_mpi_processes>.nc` and `partition_metadata_<num_mpi_processes>.nc` with the following layout:
Expand Down

0 comments on commit 88040cc

Please sign in to comment.