Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganized organization of checkNvector routines #647

Merged
merged 11 commits into from
Jan 22, 2025
3 changes: 3 additions & 0 deletions src/arkode/arkode.c
Original file line number Diff line number Diff line change
Expand Up @@ -3397,6 +3397,9 @@ 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 (!tmpl->ops->nvclone) { return SUNFALSE; }
drreynolds marked this conversation as resolved.
Show resolved Hide resolved

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