#include <vector>
#include <limits>
#include <dccrg.hpp>
#include <dccrg_cartesian_geometry.hpp>
#include "../definitions.h"
#include "../common.h"
#include "../spatial_cells/spatial_cell_wrapper.hpp"
Go to the source code of this file.
◆ nMom1
◆ nMom2
◆ gpu_calculateMoments_R()
| void gpu_calculateMoments_R |
( |
dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & | mpiGrid, |
|
|
const std::vector< CellID > & | cells_in, |
|
|
const bool | computeSecond, |
|
|
const bool | initialCompute ) |
Note: there is no single-cell GPU-only version of moments calculations, (calculateCellMoments) as that task is achieved through the ARCH-interface with no performance loss. Calculate zeroth, first, and (possibly) second bulk velocity moments for the given spatial cell. The calculated moments include contributions from all existing particle populations. The calculated moments are stored to SpatialCell::parameters in _R variables.
- Parameters
-
| mpiGrid | Parallel grid library. |
| cells | Vector containing the spatial cells to be calculated. |
| computeSecond | If true, second velocity moments are calculated. |
| initialCompute | If true, force re-calculation of outflow L1 sysboundary cell moments. (otherwise skipped as their VDF contents are not kept up to date) |
Definition at line 249 of file gpu_moments.cpp.
◆ gpu_calculateMoments_V()
| void gpu_calculateMoments_V |
( |
dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & | mpiGrid, |
|
|
const std::vector< CellID > & | cells_in, |
|
|
const bool | computeSecond, |
|
|
const bool | initialCompute ) |
Calculate zeroth, first, and (possibly) second bulk velocity moments for the given spatial cell. The calculated moments include contributions from all existing particle populations. The calculated moments are stored to SpatialCell::parameters in _V variables.
- Parameters
-
| mpiGrid | Parallel grid library. |
| cells | Vector containing the spatial cells to be calculated. |
| computeSecond | If true, second velocity moments are calculated. |
| initialCompute | If true, force re-calculation of outflow L1 sysboundary cell moments. (otherwise skipped as their VDF contents are not kept up to date) |
Definition at line 469 of file gpu_moments.cpp.