ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_ComputeStrain_N.cpp File Reference
#include <ERF_Diffusion.H>
#include "ERF_EddyViscosity.H"
Include dependency graph for ERF_ComputeStrain_N.cpp:

Functions

void ComputeStrain_N (Box bxcc, Box tbxxy, Box tbxxz, Box tbxyz, Box domain, const Array4< const Real > &u, const Array4< const Real > &v, const Array4< const Real > &w, Array4< Real > &tau11, Array4< Real > &tau22, Array4< Real > &tau33, Array4< Real > &tau12, Array4< Real > &tau13, Array4< Real > &tau23, const GpuArray< Real, AMREX_SPACEDIM > &dxInv, const Array4< const Real > &mf_mx, const Array4< const Real > &mf_ux, const Array4< const Real > &mf_vx, const Array4< const Real > &mf_my, const Array4< const Real > &mf_uy, const Array4< const Real > &mf_vy, const BCRec *bc_ptr, Array4< Real > &tau13i, Array4< Real > &tau23i)
 

Function Documentation

◆ ComputeStrain_N()

void ComputeStrain_N ( Box  bxcc,
Box  tbxxy,
Box  tbxxz,
Box  tbxyz,
Box  domain,
const Array4< const Real > &  u,
const Array4< const Real > &  v,
const Array4< const Real > &  w,
Array4< Real > &  tau11,
Array4< Real > &  tau22,
Array4< Real > &  tau33,
Array4< Real > &  tau12,
Array4< Real > &  tau13,
Array4< Real > &  tau23,
const GpuArray< Real, AMREX_SPACEDIM > &  dxInv,
const Array4< const Real > &  mf_mx,
const Array4< const Real > &  mf_ux,
const Array4< const Real > &  mf_vx,
const Array4< const Real > &  mf_my,
const Array4< const Real > &  mf_uy,
const Array4< const Real > &  mf_vy,
const BCRec *  bc_ptr,
Array4< Real > &  tau13i,
Array4< Real > &  tau23i 
)

Function for computing the strain rates without terrain.

Parameters
[in]bxcccell center box for tau_ii
[in]tbxxynodal xy box for tau_12
[in]tbxxznodal xz box for tau_13
[in]tbxyznodal yz box for tau_23
[in]domaincomputational domain
[in]ux-direction velocity
[in]vy-direction velocity
[in]wz-direction velocity
[out]tau1111 strain
[out]tau2222 strain
[out]tau3333 strain
[out]tau1212 strain
[out]tau1313 strain
[out]tau2323 strain
[in]bc_ptrcontainer with boundary condition types
[in]dxInvinverse cell size array
[in]mf_mxx map factor at cell centers
[in]mf_uxx map factor at x-faces
[in]mf_vxx map factor at y-faces
[in]mf_myy map factor at cell centers
[in]mf_uyy map factor at x-faces
[in]mf_vyy map factor at y-faces
[in]tau13icontribution to strain from du/dz
[in]tau23icontribution to strain from dv/dz
54 {
55  // Convert domain to each index type to test if we are on Dirichlet boundary
56  Box domain_xy = convert(domain, tbxxy.ixType());
57  Box domain_xz = convert(domain, tbxxz.ixType());
58  Box domain_yz = convert(domain, tbxyz.ixType());
59 
60  const auto& dom_lo = lbound(domain);
61  const auto& dom_hi = ubound(domain);
62 
63  // Dirichlet on left or right plane
64  bool xl_v_dir = ( (bc_ptr[BCVars::yvel_bc].lo(0) == ERFBCType::ext_dir) ||
67  xl_v_dir = ( xl_v_dir && (tbxxy.smallEnd(0) <= domain_xy.smallEnd(0)) && (tbxxy.bigEnd(0) >= domain_xy.smallEnd(0)) );
68 
69  bool xh_v_dir = ( (bc_ptr[BCVars::yvel_bc].hi(0) == ERFBCType::ext_dir) ||
72  xh_v_dir = ( xh_v_dir && (tbxxy.smallEnd(0) <= domain_xy.bigEnd(0)) && (tbxxy.bigEnd(0) >= domain_xy.bigEnd(0)) );
73 
74  bool xl_w_dir = ( (bc_ptr[BCVars::zvel_bc].lo(0) == ERFBCType::ext_dir) ||
77  xl_w_dir = ( xl_w_dir && (tbxxz.smallEnd(0) <= domain_xz.smallEnd(0)) && (tbxxz.bigEnd(0) >= domain_xz.smallEnd(0)) );
78 
79  bool xh_w_dir = ( (bc_ptr[BCVars::zvel_bc].hi(0) == ERFBCType::ext_dir) ||
82  xh_w_dir = ( xh_w_dir && (tbxxz.smallEnd(0) <= domain_xz.bigEnd(0)) && (tbxxz.bigEnd(0) >= domain_xz.bigEnd(0)) );
83 
84  // Dirichlet on front or back plane
85  bool yl_u_dir = ( (bc_ptr[BCVars::xvel_bc].lo(1) == ERFBCType::ext_dir) ||
88  yl_u_dir = ( yl_u_dir && (tbxxy.smallEnd(1) <= domain_xy.smallEnd(1)) && (tbxxy.bigEnd(1) >= domain_xy.smallEnd(1)) );
89 
90  bool yh_u_dir = ( (bc_ptr[BCVars::xvel_bc].hi(1) == ERFBCType::ext_dir) ||
93  yh_u_dir = ( yh_u_dir && (tbxxy.smallEnd(1) <= domain_xy.bigEnd(1)) && (tbxxy.bigEnd(1) >= domain_xy.bigEnd(1)) );
94 
95  bool yl_w_dir = ( (bc_ptr[BCVars::zvel_bc].lo(1) == ERFBCType::ext_dir) ||
98  yl_w_dir = ( yl_w_dir && (tbxyz.smallEnd(1) <= domain_yz.smallEnd(1)) && (tbxyz.bigEnd(1) >= domain_yz.smallEnd(1)) );
99 
100  bool yh_w_dir = ( (bc_ptr[BCVars::zvel_bc].hi(1) == ERFBCType::ext_dir) ||
101  (bc_ptr[BCVars::zvel_bc].hi(1) == ERFBCType::ext_dir_upwind) ||
103  yh_w_dir = ( yh_w_dir && (tbxyz.smallEnd(1) <= domain_yz.bigEnd(1)) && (tbxyz.bigEnd(1) >= domain_yz.bigEnd(1)) );
104 
105  // Dirichlet on top or bottom plane
106  bool zl_u_dir = ( (bc_ptr[BCVars::xvel_bc].lo(2) == ERFBCType::ext_dir) ||
108  zl_u_dir = ( zl_u_dir && (tbxxz.smallEnd(2) == domain_xz.smallEnd(2)) );
109 
110  bool zh_u_dir = ( (bc_ptr[BCVars::xvel_bc].hi(2) == ERFBCType::ext_dir) ||
112  zh_u_dir = ( zh_u_dir && (tbxxz.bigEnd(2) == domain_xz.bigEnd(2)) );
113 
114  bool zl_v_dir = ( (bc_ptr[BCVars::yvel_bc].lo(2) == ERFBCType::ext_dir) ||
116  zl_v_dir = ( zl_v_dir && (tbxyz.smallEnd(2) == domain_yz.smallEnd(2)) );
117 
118  bool zh_v_dir = ( (bc_ptr[BCVars::yvel_bc].hi(2) == ERFBCType::ext_dir) ||
120  zh_v_dir = ( zh_v_dir && (tbxyz.bigEnd(2) == domain_yz.bigEnd(2)) );
121 
122  // The lateral (x and y) Dirichlet planes are filled after the generic kernels below,
123  // from the boxes as passed in: the callers grow the boxes in x and y, so a boundary
124  // node is inside the box rather than at its edge, and the generic kernel also fills
125  // the halo node outside the domain, which the caller reads
126  const Box tbxxy0 = tbxxy;
127  const Box tbxxz0 = tbxxz;
128  const Box tbxyz0 = tbxyz;
129 
130  //***********************************************************************************
131  // Z-Dirichlet
132  //***********************************************************************************
133  if (zl_u_dir) {
134  Box planexz = tbxxz; planexz.setBig(2, planexz.smallEnd(2) );
135  tbxxz.growLo(2,-1);
136 
137  ParallelFor(planexz,[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept {
138  Real mfx = mf_ux(i,j,0);
139 
140  Real du_dz = (-eightthirds * u(i,j,k-1) + three * u(i,j,k) - third * u(i,j,k+1))*dxInv[2];
141  tau13(i,j,k) = myhalf * ( du_dz
142  + (w(i, j, k) - w(i-1, j, k))*dxInv[0]*mfx );
143 
144  if (tau13i) tau13i(i,j,k) = myhalf * du_dz;
145  });
146  }
147  if (zh_u_dir) {
148  // note: tilebox xz should be nodal, so k|k-1|k-2 at the bigEnd is analogous to k-1|k|k+1 at the smallEnd
149  Box planexz = tbxxz; planexz.setSmall(2, planexz.bigEnd(2) );
150  tbxxz.growHi(2,-1);
151 
152  ParallelFor(planexz,[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept {
153  Real mfx = mf_ux(i,j,0);
154 
155  Real du_dz = -(-eightthirds * u(i,j,k) + three * u(i,j,k-1) - third * u(i,j,k-2))*dxInv[2];
156  tau13(i,j,k) = myhalf * ( du_dz
157  + (w(i, j, k) - w(i-1, j, k))*dxInv[0]*mfx );
158 
159  if (tau13i) tau13i(i,j,k) = myhalf * du_dz;
160  });
161  }
162 
163  if (zl_v_dir) {
164  Box planeyz = tbxyz; planeyz.setBig(2, planeyz.smallEnd(2) );
165  tbxyz.growLo(2,-1);
166 
167  ParallelFor(planeyz,[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept {
168  Real mfy = mf_vy(i,j,0);
169 
170  Real dv_dz = (-eightthirds * v(i,j,k-1) + three * v(i,j,k ) - third * v(i,j,k+1))*dxInv[2];
171  tau23(i,j,k) = myhalf * ( dv_dz
172  + (w(i, j, k) - w(i, j-1, k))*dxInv[1]*mfy );
173 
174  if (tau23i) tau23i(i,j,k) = myhalf * dv_dz;
175  });
176  }
177  if (zh_v_dir) {
178  // note: tilebox yz should be nodal, so k|k-1|k-2 at the bigEnd is analogous to k-1|k|k+1 at the smallEnd
179  Box planeyz = tbxyz; planeyz.setSmall(2, planeyz.bigEnd(2) );
180  tbxyz.growHi(2,-1);
181 
182  ParallelFor(planeyz,[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept {
183  Real mfy = mf_vy(i,j,0);
184 
185  Real dv_dz = -(-eightthirds * v(i,j,k ) + three * v(i,j,k-1) - third * v(i,j,k-2))*dxInv[2];
186  tau23(i,j,k) = myhalf * ( dv_dz
187  + (w(i, j, k) - w(i, j-1, k))*dxInv[1]*mfy );
188 
189  if (tau23i) tau23i(i,j,k) = myhalf * dv_dz;
190  });
191  }
192 
193  // Fill the remaining cells
194  //***********************************************************************************
195  // Cell centered strains
196  ParallelFor(bxcc, [=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept {
197  Real mfx = mf_mx(i,j,0);
198  Real mfy = mf_my(i,j,0);
199  tau11(i,j,k) = (u(i+1, j , k ) - u(i, j, k))*dxInv[0]*mfx;
200  tau22(i,j,k) = (v(i , j+1, k ) - v(i, j, k))*dxInv[1]*mfy;
201  tau33(i,j,k) = (w(i , j , k+1) - w(i, j, k))*dxInv[2];
202  });
203 
204  // Off-diagonal strains
205  ParallelFor(tbxxy,tbxxz,tbxyz,
206  [=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept {
207  Real mfy = myhalf * (mf_uy(i,j,0) + mf_uy(i ,j-1,0));
208  Real mfx = myhalf * (mf_vx(i,j,0) + mf_vx(i-1,j ,0));
209  tau12(i,j,k) = myhalf * ( (u(i, j, k) - u(i, j-1, k))*dxInv[1]*mfy
210  + (v(i, j, k) - v(i-1, j, k))*dxInv[0]*mfx );
211  },
212  [=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept {
213  Real mfx = mf_ux(i,j,0);
214 
215  Real du_dz = (u(i, j, k) - u(i, j, k-1))*dxInv[2];
216  tau13(i,j,k) = myhalf * ( du_dz
217  + (w(i, j, k) - w(i-1, j, k))*dxInv[0]*mfx );
218 
219  if (tau13i) tau13i(i,j,k) = myhalf * du_dz;
220  },
221  [=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept {
222  Real mfy = mf_vy(i,j,0);
223 
224  Real dv_dz = (v(i, j, k) - v(i, j, k-1))*dxInv[2];
225  tau23(i,j,k) = myhalf * ( dv_dz
226  + (w(i, j, k) - w(i, j-1, k))*dxInv[1]*mfy );
227 
228  if (tau23i) tau23i(i,j,k) = myhalf * dv_dz;
229  });
230 
231  // Overwrite the lateral Dirichlet planes with the one-sided stencils: y first, then x,
232  // so that x takes the nodes where an x and a y (or z) plane meet
233  //***********************************************************************************
234  // Y-Dirichlet
235  //***********************************************************************************
236  if (yl_u_dir) {
237  Box planexy = tbxxy0; planexy.setSmall(1, domain_xy.smallEnd(1)); planexy.setBig(1, domain_xy.smallEnd(1));
238  bool need_to_test = (bc_ptr[BCVars::xvel_bc].lo(1) == ERFBCType::ext_dir_upwind) ? true : false;
239 
240  ParallelFor(planexy,[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept {
241  Real mfy = myhalf * (mf_uy(i,j,0) + mf_uy(i ,j-1,0));
242  Real mfx = myhalf * (mf_vx(i,j,0) + mf_vx(i-1,j ,0));
243  if (!need_to_test || v(i,dom_lo.y,k) >= zero) {
244  tau12(i,j,k) = myhalf * ( (-eightthirds * u(i,j-1,k) + three * u(i,j,k) - third * u(i,j+1,k))*dxInv[1]*mfy
245  + (v(i, j, k) - v(i-1, j, k))*dxInv[0]*mfx );
246  } else {
247  tau12(i,j,k) = myhalf * ( (u(i, j, k) - u(i, j-1, k))*dxInv[1]*mfy
248  + (v(i, j, k) - v(i-1, j, k))*dxInv[0]*mfx );
249  }
250  });
251  }
252  if (yh_u_dir) {
253  // note: tilebox xy should be nodal, so j|j-1|j-2 at the bigEnd is analogous to j-1|j|j+1 at the smallEnd
254  Box planexy = tbxxy0; planexy.setSmall(1, domain_xy.bigEnd(1)); planexy.setBig(1, domain_xy.bigEnd(1));
255  bool need_to_test = (bc_ptr[BCVars::xvel_bc].hi(1) == ERFBCType::ext_dir_upwind) ? true : false;
256 
257  ParallelFor(planexy,[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept {
258  Real mfy = myhalf * (mf_uy(i,j,0) + mf_uy(i ,j-1,0));
259  Real mfx = myhalf * (mf_vx(i,j,0) + mf_vx(i-1,j ,0));
260  if (!need_to_test || v(i,dom_hi.y+1,k) <= zero) {
261  tau12(i,j,k) = myhalf * ( -(-eightthirds * u(i,j,k) + three * u(i,j-1,k) - third * u(i,j-2,k))*dxInv[1]*mfy
262  + (v(i, j, k) - v(i-1, j, k))*dxInv[0]*mfx );
263  } else {
264  tau12(i,j,k) = myhalf * ( (u(i, j, k) - u(i, j-1, k))*dxInv[1]*mfy
265  + (v(i, j, k) - v(i-1, j, k))*dxInv[0]*mfx );
266  }
267  });
268  }
269 
270  if (yl_w_dir) {
271  Box planeyz = tbxyz0; planeyz.setSmall(1, domain_yz.smallEnd(1)); planeyz.setBig(1, domain_yz.smallEnd(1));
272  bool need_to_test = (bc_ptr[BCVars::zvel_bc].lo(1) == ERFBCType::ext_dir_upwind) ? true : false;
273 
274  ParallelFor(planeyz,[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept {
275  Real mfy = mf_vy(i,j,0);
276 
277  Real dv_dz = (v(i, j, k) - v(i, j, k-1))*dxInv[2];
278  if (!need_to_test || v(i,dom_lo.y,k) >= zero) {
279  tau23(i,j,k) = myhalf * ( dv_dz
280  + (-eightthirds * w(i,j-1,k) + three * w(i,j ,k) - third * w(i,j+1,k))*dxInv[1]*mfy );
281  } else {
282  tau23(i,j,k) = myhalf * ( dv_dz
283  + (w(i, j, k) - w(i, j-1, k))*dxInv[1]*mfy );
284  }
285 
286  if (tau23i) tau23i(i,j,k) = myhalf * dv_dz;
287  });
288  }
289  if (yh_w_dir) {
290  // note: tilebox yz should be nodal, so j|j-1|j-2 at the bigEnd is analogous to j-1|j|j+1 at the smallEnd
291  Box planeyz = tbxyz0; planeyz.setSmall(1, domain_yz.bigEnd(1)); planeyz.setBig(1, domain_yz.bigEnd(1));
292  bool need_to_test = (bc_ptr[BCVars::zvel_bc].hi(1) == ERFBCType::ext_dir_upwind) ? true : false;
293 
294  ParallelFor(planeyz,[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept {
295  Real mfy = mf_vy(i,j,0);
296 
297  Real dv_dz = (v(i, j, k) - v(i, j, k-1))*dxInv[2];
298  if (!need_to_test || v(i,dom_hi.y+1,k) <= zero) {
299  tau23(i,j,k) = myhalf * ( dv_dz
300  - (-eightthirds * w(i,j ,k) + three * w(i,j-1,k) - third * w(i,j-2,k))*dxInv[1]*mfy );
301  } else {
302  tau23(i,j,k) = myhalf * ( dv_dz
303  + (w(i, j, k) - w(i, j-1, k))*dxInv[1]*mfy );
304  }
305 
306  if (tau23i) tau23i(i,j,k) = myhalf * dv_dz;
307  });
308  }
309 
310  //***********************************************************************************
311  // X-Dirichlet
312  //***********************************************************************************
313  if (xl_v_dir) {
314  Box planexy = tbxxy0; planexy.setSmall(0, domain_xy.smallEnd(0)); planexy.setBig(0, domain_xy.smallEnd(0));
315  bool need_to_test = (bc_ptr[BCVars::yvel_bc].lo(0) == ERFBCType::ext_dir_upwind) ? true : false;
316 
317  ParallelFor(planexy,[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept {
318  Real mfy = myhalf * (mf_uy(i,j,0) + mf_uy(i ,j-1,0));
319  Real mfx = myhalf * (mf_vx(i,j,0) + mf_vx(i-1,j ,0));
320  if (!need_to_test || u(dom_lo.x,j,k) >= zero) {
321  tau12(i,j,k) = myhalf * ( (u(i, j, k) - u(i, j-1, k))*dxInv[1]*mfy
322  + (-eightthirds * v(i-1,j,k) + three * v(i,j,k) - third * v(i+1,j,k))*dxInv[0]*mfx );
323  } else {
324  tau12(i,j,k) = myhalf * ( (u(i, j, k) - u(i, j-1, k))*dxInv[1]*mfy +
325  (v(i, j, k) - v(i-1, j, k))*dxInv[0]*mfx );
326  }
327  });
328  }
329  if (xh_v_dir) {
330  // note: tilebox xy should be nodal, so i|i-1|i-2 at the bigEnd is analogous to i-1|i|i+1 at the smallEnd
331  Box planexy = tbxxy0; planexy.setSmall(0, domain_xy.bigEnd(0)); planexy.setBig(0, domain_xy.bigEnd(0));
332  bool need_to_test = (bc_ptr[BCVars::yvel_bc].hi(0) == ERFBCType::ext_dir_upwind) ? true : false;
333 
334  ParallelFor(planexy,[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept {
335  Real mfy = myhalf * (mf_uy(i,j,0) + mf_uy(i ,j-1,0));
336  Real mfx = myhalf * (mf_vx(i,j,0) + mf_vx(i-1,j ,0));
337  if (!need_to_test || u(dom_hi.x+1,j,k) <= zero) {
338  tau12(i,j,k) = myhalf * ( (u(i, j, k) - u(i, j-1, k))*dxInv[1]*mfy
339  - (-eightthirds * v(i,j,k) + three * v(i-1,j,k) - third * v(i-2,j,k))*dxInv[0]*mfx );
340  } else {
341  tau12(i,j,k) = myhalf * ( (u(i, j, k) - u(i, j-1, k))*dxInv[1]*mfy +
342  (v(i, j, k) - v(i-1, j, k))*dxInv[0]*mfx );
343  }
344  });
345  }
346 
347  if (xl_w_dir) {
348  Box planexz = tbxxz0; planexz.setSmall(0, domain_xz.smallEnd(0)); planexz.setBig(0, domain_xz.smallEnd(0));
349  bool need_to_test = (bc_ptr[BCVars::zvel_bc].lo(0) == ERFBCType::ext_dir_upwind) ? true : false;
350 
351  ParallelFor(planexz,[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept {
352  Real mfx = mf_ux(i,j,0);
353 
354  Real du_dz = (u(i, j, k) - u(i, j, k-1))*dxInv[2];
355  if (!need_to_test || u(dom_lo.x,j,k) >= zero) {
356  tau13(i,j,k) = myhalf * ( du_dz
357  + (-eightthirds * w(i-1,j,k) + three * w(i,j,k) - third * w(i+1,j,k))*dxInv[0]*mfx );
358  } else {
359  tau13(i,j,k) = myhalf * ( du_dz
360  + (w(i, j, k) - w(i-1, j, k))*dxInv[0]*mfx );
361  }
362 
363  if (tau13i) tau13i(i,j,k) = myhalf * du_dz;
364  });
365  }
366  if (xh_w_dir) {
367  // note: tilebox xz should be nodal, so i|i-1|i-2 at the bigEnd is analogous to i-1|i|i+1 at the smallEnd
368  Box planexz = tbxxz0; planexz.setSmall(0, domain_xz.bigEnd(0)); planexz.setBig(0, domain_xz.bigEnd(0));
369  bool need_to_test = (bc_ptr[BCVars::zvel_bc].hi(0) == ERFBCType::ext_dir_upwind) ? true : false;
370 
371  ParallelFor(planexz,[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept {
372  Real mfx = mf_ux(i,j,0);
373  Real du_dz = (u(i, j, k) - u(i, j, k-1))*dxInv[2];
374  if (!need_to_test || u(dom_hi.x+1,j,k) <= zero) {
375  tau13(i,j,k) = myhalf * ( du_dz
376  - (-eightthirds * w(i,j,k) + three * w(i-1,j,k) - third * w(i-2,j,k))*dxInv[0]*mfx );
377  } else {
378  tau13(i,j,k) = myhalf * ( du_dz
379  + (w(i, j, k) - w(i-1, j, k))*dxInv[0]*mfx );
380  }
381 
382  if (tau13i) tau13i(i,j,k) = myhalf * du_dz;
383  });
384  }
385 }
@ tau12
Definition: ERF_DataStruct.H:51
@ tau23
Definition: ERF_DataStruct.H:51
@ tau33
Definition: ERF_DataStruct.H:51
@ tau22
Definition: ERF_DataStruct.H:51
@ tau11
Definition: ERF_DataStruct.H:51
@ tau13
Definition: ERF_DataStruct.H:51
amrex::GpuArray< Real, AMREX_SPACEDIM > dxInv
Definition: ERF_InitCustomPertVels_ParticleTests.H:16
ParallelFor(fab_box, [=] AMREX_GPU_DEVICE(int i, int j, int k) { qrcuten_arr(i, j, k)=Real(0);qscuten_arr(i, j, k)=Real(0);qicuten_arr(i, j, k)=Real(0);})
constexpr amrex::Real three
Definition: ERF_NumericalConstants.H:39
constexpr amrex::Real eightthirds
Definition: ERF_NumericalConstants.H:44
constexpr amrex::Real zero
Definition: ERF_NumericalConstants.H:36
constexpr amrex::Real myhalf
Definition: ERF_NumericalConstants.H:41
constexpr amrex::Real third
Definition: ERF_NumericalConstants.H:43
@ zvel_bc
Definition: ERF_IndexDefines.H:140
@ yvel_bc
Definition: ERF_IndexDefines.H:139
@ xvel_bc
Definition: ERF_IndexDefines.H:138
@ ext_dir_ingested
Definition: ERF_IndexDefines.H:321
@ ext_dir
Definition: ERF_IndexDefines.H:317
@ ext_dir_upwind
Definition: ERF_IndexDefines.H:325

Referenced by ERF::advance_dycore(), and erf_make_tau_terms().

Here is the call graph for this function:
Here is the caller graph for this function: