MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / SpgmrFree

Function SpgmrFree

externalpackages/PVODE/source/spgmr.cpp:411–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409/*************** SpgmrFree *******************************************/
410
411void SpgmrFree(SpgmrMem mem)
412{
413 int i, l_max;
414 real **Hes;
415
416 if (mem == NULL) return;
417
418 l_max = mem->l_max;
419 Hes = mem->Hes;
420
421 FreeVectorArray(mem->V, l_max);
422 for (i=0; i <= l_max; i++) free(Hes[i]);
423 free(Hes);
424 free(mem->givens);
425 N_VFree(mem->xcor);
426 free(mem->yg);
427 N_VFree(mem->vtemp);
428
429 free(mem);
430}
431
432
433/*************** Private Helper Function: FreeVectorArray ************/

Callers 1

CVSpgmrFreeFunction · 0.85

Calls 2

FreeVectorArrayFunction · 0.85
N_VFreeFunction · 0.85

Tested by

no test coverage detected