summaryrefslogtreecommitdiff
path: root/examples/cavity_2d.cpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2025-04-18 16:35:52 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2025-04-18 16:35:52 +0200
commitb0a68aba927aaafc97816d18b50b219a595b4dd2 (patch)
tree34eb4c44677609e1e15c676857c4121292247b65 /examples/cavity_2d.cpp
parentae8711ba90ac2a47ea7654dc873927fb2783ff91 (diff)
Compileable state
Diffstat (limited to 'examples/cavity_2d.cpp')
-rw-r--r--examples/cavity_2d.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/cavity_2d.cpp b/examples/cavity_2d.cpp
index 5085635..55223a4 100644
--- a/examples/cavity_2d.cpp
+++ b/examples/cavity_2d.cpp
@@ -193,7 +193,7 @@ public:
void apply(saw::data<sch::DfCell<Desc>>& dfs){
typename saw::native_data_type<sch::T>::type rho;
std::array<typename saw::native_data_type<sch::T>::type, Desc::D> vel;
- compute_rho_u<Desc>(dfs,rho,vel);
+ compute_rho_u<sch::T,Desc>(dfs,rho,vel);
auto eq = equilibrium<Desc>(rho,vel);
for(uint64_t i = 0u; i < Desc::Q; ++i){
@@ -420,7 +420,7 @@ int main(){
auto& dfs = cell.template get<"dfs">();
typename saw::native_data_type<sch::T>::type rho;
std::array<typename saw::native_data_type<sch::T>::type, sch::D2Q9::D> vel;
- compute_rho_u<sch::D2Q9>(dfs,rho,vel);
+ compute_rho_u<sch::T,sch::D2Q9>(dfs,rho,vel);
if(i > 1 && (i+2) < dim_x && j > 1 && (j+2) < dim_y){
sum += rho;
@@ -517,7 +517,7 @@ int main(){
typename saw::native_data_type<sch::T>::type rho;
std::array<typename saw::native_data_type<sch::T>::type, sch::D2Q9::D> vel;
- compute_rho_u<sch::D2Q9>(dfs,rho,vel);
+ compute_rho_u<sch::T,sch::D2Q9>(dfs,rho,vel);
vtk_file << static_cast<float>(vel[0u]) << " " << static_cast<float>(vel[1u])<<" 0.0\n";
}, lattice);