Skip to content

Commit

Permalink
Add TESTARGS and update sample runs
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriabarra committed Jul 27, 2020
1 parent 6f4a021 commit a6185a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/fluids/shallow-water/qfunctions/geostrophic.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ CEED_QFUNCTION(SWExplicit)(void *ctx, CeedInt Q, const CeedScalar *const *in,
// *INDENT-OFF*
// Setup
// -- Compute latitude
const CeedScalar theta = asin(X[2][i] / R);
const CeedScalar theta = asin(X[2][i] / R);
// -- Compute Coriolis parameter
const CeedScalar f = 2*Omega*sin(theta);
// -- Interp in
Expand Down
8 changes: 3 additions & 5 deletions examples/fluids/shallow-water/shallowwater.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@
// Sample runs:
//
// shallow-water
// shallow-water -ceed /cpu/self
// shallow-water -ceed /gpu/occa
// shallow-water -ceed /cpu/occa
// shallow-water -ceed /omp/occa
// shallow-water -ceed /ocl/occa
// shallow-water -ceed /cpu/self -dm_refine 1 snes_fd_color -ts_fd_color -degree 1
// shallow-water -ceed /gpu/occa -dm_refine 1 snes_fd_color -ts_fd_color -degree 1
//
//TESTARGS -ceed {ceed_resource} -test -dm_refine 1 snes_fd_color -ts_fd_color -degree 1

/// @file
/// Shallow-water equations example using PETSc
Expand Down
2 changes: 1 addition & 1 deletion examples/fluids/shallow-water/src/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ PetscErrorCode SetupPanelCoordTransformations(DM dm, PhysicsContext phys_ctx,

// Preallocate sparse matrix
ierr = MatCreateBAIJ(comm, 2, PETSC_DECIDE, PETSC_DECIDE, 4*gdofs/ncomp,
4*gdofs/ncomp, 2, NULL, 0, NULL, T); CHKERRQ(ierr);
4*gdofs/ncomp, 2, NULL, 0, NULL, T); CHKERRQ(ierr);
for (PetscInt i=0; i < 4*gdofs/ncomp; i++) {
ierr = MatSetValue(*T, i, i, 1., INSERT_VALUES); CHKERRQ(ierr);
}
Expand Down

0 comments on commit a6185a2

Please sign in to comment.