Skip to content

Commit

Permalink
Tracking the latest PETSc revision.
Browse files Browse the repository at this point in the history
To clarify our dependencies, we note the tested PETSc revision in our README,
and refer to the appropriate Docker image tag in our workflow files.

The only code change needed to adopt this new rev is the location of the
khash header files.
  • Loading branch information
jeff-cohere committed Jul 26, 2021
1 parent 5b0dfec commit 3552ecf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto_pr_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
# This job builds the box model and runs our test suite.
build:
runs-on: ${{ matrix.os }}
container: coherellc/tdycore-petsc:latest
container: coherellc/tdycore-petsc:c29323cac9f

# A build matrix storing all desired configurations.
strategy:
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ TDycores provides two dynamical cores:
Both dycores can use meshes with hexahedral or triangular prismatic cells
with planar faces. The prismatic cells are aligned logically along a z axis.

## Dependencies

`TDycore` uses [PETSc](https://petsc.org/release/), tracking the
[main branch](https://gitlab.com/petsc/petsc) fairly closely. Currently,
`TDycore` is tested against revision `c29323cac9f`.

## More information

Check out the [Wiki](https://github.com/TDycores-Project/TDycore/wiki) for
documentation, including instructions for
[building and installing TDycore](https://github.com/TDycores-Project/TDycore/wiki/Building-and-Installing-TDycore).
2 changes: 1 addition & 1 deletion include/tdytimers.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ PETSC_EXTERN PetscErrorCode TDyEnableTimers(void);

// To accomplish this, we use a hash map with string keys and PetscLogEvent
// values. PETSc ships with khash, so let's appropriate it.
#include <petsc/private/kernels/khash.h>
#include <petsc/private/khash/khash.h>
KHASH_MAP_INIT_STR(TDY_TIMER_MAP, PetscLogEvent)
PETSC_EXTERN khash_t(TDY_TIMER_MAP)* TDY_TIMERS;

Expand Down
2 changes: 1 addition & 1 deletion tools/build-petsc-docker-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi

DOCKERHUB_USER=coherellc
IMAGE_NAME=tdycore-petsc
TAG=latest
TAG=$PETSC_HASH

# Build the image locally.
mkdir -p docker-build
Expand Down

0 comments on commit 3552ecf

Please sign in to comment.