SpECTRE
v2023.10.11

On elements using DG, reconstructs the interface data from a neighboring element doing subcell. More...
#include <NeighborPackagedData.hpp>
Static Public Member Functions  
template<typename DbTagsList >  
static DirectionalIdMap< 1, DataVector >  apply (const db::DataBox< DbTagsList > &box, const std::vector< DirectionalId< 1 > > &mortars_to_reconstruct_to) 
On elements using DG, reconstructs the interface data from a neighboring element doing subcell.
The neighbor's packaged data needed by the boundary correction is computed and returned so that it can be used for solving the Riemann problem on the interfaces.
Note that for strict conservation the Riemann solve should be done on the subcells, with the correction being projected back to the DG interface. However, in practice such strict conservation doesn't seem to be necessary and can be explained by that we only need strict conservation at shocks, and if one element is doing DG, then we aren't at a shock.