summaryrefslogtreecommitdiff
path: root/examples/cavity_3d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cavity_3d.cpp')
-rw-r--r--examples/cavity_3d.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/cavity_3d.cpp b/examples/cavity_3d.cpp
index 64356be..5ae4834 100644
--- a/examples/cavity_3d.cpp
+++ b/examples/cavity_3d.cpp
@@ -46,7 +46,7 @@ using CellStruct = Struct<
template<typename T, uint64_t D>
using MacroStruct = Struct<
- Member<FixedArray<T,D>, "velocity">,
+ Member<FixedArray<T,D>, "momentum">,
Member<T, "pressure">
>;
@@ -411,7 +411,7 @@ int main(){
auto dfs = even_step ? cell.template get<"dfs_old">() : cell.template get<"dfs">();
auto& rho = macros.at({{i,j}}).template get<"pressure">();
- auto& vel = macros.at({{i,j}}).template get<"velocity">();
+ auto& vel = macros.at({{i,j}}).template get<"momentum">();
compute_rho_u<sch::T,sch::D2Q9>(dfs,rho,vel);
}, lattice);