@@ -288,29 +288,12 @@ class CVariable {
288288 }
289289
290290 /* !
291- * \brief Set to zero the velocity components of the solution.
292- * \param[in] iPoint - Point index.
293- */
294- inline void SetVelSolutionZero (unsigned long iPoint) {
295- for (unsigned long iDim = 0 ; iDim < nDim; iDim++) Solution (iPoint,iDim+1 ) = 0.0 ;
296- }
297-
298- /* !
299- * \brief Specify a vector to set the velocity components of the solution.
291+ * \brief Virtual Member. Specify a vector to set the velocity components of the solution.
292+ * Multiplied by density for compressible cases.
300293 * \param[in] iPoint - Point index.
301294 * \param[in] val_vector - Pointer to the vector.
302295 */
303- inline void SetVelSolutionVector (unsigned long iPoint, const su2double *val_vector) {
304- for (unsigned long iDim = 0 ; iDim < nDim; iDim++) Solution (iPoint, iDim+1 ) = val_vector[iDim];
305- }
306-
307- /* !
308- * \brief Set to zero velocity components of the solution.
309- * \param[in] iPoint - Point index.
310- */
311- inline void SetVelSolutionOldZero (unsigned long iPoint) {
312- for (unsigned long iDim = 0 ; iDim < nDim; iDim++) Solution_Old (iPoint, iDim+1 ) = 0.0 ;
313- }
296+ inline virtual void SetVelSolutionVector (unsigned long iPoint, const su2double *val_vector) { }
314297
315298 /* !
316299 * \brief Add a value to the solution.
@@ -511,12 +494,6 @@ class CVariable {
511494 for (unsigned long iVar = 0 ; iVar < nVar; iVar++) Residual_Sum (iPoint,iVar) = 0.0 ;
512495 }
513496
514- /* !
515- * \brief Set the velocity of the truncation error to zero.
516- * \param[in] iPoint - Point index.
517- */
518- inline virtual void SetVel_ResTruncError_Zero (unsigned long iPoint, unsigned long iSpecies) {}
519-
520497 /* !
521498 * \brief Get the value of the summed residual.
522499 * \param[in] iPoint - Point index.
@@ -662,12 +639,10 @@ class CVariable {
662639 inline void SetVal_ResTruncError_Zero (unsigned long iPoint, unsigned long iVar) {Res_TruncError (iPoint, iVar) = 0.0 ;}
663640
664641 /* !
665- * \brief Set the velocity of the truncation error to zero.
642+ * \brief Set the momentum part of the truncation error to zero.
666643 * \param[in] iPoint - Point index.
667644 */
668- inline void SetVel_ResTruncError_Zero (unsigned long iPoint) {
669- for (unsigned long iDim = 0 ; iDim < nDim; iDim++) Res_TruncError (iPoint,iDim+1 ) = 0.0 ;
670- }
645+ inline virtual void SetVel_ResTruncError_Zero (unsigned long iPoint) { }
671646
672647 /* !
673648 * \brief Set the velocity of the truncation error to zero.
0 commit comments