PLUTO  4.4-patch2
Functions
plm_coeffs.c File Reference

Compute linear reconstruction coefficients. More...

#include "pluto.h"

Functions

void PLM_CoefficientsSet (Grid *grid)
 
void PLM_CoefficientsGet (PLM_Coeffs *plm_coeffs, int dir)
 

Detailed Description

Reconstruction coefficients needed for linear interpolation are computed in the PLM_CoefficientsSet() each time a new grid is created. There's a different set of 1D coefficients in each direction.

The function PLM_CoefficientsGet() can be used to obtain a set of coefficients along a desired direction.

References

Authors
A. Mignone (migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it)
Date
Apr 20, 2019

Function Documentation

◆ PLM_CoefficientsGet()

void PLM_CoefficientsGet ( PLM_Coeffs plm_coeffs,
int  dir 
)

Retrieve reconstruction coefficients in the PLM_Coeffs structure. This function can be called only if the previous one has been completed already.

Parameters
[out]plm_coeffsa pointer to a PLM_Coeffs structure containing the 1D coefficients needed for reconstruction
[in]dirthe desired direction

◆ PLM_CoefficientsSet()

void PLM_CoefficientsSet ( Grid grid)

Compute interpolation coefficients for linear reconstruction.

Parameters
[in]gridpointer to Grid structure
Returns
This function has no return value