Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gardner48 committed May 17, 2024
1 parent 79891a3 commit 491a4c2
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion examples/arkode/CXX_parallel/ark_heat2D_p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1721,7 +1721,7 @@ static int WriteOutput(sunrealtype t, N_Vector u, UserData* udata)
{
int flag;
sunrealtype max = ZERO;
bool outproc = (udata->myid_c == 0);
bool outproc = (udata->myid_c == 0);

if (udata->output > 0)
{
Expand Down
2 changes: 1 addition & 1 deletion examples/arkode/CXX_parhyp/ark_heat2D_hypre_ls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1999,7 +1999,7 @@ static int WriteOutput(sunrealtype t, N_Vector u, UserData* udata)
{
int flag;
sunrealtype max = ZERO;
bool outproc = (udata->myid_c == 0);
bool outproc = (udata->myid_c == 0);

if (udata->output > 0)
{
Expand Down
2 changes: 1 addition & 1 deletion examples/arkode/CXX_parhyp/ark_heat2D_hypre_pfmg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2535,7 +2535,7 @@ static int WriteOutput(sunrealtype t, N_Vector u, UserData* udata)
{
int flag;
sunrealtype max = ZERO;
bool outproc = (udata->myid_c == 0);
bool outproc = (udata->myid_c == 0);

if (udata->output > 0)
{
Expand Down
2 changes: 1 addition & 1 deletion examples/cvode/CXX_parallel/cv_heat2D_p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1621,7 +1621,7 @@ static int WriteOutput(sunrealtype t, N_Vector u, UserData* udata)
{
int flag;
sunrealtype max = ZERO;
bool outproc = (udata->myid_c == 0);
bool outproc = (udata->myid_c == 0);

if (udata->output > 0)
{
Expand Down
2 changes: 1 addition & 1 deletion examples/cvode/CXX_parhyp/cv_heat2D_hypre_ls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1933,7 +1933,7 @@ static int WriteOutput(sunrealtype t, N_Vector u, UserData* udata)
{
int flag;
sunrealtype max = ZERO;
bool outproc = (udata->myid_c == 0);
bool outproc = (udata->myid_c == 0);

if (udata->output > 0)
{
Expand Down
2 changes: 1 addition & 1 deletion examples/cvode/CXX_parhyp/cv_heat2D_hypre_pfmg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2447,7 +2447,7 @@ static int WriteOutput(sunrealtype t, N_Vector u, UserData* udata)
{
int flag;
sunrealtype max = ZERO;
bool outproc = (udata->myid_c == 0);
bool outproc = (udata->myid_c == 0);

if (udata->output > 0)
{
Expand Down
3 changes: 2 additions & 1 deletion examples/sunlinsol/ginkgo/test_sunlinsol_ginkgo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ __global__ void fill_kernel(sunindextype mat_rows, sunindextype mat_cols,
}
#endif

static void fill_matrix(std::shared_ptr<gko::matrix::Csr<sunrealtype, sunindextype>>& matrix)
static void fill_matrix(
std::shared_ptr<gko::matrix::Csr<sunrealtype, sunindextype>>& matrix)
{
sunindextype mat_rows = static_cast<sunindextype>(matrix->get_size()[0]);
sunindextype mat_cols = static_cast<sunindextype>(matrix->get_size()[1]);
Expand Down
3 changes: 1 addition & 2 deletions examples/sunmatrix/ginkgo/test_sunmatrix_ginkgo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,7 @@ static int check_matrix_entry_csr(SUNMatrix A, sunrealtype val, sunrealtype tol)
return failure > 0;
}

static int check_matrix_entry_dense(SUNMatrix A, sunrealtype val,
sunrealtype tol)
static int check_matrix_entry_dense(SUNMatrix A, sunrealtype val, sunrealtype tol)
{
int failure{0};
auto Amat{
Expand Down
3 changes: 1 addition & 2 deletions test/unit_tests/arkode/C_serial/ark_test_innerstepper.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
#define ZERO SUN_RCONST(0.0)
#define ONE SUN_RCONST(1.0)

static int ode_slow_rhs(sunrealtype t, N_Vector y, N_Vector ydot,
void* user_data)
static int ode_slow_rhs(sunrealtype t, N_Vector y, N_Vector ydot, void* user_data)
{
sunrealtype* y_data = N_VGetArrayPointer(ydot);
sunrealtype* ydot_data = N_VGetArrayPointer(ydot);
Expand Down

0 comments on commit 491a4c2

Please sign in to comment.