Skip to content

Commit

Permalink
fix issue with 3D wall_distance calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
wortiz committed Mar 21, 2024
1 parent b408fc3 commit ece3bb7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/mm_sol_nonlinear.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit ece3bb7

Please sign in to comment.