Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
spatial_cell_wrapper.hpp
Go to the documentation of this file.
1/*
2 * This file is part of Vlasiator.
3 * Copyright 2010-2023 Finnish Meteorological Institute, University of Helsinki
4 *
5 * For details of usage, see the COPYING file and read the "Rules of the Road"
6 * at http://www.physics.helsinki.fi/vlasiator/
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 */
25#ifndef SPATIAL_CELL_WRAPPER_H
26#define SPATIAL_CELL_WRAPPER_H
27
28#ifdef USE_GPU
29#include "spatial_cell_gpu.hpp"
30#else
31#include "spatial_cell_cpu.hpp"
32#endif
33
34typedef Parameters P; // Heeded in numerous files which include this one
35
40#define error_velocity_cell 0xFFFFFFFFu
41
46#define error_velocity_cell_index 0xFFFFFFFFu
47
48namespace spatial_cell {
49
50 namespace Transfer {
51 static const uint64_t NONE = 0;
52 static const uint64_t CELL_PARAMETERS = (1ull<<0);
53 static const uint64_t CELL_DERIVATIVES = (1ull<<1);
54 static const uint64_t VEL_BLOCK_LIST_STAGE1 = (1ull<<2);
55 static const uint64_t VEL_BLOCK_LIST_STAGE2 = (1ull<<3);
56 static const uint64_t VEL_BLOCK_DATA = (1ull<<4);
57 static const uint64_t VEL_BLOCK_PARAMETERS = (1ull<<6);
58 static const uint64_t VEL_BLOCK_WITH_CONTENT_STAGE1 = (1ull<<7);
59 static const uint64_t VEL_BLOCK_WITH_CONTENT_STAGE2 = (1ull<<8);
60 static const uint64_t CELL_SYSBOUNDARYFLAG = (1ull<<9);
61 static const uint64_t CELL_E = (1ull<<10);
62 static const uint64_t CELL_EDT2 = (1ull<<11);
63 static const uint64_t CELL_PERB = (1ull<<12);
64 static const uint64_t CELL_PERBDT2 = (1ull<<13);
65 static const uint64_t CELL_RHOM_V = (1ull<<14);
66 static const uint64_t CELL_RHOMDT2_VDT2 = (1ull<<15);
67 static const uint64_t CELL_RHOQ = (1ull<<16);
68 static const uint64_t CELL_RHOQDT2 = (1ull<<17);
69 static const uint64_t CELL_BVOL = (1ull<<18);
70 static const uint64_t CELL_BVOL_DERIVATIVES = (1ull<<19);
71 static const uint64_t CELL_DIMENSIONS = (1ull<<20);
72 static const uint64_t CELL_IOLOCALCELLID = (1ull<<21);
73 static const uint64_t NEIGHBOR_VEL_BLOCK_DATA = (1ull<<22);
74 static const uint64_t CELL_HALL_TERM = (1ull<<23);
75 static const uint64_t CELL_P = (1ull<<24);
76 static const uint64_t CELL_PDT2 = (1ull<<25);
77 static const uint64_t POP_METADATA = (1ull<<26);
78 static const uint64_t RANDOMGEN = (1ull<<27);
79 static const uint64_t CELL_GRADPE_TERM = (1ull<<28);
80 static const uint64_t REFINEMENT_PARAMETERS = (1ull<<29);
81 //all data
82 static const uint64_t ALL_DATA =
88
89 //all data, except the distribution function
90 static const uint64_t ALL_SPATIAL_DATA =
95 }
96
97}
98
99#endif
Parameters P
static const uint64_t CELL_GRADPE_TERM
static const uint64_t VEL_BLOCK_PARAMETERS
static const uint64_t CELL_P
static const uint64_t REFINEMENT_PARAMETERS
static const uint64_t CELL_PERB
static const uint64_t CELL_SYSBOUNDARYFLAG
static const uint64_t CELL_BVOL
static const uint64_t RANDOMGEN
static const uint64_t ALL_DATA
static const uint64_t CELL_RHOM_V
static const uint64_t CELL_RHOMDT2_VDT2
static const uint64_t CELL_E
static const uint64_t POP_METADATA
static const uint64_t CELL_PERBDT2
static const uint64_t CELL_EDT2
static const uint64_t VEL_BLOCK_LIST_STAGE2
static const uint64_t CELL_BVOL_DERIVATIVES
static const uint64_t VEL_BLOCK_LIST_STAGE1
static const uint64_t CELL_PDT2
static const uint64_t CELL_DERIVATIVES
static const uint64_t CELL_IOLOCALCELLID
static const uint64_t VEL_BLOCK_WITH_CONTENT_STAGE1
static const uint64_t ALL_SPATIAL_DATA
static const uint64_t VEL_BLOCK_DATA
static const uint64_t CELL_RHOQ
static const uint64_t NEIGHBOR_VEL_BLOCK_DATA
static const uint64_t VEL_BLOCK_WITH_CONTENT_STAGE2
static const uint64_t CELL_PARAMETERS
static const uint64_t CELL_RHOQDT2
static const uint64_t CELL_DIMENSIONS
static const uint64_t NONE
static const uint64_t CELL_HALL_TERM