Preserve D2 repairs and add bounded jet and fixed-patch kernels
This commit is contained in:
1 parent
6e3756c587
commit
ed1a6ee54e
41 files changed
+2229
-753
No files matched your search
@@ -47,10 +47,8 @@ __global__ void DecodeCellsToPhysical(
|
||||
// ---------------------------------------------------------------------------
|
||||
// EncodePhysicalToCells: physical DDF -> backing layout (compact list)
|
||||
//
|
||||
// Reads physical (pre-collision) DDF from *fi_phys*, applies collision
|
||||
// to produce post-collision DDF, then encodes into the EsoPull backing
|
||||
// layout on *fi*. The backing layout stores post-collision values,
|
||||
// matching what store_f_esopull would produce at step *t*.
|
||||
// Inverse of DecodeCellsToPhysical at the SAME completed step count.
|
||||
// Conversion only: no collision or time advancement, including unchanged halo.
|
||||
// ---------------------------------------------------------------------------
|
||||
__global__ void EncodePhysicalToCells(
|
||||
fpxx* fi,
|
||||
@@ -70,10 +68,9 @@ __global__ void EncodePhysicalToCells(
|
||||
for (int i = 0; i < NQ; i++)
|
||||
f[i] = fi_phys[tid * NQ + i];
|
||||
|
||||
// Collide: physical (pre-collision) -> post-collision
|
||||
float rho_n, ux, uy;
|
||||
compute_rho_u(f, rho_n, ux, uy);
|
||||
collide_dispatch(f, rho_n, ux, uy);
|
||||
#if USE_DDF_SHIFTING
|
||||
for (int i = 0; i < NQ; ++i) f[i] -= (float)d_w[i];
|
||||
#endif
|
||||
|
||||
store_physical_node_esopull(k, f, fi, j, t);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user