Skip to content

Commit cc353ee

Browse files
committed
I think we don't need to set any source terms because they depend on the
gust derivatives, which are zero in all implemented cases. This piece of code belongs to the split velocity method, which is currently not used as far as I understand. However, when trying to remove it, I broke the code elsewhere.
1 parent c015566 commit cc353ee

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

SU2_CFD/src/numerics/flow/flow_sources.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,8 +784,13 @@ CNumerics::ResidualType<> CSourceWindGust::ComputeResidual(const CConfig* config
784784
//residual[3] = smz*Volume;
785785
residual[3] = se*Volume;
786786
} else {
787-
SU2_MPI::Error("You should only be in the gust source term in two dimensions", CURRENT_FUNCTION);
788-
}
787+
// SU2_MPI::Error("You should only be in the gust source term in two dimensions", CURRENT_FUNCTION);
788+
residual[0] = 0.0;
789+
residual[1] = 0.0;
790+
residual[2] = 0.0;
791+
residual[3] = 0.0;
792+
residual[4] = 0.0;
793+
}
789794

790795
/*--- For now the source term Jacobian is just set to zero ---*/
791796
//bool implicit = (config->GetKind_TimeIntScheme_Flow() == EULER_IMPLICIT);

0 commit comments

Comments
 (0)