aboutsummaryrefslogtreecommitdiff
path: root/lid_driven_cavity/cpp
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-11-04 23:50:41 +0100
committerAdrian Kummerlaender2019-11-04 23:50:41 +0100
commit8285173fa9c69de72020962506eb080a49be0ce5 (patch)
treecee30fbe66f690d8cc0d89458d8122fc82bff111 /lid_driven_cavity/cpp
parentb708361bf722b2c19f47699ceb931c6efeb8c9d9 (diff)
downloadboltzgen_examples-8285173fa9c69de72020962506eb080a49be0ce5.tar
boltzgen_examples-8285173fa9c69de72020962506eb080a49be0ce5.tar.gz
boltzgen_examples-8285173fa9c69de72020962506eb080a49be0ce5.tar.bz2
boltzgen_examples-8285173fa9c69de72020962506eb080a49be0ce5.tar.lz
boltzgen_examples-8285173fa9c69de72020962506eb080a49be0ce5.tar.xz
boltzgen_examples-8285173fa9c69de72020962506eb080a49be0ce5.tar.zst
boltzgen_examples-8285173fa9c69de72020962506eb080a49be0ce5.zip
Adapt to upstream changes
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();