From d4e3ab8544628c72921bf60d4462d6d131b0ffb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20L=C3=BCbke?= Date: Fri, 6 Jan 2023 16:18:06 +0100 Subject: [PATCH] perf: remove OpenMP pragma from ortho calc, since we already forked OpenMP threads in 2D ADI --- src/BTCS.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/BTCS.cpp b/src/BTCS.cpp index c3e6c77..65a448b 100644 --- a/src/BTCS.cpp +++ b/src/BTCS.cpp @@ -87,7 +87,6 @@ auto calc_d_ortho(const DMatrixRowMajor &c, const DMatrixRowMajor &alpha, } // then iterate over inlet -#pragma omp parallel for private(y_values) schedule(dynamic) for (int i = 1; i < n_rows - 1; i++) { for (int j = 0; j < n_cols; j++) { double sy = (time_step * alpha(i, j)) / (dx * dx);