|
HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Contains the function to set the bottom topography. More...
#include <stdlib.h>#include <math.h>#include <string.h>#include <basic.h>#include <common.h>#include <arrayfunctions.h>#include <io.h>#include <physicalmodels/shallowwater1d.h>#include <hypar.h>#include <mpivars.h>Go to the source code of this file.
Functions | |
| int | ShallowWater1DTopography (void *s, void *m, int idx, int nsims, int *dim_topo) |
Contains the function to set the bottom topography.
Definition in file ShallowWater1DTopography.c.
| int ShallowWater1DTopography | ( | void * | s, |
| void * | m, | ||
| int | idx, | ||
| int | nsims, | ||
| int * | dim_topo | ||
| ) |
Set the bottom topography over the domain - reads the topography data from a file, if available, else sets it to a constant
| s | Solver object of type HyPar |
| m | MPI object of type MPIVariables |
| idx | Index of this simulation |
| nsims | Total number of simulations |
| dim_topo | Grid dimensions of the advection field stored in file |
Definition at line 20 of file ShallowWater1DTopography.c.