Skip to content

Commit be73f1f

Browse files
committed
remove unused setvolume
1 parent c2a856a commit be73f1f

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

SU2_CFD/include/solvers/CSolver.hpp

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4340,20 +4340,15 @@ inline void Custom_Source_Residual(CGeometry *geometry, CSolver **solver_contain
43404340
CNumerics* numerics = numerics_container[SOURCE_SECOND_TERM + omp_get_thread_num()*MAX_TERMS];
43414341
AD::StartNoSharedReading();
43424342

4343-
//SU2_OMP_FOR_STAT(omp_chunk_size)
43444343
SU2_OMP_FOR_STAT(roundUpDiv(nPointDomain,2*omp_get_max_threads()))
43454344

43464345
for (auto iPoint = 0ul; iPoint < nPointDomain; iPoint++) {
4347-
4348-
/*--- Load the volume of the dual mesh cell ---*/
4349-
numerics->SetVolume(geometry->nodes->GetVolume(iPoint));
4350-
4351-
/*--- Get control volume size. ---*/
4352-
su2double Volume = geometry->nodes->GetVolume(iPoint);
4353-
/*--- Compute the residual for this control volume and subtract. ---*/
4354-
for (auto iVar = 0ul; iVar < nVar; iVar++) {
4355-
LinSysRes(iPoint,iVar) -= base_nodes->GetUserDefinedSource(iPoint)[iVar] * Volume;
4356-
}
4346+
/*--- Get control volume size. ---*/
4347+
su2double Volume = geometry->nodes->GetVolume(iPoint);
4348+
/*--- Compute the residual for this control volume and subtract. ---*/
4349+
for (auto iVar = 0ul; iVar < nVar; iVar++) {
4350+
LinSysRes(iPoint,iVar) -= base_nodes->GetUserDefinedSource(iPoint)[iVar] * Volume;
4351+
}
43574352
}
43584353
END_SU2_OMP_FOR
43594354

0 commit comments

Comments
 (0)