Skip to content

Commit 6aea1c9

Browse files
committed
Make GetSolution(...,0) to fresher GetTemperature(...) calls.
1 parent 575be82 commit 6aea1c9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SU2_CFD/src/solvers/CHeatSolver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ void CHeatSolver::BC_Isothermal_Wall(CGeometry *geometry, CSolver **solver_conta
596596
dist_ij += (Coord_j[iDim]-Coord_i[iDim])*(Coord_j[iDim]-Coord_i[iDim]);
597597
dist_ij = sqrt(dist_ij);
598598

599-
dTdn = -(nodes->GetSolution(Point_Normal,0) - Twall)/dist_ij;
599+
dTdn = -(nodes->GetTemperature(Point_Normal) - Twall)/dist_ij;
600600

601601
Res_Visc[0] = thermal_diffusivity*dTdn*Area;
602602

@@ -937,7 +937,7 @@ void CHeatSolver::Heat_Fluxes(CGeometry *geometry, CSolver **solver_container, C
937937
for (auto iDim = 0u; iDim < nDim; iDim++) dist += (Coord_Normal[iDim]-Coord[iDim])*(Coord_Normal[iDim]-Coord[iDim]);
938938
dist = sqrt(dist);
939939

940-
dTdn = (Twall - nodes->GetSolution(iPointNormal,0))/dist;
940+
dTdn = (Twall - nodes->GetTemperature(iPointNormal))/dist;
941941

942942
HeatFlux[iMarker][iVertex] = thermal_diffusivity*dTdn*config->GetHeat_Flux_Ref();
943943

0 commit comments

Comments
 (0)