HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
#include <arrayfunctions.h>
Go to the source code of this file.
Functions | |
void | fillGhostCells (const int *const a_dim, const int a_ngpt, double *const a_u, const int a_nvars, const int a_ndims, const int *const a_periodic) |
void fillGhostCells | ( | const int *const | a_dim, |
const int | a_ngpt, | ||
double *const | a_u, | ||
const int | a_nvars, | ||
const int | a_ndims, | ||
const int *const | a_periodic | ||
) |
Fill the ghost cells of a solution. Note that the solution array must be a global one (not one that is partitioned among MPI ranks). This is not a parallel operation (it will execute independently on multiple MPI ranks, if called by multiple processes).
For periodicity along any dimension, the ghost cells are filled appropriately from the other side of the domain. Otherwise, the interior data is extrapolated by a 4th order polynomial (assuming uniform grid spacing).
a_dim | grid dimensions of solution |
a_ngpt | number of ghost cells |
a_u | solution array |
a_nvars | number of vector components of the solution |
a_ndims | number of spatial dimensions |
a_periodic | periodic or not along each dimension |
Definition at line 17 of file FillGhostCells.c.