Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
cpu_acc_map.cpp File Reference
#include <cmath>
#include <algorithm>
#include <utility>
#include "vec.h"
#include "../object_wrapper.h"
#include "cpu_acc_sort_blocks.hpp"
#include "cpu_acc_load_blocks.hpp"
#include "cpu_1d_pqm.hpp"
#include "cpu_1d_ppm.hpp"
#include "cpu_1d_plm.hpp"
#include "cpu_acc_map.hpp"
Include dependency graph for cpu_acc_map.cpp:

Go to the source code of this file.

Functions

vmesh::LocalID addVelocityBlock (const vmesh::GlobalID &blockGID, vmesh::VelocityMesh *vmesh, vmesh::VelocityBlockContainer *blockContainer)
void swapBlockIndices (velocity_block_indices_t &blockIndices, const uint dimension)
bool map_1d (SpatialCell *spatial_cell, const uint popID, Real in_intersection, Real in_intersection_di, Real in_intersection_dj, Real in_intersection_dk, const uint dimension)

Function Documentation

◆ addVelocityBlock()

vmesh::LocalID addVelocityBlock ( const vmesh::GlobalID & blockGID,
vmesh::VelocityMesh * vmesh,
vmesh::VelocityBlockContainer * blockContainer )

Attempt to add the given velocity block to the given velocity mesh. If the block was added to the mesh, its data is set to zero values and velocity block parameters are calculated.

Parameters
blockGIDGlobal ID of the added velocity block.
vmeshVelocity mesh where the block is added.
blockContainerVelocity block data container.
Returns
Local ID of the added block. If the block was not added, the local ID of the null velocity block is returned instead.

Definition at line 47 of file cpu_acc_map.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ map_1d()

bool map_1d ( SpatialCell * spatial_cell,
const uint popID,
Real in_intersection,
Real in_intersection_di,
Real in_intersection_dj,
Real in_intersection_dk,
const uint dimension )

Definition at line 121 of file cpu_acc_map.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ swapBlockIndices()

void swapBlockIndices ( velocity_block_indices_t & blockIndices,
const uint dimension )
inline

Definition at line 85 of file cpu_acc_map.cpp.

Here is the caller graph for this function: