@@ -564,63 +564,9 @@ void CSpeciesSolver::Source_Residual(CGeometry *geometry, CSolver **solver_conta
564564 END_SU2_OMP_FOR
565565 }
566566
567- /* --- Custom user defined source term (from the python wrapper) ---*/
567+ /* --- Custom user defined source term (from the python wrapper) ---*/
568568 if (config->GetPyCustom_Source () ) {
569569 Custom_Source_Residual (geometry, solver_container, numerics_container, config, iMesh);
570570 }
571571
572- // /*--- Custom user defined source term (from the python wrapper) ---*/
573- // if (config->GetPyCustom_Source() ) {
574- // CNumerics *numerics = numerics_container[SOURCE_FIRST_TERM + omp_get_thread_num()*MAX_TERMS];
575-
576- // AD::StartNoSharedReading();
577- // SU2_OMP_FOR_STAT(omp_chunk_size)
578- // for (auto iPoint = 0; iPoint < nPointDomain; iPoint++) {
579-
580- // /*--- Load the volume of the dual mesh cell ---*/
581-
582- // numerics->SetVolume(geometry->nodes->GetVolume(iPoint));
583-
584- // /*--- Get control volume size. ---*/
585- // su2double Volume = geometry->nodes->GetVolume(iPoint);
586-
587- // /*--- Compute the residual for this control volume and subtract. ---*/
588- // for (auto iVar = 0; iVar < nVar; iVar++) {
589- // LinSysRes(iPoint, iVar) += nodes->GetUserDefinedSource(iPoint)[iVar] * Volume;
590- // }
591- // }
592- // END_SU2_OMP_FOR
593- // AD::EndNoSharedReading();
594- // }
595-
596572}
597-
598-
599- // void CSpeciesSolver::Custom_Source_Residual(CGeometry *geometry, CSolver **solver_container,
600- // CNumerics **numerics_container, CConfig *config, unsigned short iMesh) {
601-
602- // /*--- Pick one numerics object per thread. ---*/
603- // CNumerics* numerics = numerics_container[SOURCE_SECOND_TERM + omp_get_thread_num()*MAX_TERMS];
604-
605- // unsigned short iVar;
606- // unsigned long iPoint;
607- // AD::StartNoSharedReading();
608-
609- // SU2_OMP_FOR_STAT(omp_chunk_size)
610- // for (iPoint = 0; iPoint < nPointDomain; iPoint++) {
611-
612- // /*--- Load the volume of the dual mesh cell ---*/
613- // numerics->SetVolume(geometry->nodes->GetVolume(iPoint));
614-
615- // /*--- Get control volume size. ---*/
616- // su2double Volume = geometry->nodes->GetVolume(iPoint);
617- // /*--- Compute the residual for this control volume and subtract. ---*/
618- // for (iVar = 0; iVar < nVar; iVar++) {
619- // LinSysRes(iPoint,iVar) -= nodes->GetUserDefinedSource(iPoint)[iVar] * Volume;
620- // }
621- // }
622- // END_SU2_OMP_FOR
623-
624- // AD::EndNoSharedReading();
625-
626- // }
0 commit comments