diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-08-13 13:11:05 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-08-13 13:11:05 +0200 |
| commit | 7220084ddae1f4c6007f5111913cb7f87a794657 (patch) | |
| tree | ab118dcda72d3fc85fb8087617705d76b647f62d /examples/cavity_2d_gpu | |
| parent | 919f5a625c5efeea94c0dd0de5039a27e77d3fac (diff) | |
| download | libs-lbm-7220084ddae1f4c6007f5111913cb7f87a794657.tar.gz | |
Renaming velocity to momentum. for now
Diffstat (limited to 'examples/cavity_2d_gpu')
| -rw-r--r-- | examples/cavity_2d_gpu/cavity_2d_gpu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/cavity_2d_gpu/cavity_2d_gpu.cpp b/examples/cavity_2d_gpu/cavity_2d_gpu.cpp index 0fc490a..fe44baf 100644 --- a/examples/cavity_2d_gpu/cavity_2d_gpu.cpp +++ b/examples/cavity_2d_gpu/cavity_2d_gpu.cpp @@ -47,7 +47,7 @@ using CellStruct = CellFieldStruct< template<typename T, uint64_t D> using MacroStruct = Struct< - Member<FixedArray<T,D>, "velocity">, + Member<FixedArray<T,D>, "momentum">, Member<T, "pressure"> >; @@ -362,7 +362,7 @@ int main(){ auto dfs_field = even_step ? dfs_old : dfs; auto& rho = macros.at(index).template get<"pressure">(); - auto& vel = macros.at(index).template get<"velocity">(); + auto& vel = macros.at(index).template get<"momentum">(); compute_rho_u<sch::T,sch::D2Q9>(dfs_field[j],rho,vel); }, {{0u,0u}}, meta); std::string vtk_f_name{"tmp/cavity_2d_gpu_"}; |
