1 #include "../coordinates/coordinates.hpp"
2 #include "../reconstruct/interpolation.hpp"
11 if (pmb->block_size.nx2 > 1)
13 if (pmb->block_size.nx3 > 1)
20 int is = pmb->is, js = pmb->js, ks = pmb->ks;
21 int ie = pmb->ie, je = pmb->je, ke = pmb->ke;
24 for (
int k = ks; k <= ke; ++k)
25 for (
int j = js;
j <= je; ++
j)
26 for (
int i = is; i <= ie + 1; ++i) {
27 v1f1_(k,
j, i) = interp_cp4(w(IVX, k,
j, i - 2), w(IVX, k,
j, i - 1),
28 w(IVX, k,
j, i), w(IVX, k,
j, i + 1));
30 if (pmb->block_size.nx2 > 1)
31 for (
int k = ks; k <= ke; ++k)
32 for (
int j = js;
j <= je + 1; ++
j)
33 for (
int i = is; i <= ie; ++i) {
34 v2f2_(k,
j, i) = interp_cp4(w(IVY, k,
j - 2, i), w(IVY, k,
j - 1, i),
35 w(IVY, k,
j, i), w(IVY, k,
j + 1, i));
37 if (pmb->block_size.nx3 > 1)
38 for (
int k = ks; k <= ke + 1; ++k)
39 for (
int j = js;
j <= je; ++
j)
40 for (
int i = is; i <= ie; ++i) {
41 v3f3_(k,
j, i) = interp_cp4(w(IVZ, k - 2,
j, i), w(IVZ, k - 1,
j, i),
42 w(IVZ, k,
j, i), w(IVZ, k + 1,
j, i));
46 for (
int k = ks; k <= ke; ++k)
47 for (
int j = js;
j <= je; ++
j) {
48 pcoord->CellVolume(k,
j, is, ie,
vol_);
49 for (
int i = is; i <= ie; ++i) {
50 pcoord->Face1Area(k,
j, is, ie + 1,
x1area_);
54 if (pmb->block_size.nx2 > 1) {
55 pcoord->Face2Area(k,
j, is, ie,
x2area_);
61 if (pmb->block_size.nx3 > 1) {
62 pcoord->Face3Area(k,
j, is, ie,
x3area_);
AthenaArray< Real > x2area_p1_
AthenaArray< Real > x3area_
AthenaArray< Real > x1area_
scratch geometric arrays
AthenaArray< Real > x2area_
AthenaArray< Real > x3area_p1_
AthenaArray< Real > v3f3_
AthenaArray< Real > v2f2_
Divergence(MeshBlock *pmb)
void Finalize(AthenaArray< Real > const &w)
AthenaArray< Real > v1f1_