From ece3bb7905bc9b2bd86de1fe258fe340da0c901e Mon Sep 17 00:00:00 2001 From: Weston Ortiz Date: Thu, 21 Mar 2024 10:42:13 -0600 Subject: [PATCH] fix issue with 3D wall_distance calculations --- src/mm_sol_nonlinear.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/mm_sol_nonlinear.c b/src/mm_sol_nonlinear.c index fcb54978..86b74104 100644 --- a/src/mm_sol_nonlinear.c +++ b/src/mm_sol_nonlinear.c @@ -705,10 +705,6 @@ int solve_nonlinear_problem(struct GomaLinearSolverData *ams, DPRINTF(stdout, "-------"); DPRINTF(stdout, "\n"); - if (Num_ROT == 0 /*&& inewton == 0*/ && exo->num_dim == 3) { - setup_rotated_bc_nodes(exo, dpi, BC_Types, Num_BC, x); - } - // Setup turbulence information if (upd->turbulent_info->use_internal_wall_distance) { bool already_setup = true; @@ -730,6 +726,11 @@ int solve_nonlinear_problem(struct GomaLinearSolverData *ams, } } + // 3D Automatic rotation setup + if (Num_ROT == 0 /*&& inewton == 0*/ && exo->num_dim == 3) { + setup_rotated_bc_nodes(exo, dpi, BC_Types, Num_BC, x); + } + /********************************************************************************* * * Top of the Newton Iteration Loop