Skip to content

Commit baa3436

Browse files
authored
Update Common/src/linear_algebra/CSysMatrix.cpp
1 parent 79bfbe1 commit baa3436

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

Common/src/linear_algebra/CSysMatrix.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,10 @@ void CSysMatrix<ScalarType>::Initialize(unsigned long npoint, unsigned long npoi
205205
}
206206

207207
for (unsigned long thread = 0; thread < omp_num_parts; ++thread) {
208-
const unsigned long begin = omp_partitions[thread];
209-
const unsigned long end = omp_partitions[thread + 1];
210-
if (begin > end) {
211-
SU2_MPI::Error("Invalid nodes are distributed in the thread " + to_string(thread) + ".", CURRENT_FUNCTION);
212-
} else if (begin == end) {
213-
cout << "WARNING: Redundent thread has been detected. Performance could be impacted." << endl;
208+
const auto begin = omp_partitions[thread];
209+
const auto end = omp_partitions[thread + 1];
210+
if (begin == end) {
211+
cout << "WARNING: Redundant thread has been detected. Performance could be impacted due to low number of nodes per thread." << endl;
214212
break;
215213
}
216214
}

0 commit comments

Comments
 (0)