Skip to content

Commit 124795b

Browse files
Fix wallfunction variable computation on mpi rank edges (#1791)
* fix yplus on mpi rank edge * fix for mg cycles * Apply suggestions from code review Co-authored-by: Pedro Gomes <[email protected]>
1 parent 64e24b1 commit 124795b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

SU2_CFD/src/solvers/CIncNSSolver.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -647,11 +647,8 @@ void CIncNSSolver::SetTau_Wall_WF(CGeometry *geometry, CSolver **solver_containe
647647

648648
const auto iPoint = geometry->vertex[iMarker][iVertex]->GetNode();
649649
const auto Point_Normal = geometry->vertex[iMarker][iVertex]->GetNormal_Neighbor();
650-
651-
/*--- Check if the node belongs to the domain (i.e, not a halo node)
652-
* and the neighbor is not part of the physical boundary ---*/
653-
654-
if (!geometry->nodes->GetDomain(iPoint)) continue;
650+
/*--- On the finest mesh compute also on halo nodes to avoid communication of tau wall. ---*/
651+
if ((!geometry->nodes->GetDomain(iPoint)) && !(MGLevel==MESH_0)) continue;
655652

656653
/*--- Get coordinates of the current vertex and nearest normal point ---*/
657654

SU2_CFD/src/solvers/CTurbSSTSolver.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ void CTurbSSTSolver::SetTurbVars_WF(CGeometry *geometry, CSolver **solver_contai
461461

462462
const auto iPoint = geometry->vertex[val_marker][iVertex]->GetNode();
463463
const auto iPoint_Neighbor = geometry->vertex[val_marker][iVertex]->GetNormal_Neighbor();
464+
if (!geometry->nodes->GetDomain(iPoint_Neighbor)) continue;
464465

465466
su2double Y_Plus = solver_container[FLOW_SOL]->GetYPlus(val_marker, iVertex);
466467
su2double Lam_Visc_Wall = solver_container[FLOW_SOL]->GetNodes()->GetLaminarViscosity(iPoint);

0 commit comments

Comments
 (0)