Skip to content

Commit

Permalink
Fixed check to use tmpl vector
Browse files Browse the repository at this point in the history
  • Loading branch information
drreynolds committed Jan 21, 2025
1 parent 6b58d3e commit e899796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arkode/arkode.c
Original file line number Diff line number Diff line change
Expand Up @@ -3398,7 +3398,7 @@ int arkCheckTemporalError(ARKodeMem ark_mem, int* nflagPtr, int* nefPtr,
sunbooleantype arkAllocVec(ARKodeMem ark_mem, N_Vector tmpl, N_Vector* v)
{
/* return failure if N_VClone is not implemented */
if (!ark_mem->tempv1->ops->nvclone) { return SUNFALSE; }
if (!tmpl->ops->nvclone) { return SUNFALSE; }

/* allocate the new vector if necessary */
if (*v == NULL)
Expand Down

0 comments on commit e899796

Please sign in to comment.