HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
SparseGridsOutputSolution.cpp
Go to the documentation of this file.
1
6
#include <
sparse_grids_simulation.h
>
7
8
int
OutputSolution
(
void
*,
int
,
double
);
9
11
void
SparseGridsSimulation::OutputSolution
(
double
a_time )
12
{
13
/* if asked for, write individual sparse grids solutions */
14
if
(
m_write_sg_solutions
== 1) {
15
for
(
int
ns = 0; ns <
m_nsims_sg
; ns++) {
16
if
(
m_sims_sg
[ns].solver.PhysicsOutput) {
17
m_sims_sg
[ns].solver.PhysicsOutput( &(
m_sims_sg
[ns].solver),
18
&(
m_sims_sg
[ns].mpi),
19
a_time );
20
}
21
}
22
::OutputSolution
((
void
*)
m_sims_sg
.data(),
m_nsims_sg
, a_time);
23
}
24
25
/* Combine the sparse grids solutions to full grid */
26
CombinationTechnique
(
m_sim_fg
);
27
28
/* Write the full grid solution */
29
::OutputSolution
((
void
*)
m_sim_fg
, 1, a_time);
30
31
return
;
32
}
33
SparseGridsSimulation::CombinationTechnique
void CombinationTechnique(SimulationObject *const)
Definition:
SparseGridsCombinationTechnique.cpp:23
sparse_grids_simulation.h
SparseGridsSimulation::m_sims_sg
std::vector< SimulationObject > m_sims_sg
Definition:
sparse_grids_simulation.h:231
OutputSolution
int OutputSolution(void *, int, double)
Definition:
OutputSolution.cpp:27
SparseGridsSimulation::m_sim_fg
SimulationObject * m_sim_fg
Definition:
sparse_grids_simulation.h:230
SparseGridsSimulation::OutputSolution
void OutputSolution(double)
Definition:
SparseGridsOutputSolution.cpp:11
SparseGridsSimulation::m_nsims_sg
int m_nsims_sg
Definition:
sparse_grids_simulation.h:214
SparseGridsSimulation::m_write_sg_solutions
int m_write_sg_solutions
Definition:
sparse_grids_simulation.h:225