Skip to content

Commit

Permalink
Remove more macros
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven-Roberts committed Jan 18, 2025
1 parent 6eb2fe0 commit 51a3d8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 4 additions & 5 deletions examples/cvode/CXX_parhyp/cv_heat2D_hypre_ls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,10 @@
#include "sundials/sundials_matrix.h" // definition SUNMatrix

// Macros for problem constants
#define PI SUN_RCONST(3.141592653589793238462643383279502884197169)
#define ZERO SUN_RCONST(0.0)
#define ONE SUN_RCONST(1.0)
#define TWO SUN_RCONST(2.0)
#define EIGHT SUN_RCONST(8.0)
#define PI SUN_RCONST(3.141592653589793238462643383279502884197169)
#define ZERO SUN_RCONST(0.0)
#define ONE SUN_RCONST(1.0)
#define TWO SUN_RCONST(2.0)

// Macro to access (x,y) location in 1D NVector array
#define IDX(x, y, n) ((n) * (y) + (x))
Expand Down
1 change: 0 additions & 1 deletion examples/cvode/superludist/cvAdvDiff_sludist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
#define HALF SUN_RCONST(0.5)
#define ONE SUN_RCONST(1.0)
#define TWO SUN_RCONST(2.0)
#define FIVE SUN_RCONST(5.0)

/* Type : UserData
contains grid constants, parallel machine parameters, work array. */
Expand Down

0 comments on commit 51a3d8e

Please sign in to comment.