Skip to content

Commit af67f18

Browse files
Apply suggestions from code review
Co-authored-by: Steven Roberts <roberts115@llnl.gov>
1 parent 6a7b4a8 commit af67f18

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

doc/shared/RecentChanges.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Fixed the loading of ARKStep's default first order explicit method.
1515
Fixed a CMake bug regarding usage of missing "print_warning" macro
1616
that was only triggered when the deprecated ``CUDA_ARCH`` option was used.
1717

18-
Fixed a memory leak that could occur if if ARKodeSetDefaults is called
18+
Fixed a memory leak that could occur if :c:func:`ARKodeSetDefaults` is called
1919
repeatedly.
2020

2121
**Deprecation Notices**

src/arkode/arkode_arkstep_io.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,6 @@ int arkStep_SetDefaults(ARKodeMem ark_mem)
724724
return (ARK_MEM_FAIL);
725725
}
726726
}
727-
ark_mem->hadapt_mem->hcontroller = NULL;
728727
ark_mem->hadapt_mem->hcontroller = SUNAdaptController_PID(ark_mem->sunctx);
729728
if (ark_mem->hadapt_mem->hcontroller == NULL)
730729
{

0 commit comments

Comments
 (0)