Cholla 3.0.1-dev
Cholla - Massively parallel hydro on GPUs
Loading...
Searching...
No Matches
spatial_domain_props.h
1#pragma once
2
3#include "../global/global.h"
4
5class Grav3D;
6class Grid3D;
7struct 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 */
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};
Definition grav3D.h:38
Class to create a the gravity object.
Definition grid3D.h:229
Definition global.h:217
Definition spatial_domain_props.h:14