Cholla 3.0.1-dev
Cholla - Massively parallel hydro on GPUs
Loading...
Searching...
No Matches
magnetic_divergence.h
Go to the documentation of this file.
1
9#pragma once
10
11// STL Includes
12
13// External Includes
14
15// Local Includes
16#include "../global/global.h"
17#include "../global/global_cuda.h"
18#include "../grid/grid3D.h"
19#include "../utils/gpu.hpp"
20
25namespace mhd
26{
27// =========================================================================
44__global__ void calculateMagneticDivergence(Real const *dev_conserved, Real *maxDivergence, Real const dx,
45 Real const dy, Real const dz, int const nx, int const ny, int const nz,
46 int const n_cells);
47// =========================================================================
48
49// =========================================================================
62// =========================================================================
63} // end namespace mhd
Class to create a the gravity object.
Definition grid3D.h:229
Namespace for MHD code.
Definition magnetic_divergence.h:26
__global__ void calculateMagneticDivergence(Real const *dev_conserved, Real *maxDivergence, Real const dx, Real const dy, Real const dz, int const nx, int const ny, int const nz, int const n_cells)
Kernel to compute the maximum divergence of the magnetic field in the grid. Uses reduction_utilities:...
Real checkMagneticDivergence(Grid3D const &G)
Compute the maximum magnetic divergence in the grid and report an error if it exceeds the magnetic di...