HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
TimeGLMGEECleanup.c File Reference

Clean up the _GLM_GEE_ time integrator. More...

#include <stdlib.h>
#include <string.h>
#include <timeintegration.h>

Go to the source code of this file.

Functions

int TimeGLMGEECleanup (void *s)
 

Detailed Description

Clean up the _GLM_GEE_ time integrator.

Author
Debojyoti Ghosh

Definition in file TimeGLMGEECleanup.c.

Function Documentation

◆ TimeGLMGEECleanup()

int TimeGLMGEECleanup ( void *  s)

Clean up allocations for the GLM-GEE (_GLM_GEE_) time integration method: This function frees the arrays used to store the Butcher tableaux

Parameters
sObject of type GLMGEEParameters

Definition at line 14 of file TimeGLMGEECleanup.c.

15 {
16  GLMGEEParameters *params = (GLMGEEParameters*) s;
17  if (params->A_yyt ) free(params->A_yyt);
18  if (params->B_yyt ) free(params->B_yyt);
19  if (params->C_yyt ) free(params->C_yyt);
20  if (params->D_yyt ) free(params->D_yyt);
21  if (params->c_yyt ) free(params->c_yyt);
22  if (params->A_yeps) free(params->A_yeps);
23  if (params->B_yeps) free(params->B_yeps);
24  if (params->C_yeps) free(params->C_yeps);
25  if (params->D_yeps) free(params->D_yeps);
26  if (params->c_yeps) free(params->c_yeps);
27  return(0);
28 }
Structure containing the parameters for the General Linear Methods with Global Error Estimators (GLM-...