HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TimeExplicitRKCleanup.c File Reference

Clean up explicit Runge-Kutta time integrator. More...

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

Go to the source code of this file.

Functions

int TimeExplicitRKCleanup (void *s)
 

Detailed Description

Clean up explicit Runge-Kutta time integrator.

Author
Debojyoti Ghosh

Definition in file TimeExplicitRKCleanup.c.

Function Documentation

int TimeExplicitRKCleanup ( void *  s)

Clean up allocations related to explicit Runge-Kutta time integration: This function frees up the arrays for the Butcher tableaux.

Parameters
sObject of type ExplicitRKParameters

Definition at line 12 of file TimeExplicitRKCleanup.c.

13 {
15  if (params->A) free(params->A);
16  if (params->b) free(params->b);
17  if (params->c) free(params->c);
18  return(0);
19 }
Structure containing the parameters for an explicit Runge-Kutta method.