Skip to content

Commit

Permalink
fix set but unused warning
Browse files Browse the repository at this point in the history
  • Loading branch information
balos1 committed Jun 30, 2023
1 parent e4cce85 commit 4bc3ecc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/arkode/arkode_sprkstep.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ int SPRKStepEvolve(void* arkode_mem, realtype tout, N_Vector yout,
realtype* tret, int itask)
{
/* unpack ark_mem, call arkEvolve, and return */
ARKodeMem ark_mem;
int retval = 0;
ARKodeMem ark_mem = NULL;
if (arkode_mem == NULL)
{
arkProcessError(NULL, ARK_MEM_NULL, "ARKODE::SPRKStep", "SPRKKStepGetDky",
Expand All @@ -308,8 +308,8 @@ int SPRKStepEvolve(void* arkode_mem, realtype tout, N_Vector yout,
int SPRKStepGetDky(void* arkode_mem, realtype t, int k, N_Vector dky)
{
/* unpack ark_mem, call arkGetDky, and return */
ARKodeMem ark_mem;
int retval = 0;
ARKodeMem ark_mem = NULL;
if (arkode_mem == NULL)
{
arkProcessError(NULL, ARK_MEM_NULL, "ARKODE::SPRKStep", "SPRKKStepGetDky",
Expand Down

0 comments on commit 4bc3ecc

Please sign in to comment.