Skip to content

Commit a6185a2

Browse files
committed
Add TESTARGS and update sample runs
1 parent 6f4a021 commit a6185a2

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

examples/fluids/shallow-water/qfunctions/geostrophic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ CEED_QFUNCTION(SWExplicit)(void *ctx, CeedInt Q, const CeedScalar *const *in,
133133
// *INDENT-OFF*
134134
// Setup
135135
// -- Compute latitude
136-
const CeedScalar theta = asin(X[2][i] / R);
136+
const CeedScalar theta = asin(X[2][i] / R);
137137
// -- Compute Coriolis parameter
138138
const CeedScalar f = 2*Omega*sin(theta);
139139
// -- Interp in

examples/fluids/shallow-water/shallowwater.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@
3030
// Sample runs:
3131
//
3232
// shallow-water
33-
// shallow-water -ceed /cpu/self
34-
// shallow-water -ceed /gpu/occa
35-
// shallow-water -ceed /cpu/occa
36-
// shallow-water -ceed /omp/occa
37-
// shallow-water -ceed /ocl/occa
33+
// shallow-water -ceed /cpu/self -dm_refine 1 snes_fd_color -ts_fd_color -degree 1
34+
// shallow-water -ceed /gpu/occa -dm_refine 1 snes_fd_color -ts_fd_color -degree 1
3835
//
36+
//TESTARGS -ceed {ceed_resource} -test -dm_refine 1 snes_fd_color -ts_fd_color -degree 1
3937

4038
/// @file
4139
/// Shallow-water equations example using PETSc

examples/fluids/shallow-water/src/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ PetscErrorCode SetupPanelCoordTransformations(DM dm, PhysicsContext phys_ctx,
190190

191191
// Preallocate sparse matrix
192192
ierr = MatCreateBAIJ(comm, 2, PETSC_DECIDE, PETSC_DECIDE, 4*gdofs/ncomp,
193-
4*gdofs/ncomp, 2, NULL, 0, NULL, T); CHKERRQ(ierr);
193+
4*gdofs/ncomp, 2, NULL, 0, NULL, T); CHKERRQ(ierr);
194194
for (PetscInt i=0; i < 4*gdofs/ncomp; i++) {
195195
ierr = MatSetValue(*T, i, i, 1., INSERT_VALUES); CHKERRQ(ierr);
196196
}

0 commit comments

Comments
 (0)