HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
SparseGridsOutputSolution.cpp
Go to the documentation of this file.
1 
7 
8 int OutputSolution (void*,int, double);
9 
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 */
27 
28  /* Write the full grid solution */
29  ::OutputSolution((void*)m_sim_fg, 1, a_time);
30 
31  return;
32 }
33 
std::vector< SimulationObject > m_sims_sg
int OutputSolution(void *, int, double)
void CombinationTechnique(SimulationObject *const)