Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
block_adjust_cpu.hpp
Go to the documentation of this file.
1/*
2 * This file is part of Vlasiator.
3 * Copyright 2010-2024 Finnish Meteorological Institute and 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
26#ifndef VLASIATOR_BLOCK_ADJUST_CPU_HPP
27#define VLASIATOR_BLOCK_ADJUST_CPU_HPP
28
29#include "spatial_cell_cpu.hpp"
30#include "block_adjust_cpu.hpp"
31
32#include "../definitions.h"
33#include <dccrg.hpp>
34#include <dccrg_cartesian_geometry.hpp>
35
36#ifdef DEBUG_VLASIATOR
37// Re-use spatial cell debug flag also for batch operations
38 #ifndef DEBUG_SPATIAL_CELL
39 #define DEBUG_SPATIAL_CELL
40 #endif
41#endif
42
43namespace spatial_cell {
44 // Following functions act on all requested cells
45
47 dccrg::Dccrg<SpatialCell,dccrg::Cartesian_Geometry>& mpiGrid,
48 const vector<CellID>& cells,
49 const uint popID=0);
50
52 dccrg::Dccrg<spatial_cell::SpatialCell,dccrg::Cartesian_Geometry>& mpiGrid,
53 const vector<CellID>& cells,
54 const uint popID=0);
55
56} // namespaces
57#endif
void adjust_velocity_blocks_in_cells(dccrg::Dccrg< spatial_cell::SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, const vector< CellID > &cellsToAdjust, const uint popID)
void update_velocity_block_content_lists(dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, const vector< CellID > &cells, const uint popID)