aboutsummaryrefslogtreecommitdiff
path: root/lid_driven_cavity/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lid_driven_cavity/cpp')
-rw-r--r--lid_driven_cavity/cpp/ldc.cpp.mako2
1 files changed, 2 insertions, 0 deletions
diff --git a/lid_driven_cavity/cpp/ldc.cpp.mako b/lid_driven_cavity/cpp/ldc.cpp.mako
index 5d480de..c66679f 100644
--- a/lid_driven_cavity/cpp/ldc.cpp.mako
+++ b/lid_driven_cavity/cpp/ldc.cpp.mako
@@ -132,8 +132,10 @@ void simulate(std::size_t nStep)
std::cout << "#steps : " << nStep << std::endl;
std::cout << std::endl;
+#pragma omp parallel for
for (std::size_t iCell = 0; iCell < ${geometry.volume}; ++iCell) {
equilibrilize(f_prev, f_next, iCell);
+ equilibrilize(f_next, f_prev, iCell);
}
const auto start = std::chrono::high_resolution_clock::now();