Skip to content

Commit

Permalink
fix translation of commptr to comm
Browse files Browse the repository at this point in the history
  • Loading branch information
balos1 committed Nov 10, 2023
1 parent 8d5e784 commit 4741472
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sundials/sundials_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ int SUNContext_Create(void* commptr, SUNContext* sunctx)
{
SUNProfiler profiler = NULL;
SUNLogger logger = NULL;
#if SUNDIALS_MPI_ENABLED
SUN_Comm comm = commptr == NULL ? SUN_COMM_NULL : *((SUN_Comm*) commptr);
#endif
SUN_Comm comm = commptr == NULL ? SUN_COMM_NULL : *((SUN_Comm*) commptr);

#if defined(SUNDIALS_BUILD_WITH_PROFILING) && !defined(SUNDIALS_CALIPER_ENABLED)
if (SUNProfiler_Create(comm, "SUNContext Default", &profiler)) return (-1);
Expand Down

0 comments on commit 4741472

Please sign in to comment.