Cholla
3.0.1-dev
Cholla - Massively parallel hydro on GPUs
Loading...
Searching...
No Matches
src
grid
spatial_domain_props.h
1
#pragma once
2
3
#include "../global/global.h"
4
5
class
Grav3D
;
6
class
Grid3D
;
7
struct
Parameters
;
8
9
/* This is a collection of 15 quantities that appear in 3 other locations throughout the codebase.
10
*
11
* The struct primarily exists to simplify the process of copying these values from one place to
12
* another. (But it may make sense to refactor other parts of the code in terms of this object)
13
*/
14
struct
SpatialDomainProps
{
15
// number of cells in the local domain
16
int
nx_local, ny_local, nz_local;
17
18
// total number of cells in the entire (global) domain
19
int
nx_total, ny_total, nz_total;
20
21
// Left boundaries of the local domain
22
Real xMin, yMin, zMin;
23
24
// Right boundaries of the local domain
25
Real xMax, yMax, zMax;
26
27
// cell widths
28
Real dx, dy, dz;
29
30
static
SpatialDomainProps
From_Grav3D(
Grav3D
& grav);
31
static
SpatialDomainProps
From_Grid3D(
Grid3D
& grid,
Parameters
* P);
32
};
Grav3D
Definition
grav3D.h:38
Grid3D
Class to create a the gravity object.
Definition
grid3D.h:229
Parameters
Definition
global.h:217
SpatialDomainProps
Definition
spatial_domain_props.h:14
Generated by
1.9.8