HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Functions to combine solutions on multiple grids on a target grid. More...
#include <arrayfunctions.h>
#include <mathfunctions.h>
#include <mpivars.h>
#include <simulation_object.h>
Go to the source code of this file.
Functions | |
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) |
Functions to combine solutions on multiple grids on a target grid.
Definition in file CombineSolutions.c.
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.