MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / ActuallyDestroySUNMemoryHelper

Function ActuallyDestroySUNMemoryHelper

Src/Extern/SUNDIALS/AMReX_SUNMemory.cpp:101–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 }
100
101 void ActuallyDestroySUNMemoryHelper(SUNMemoryHelper helper)
102 {
103 if (helper == nullptr) { return; }
104 if (helper->ops) { std::free(helper->ops); }
105 std::free(helper);
106 }
107
108 SUNMemoryHelper CreateMemoryHelper(::sundials::Context* sunctx)
109 {

Callers 1

~MemoryHelperMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected