Skip to content

Commit

Permalink
more merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
balos1 committed Dec 7, 2023
1 parent 51457f4 commit c15c390
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/sundials/sundials_adaptcontroller.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ SUNErrCode SUNAdaptController_EstimateStep(SUNAdaptController C, sunrealtype h,
int p, sunrealtype dsm,
sunrealtype* hnew)
{
int ier = SUN_SUCCESS;
if (C == NULL) { return SUN_ERR_ARG_CORRUPT; }
SUNFunctionBegin(C->sunctx);
SUNAssert(hnew, SUN_ERR_ARG_CORRUPT);
Expand Down
22 changes: 11 additions & 11 deletions src/sundials/sundials_nvector.c
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ SUNErrCode N_VDotProdMultiLocal(int nvec, N_Vector x, N_Vector* Y,
sunrealtype* dotprods)
{
SUNFunctionBegin(x->sunctx);
SUNErrCode err = SUN_SUCCESS;
SUNErrCode ier = SUN_SUCCESS;
int i = 0;

SUNDIALS_MARK_FUNCTION_BEGIN(getSUNProfiler(x));
Expand All @@ -924,31 +924,31 @@ SUNErrCode N_VDotProdMultiLocal(int nvec, N_Vector x, N_Vector* Y,

if (x->ops->nvdotprodmultilocal)
{
err = x->ops->nvdotprodmultilocal(nvec, x, Y, dotprods);
ier = x->ops->nvdotprodmultilocal(nvec, x, Y, dotprods);
}
else if (x->ops->nvdotprodlocal)
{
for (i = 0; i < nvec; i++)
{
dotprods[i] = x->ops->nvdotprodlocal(x, Y[i]);
}
err = SUN_SUCCESS;
ier = SUN_SUCCESS;
}

SUNDIALS_MARK_FUNCTION_END(getSUNProfiler(x));

return err;
return ier;
}

SUNErrCode N_VDotProdMultiAllReduce(int nvec, N_Vector x, sunrealtype* sum)
{
SUNFunctionBegin(x->sunctx);
SUNErrCode err = SUN_SUCCESS;
SUNErrCode ier = SUN_SUCCESS;
SUNDIALS_MARK_FUNCTION_BEGIN(getSUNProfiler(x));
SUNAssert(x->ops->nvdotprodmultiallreduce, SUN_ERR_NOT_IMPLEMENTED);
err = x->ops->nvdotprodmultiallreduce(nvec, x, sum);
ier = x->ops->nvdotprodmultiallreduce(nvec, x, sum);
SUNDIALS_MARK_FUNCTION_END(getSUNProfiler(x));
return err;
return ier;
}

/* ------------------------------------
Expand All @@ -958,12 +958,12 @@ SUNErrCode N_VDotProdMultiAllReduce(int nvec, N_Vector x, sunrealtype* sum)
SUNErrCode N_VBufSize(N_Vector x, sunindextype* size)
{
SUNFunctionBegin(x->sunctx);
SUNErrCode err = SUN_SUCCESS;
SUNErrCode ier = SUN_SUCCESS;
SUNDIALS_MARK_FUNCTION_BEGIN(getSUNProfiler(x));
SUNAssert(x->ops->nvbufsize, SUN_ERR_NOT_IMPLEMENTED);
err = x->ops->nvbufsize(x, size);
ier = x->ops->nvbufsize(x, size);
SUNDIALS_MARK_FUNCTION_END(getSUNProfiler(x));
return (err);
return (ier);
}

SUNErrCode N_VBufPack(N_Vector x, void* buf)
Expand All @@ -974,7 +974,7 @@ SUNErrCode N_VBufPack(N_Vector x, void* buf)
SUNAssert(x->ops->nvbufpack, SUN_ERR_NOT_IMPLEMENTED);
ier = x->ops->nvbufpack(x, buf);
SUNDIALS_MARK_FUNCTION_END(getSUNProfiler(x));
return (erf);
return (ier);
}

SUNErrCode N_VBufUnpack(N_Vector x, void* buf)
Expand Down

0 comments on commit c15c390

Please sign in to comment.