HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Read in initial solution from file. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <basic.h>
#include <common.h>
#include <arrayfunctions_gpu.h>
#include <io.h>
#include <mpivars.h>
#include <simulation_object.h>
Go to the source code of this file.
Functions | |
int | VolumeIntegral (double *, double *, void *, void *) |
int | InitialSolution (void *s, int nsims) |
Read in initial solution from file.
Definition in file InitialSolution.c.
int VolumeIntegral | ( | double * | VolumeIntegral, |
double * | u, | ||
void * | s, | ||
void * | m | ||
) |
Compute the volume integral of the solution.
VolumeIntegral | The computed volume integral |
u | Solution |
s | Solver object of type HyPar |
m | MPI object of type MPIVariables |
Definition at line 14 of file VolumeIntegral.c.
int InitialSolution | ( | void * | s, |
int | nsims | ||
) |
Read in initial solution from file, and compute grid spacing and volume integral of the initial solution
s | Array of simulation objects of type SimulationObject |
nsims | Number of simulation objects |
Definition at line 25 of file InitialSolution.c.