HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Functions to implement the combination technique. More...
Go to the source code of this file.
Functions | |
void | CombineSolutions (SimulationObject *, double *const *const, const int, SimulationObject *, double *const, const double *const ) |
Functions to implement the combination technique.
Definition in file SparseGridsCombinationTechnique.cpp.
void CombineSolutions | ( | SimulationObject * | a_sims_src, |
double *const *const | a_u_src, | ||
const int | a_nsims, | ||
SimulationObject * | a_sim_dst, | ||
double *const | a_u_dst, | ||
const double *const | a_coeffs | ||
) |
This function combines solutions on multiple grids on a target grid using given coefficients.
The source grids may have varying processor layouts, so they are all gathered on to rank 0, interpolated on to the target grid, and combined. The result is partitioned to the destination processor layout.
a_sims_src | Array of simulation objects of type SimulationObject |
a_u_src | Array of source solutions |
a_nsims | Number of simulation objects |
a_sim_dst | simulation object corresponding to destination |
a_u_dst | Destination solution array |
a_coeffs | Combination coefficients for the source solutions |
Definition at line 19 of file CombineSolutions.c.