26 template<
class Flux,
class Equation,
size_t dimension>
30 alsfvm::shared_ptr<reconstruction::Reconstruction>& reconstruction,
52 rvec3& waveSpeed,
bool computeWaveSpeed,
54 const ivec3& end = {0, 0, 0}
62 alsfvm::shared_ptr<reconstruction::Reconstruction> reconstruction;
63 alsfvm::shared_ptr<volume::Volume> left;
64 alsfvm::shared_ptr<volume::Volume> right;
65 alsfvm::shared_ptr<volume::Volume> fluxOutput;
70 void callComputeFlux(
const Equation& equation,
77 template<
bool xDir,
bool yDir,
bool zDir,
size_t direction>
82 int numberOfGhostCells,
87 std::unique_ptr<memory::Memory<real>> waveSpeedBuffer;
90 std::unique_ptr<memory::Memory<real>> waveSpeedBufferOut;
93 std::unique_ptr<memory::Memory<real>>temporaryReductionMemory;
96 size_t temporaryReductionMemoryStorageSizeBytes = 0;
98 void initializeWaveSpeedAndReductionMemory(
int size);
alsfvm::shared_ptr< DeviceConfiguration > & deviceConfiguration
Definition: NumericalFluxFactory.cpp:103
NumericalFluxCUDA(const grid::Grid &grid, alsfvm::shared_ptr< reconstruction::Reconstruction > &reconstruction, const simulator::SimulatorParameters ¶meters, alsfvm::shared_ptr< DeviceConfiguration > &deviceConfiguration)
simulator::SimulatorParameters & parameters
Definition: CellComputerFactory.cpp:60
The Volume class represents a volume (a collection of cells with values for each cell (eg...
Definition: Volume.hpp:30
Definition: NumericalFlux.hpp:25
double real
Definition: types.hpp:65
Definition: Reconstruction.hpp:21
virtual size_t getNumberOfGhostCells()
const grid::Grid & grid
Definition: NumericalFluxFactory.cpp:104
size_t numberOfGhostCells
Definition: VolumeFactory.cpp:90
virtual void computeFlux(const volume::Volume &conservedVariables, rvec3 &waveSpeed, bool computeWaveSpeed, volume::Volume &output, const ivec3 &start={0, 0, 0}, const ivec3 &end={0, 0, 0})
Definition: NumericalFluxCUDA.hpp:27
Various utility functions to implement the tecno flux.
Definition: types.hpp:30
Definition: SimulatorParameters.hpp:22
alsutils::parameters::Parameters Parameters
Definition: Parameters.hpp:24