Skip to content

Commit 2264d91

Browse files
author
Max Aehle
committed
Correct usage of global index flag gi
1 parent 2fcd09a commit 2264d91

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Common/include/geometry/primal_grid/CPrimalGrid.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class CPrimalGrid {
250250
* \brief Get the element global index in a parallel computation.
251251
* \return Global index of the element in a parallel computation.
252252
*/
253-
inline unsigned long GetGlobalIndex() const { if(gi) SU2_MPI::Error("gi",CURRENT_FUNCTION); return GlobalIndex_DomainElement; }
253+
inline unsigned long GetGlobalIndex() const { if(!gi) SU2_MPI::Error("gi",CURRENT_FUNCTION); return GlobalIndex_DomainElement; }
254254

255255
/*!
256256
* \brief Set the global index for an element in a parallel computation.
@@ -267,7 +267,7 @@ class CPrimalGrid {
267267
/*!
268268
* \brief Get the index of the domain element of which this boundary element is a face.
269269
*/
270-
inline unsigned long GetDomainElement() const{ if(!gi) SU2_MPI::Error("gi",CURRENT_FUNCTION); return GlobalIndex_DomainElement; }
270+
inline unsigned long GetDomainElement() const{ if(gi) SU2_MPI::Error("gi",CURRENT_FUNCTION); return GlobalIndex_DomainElement; }
271271

272272
/*!
273273
* \brief A pure virtual member.

0 commit comments

Comments
 (0)