From: michael Date: Sat, 28 Nov 2020 23:10:13 +0000 (+0100) Subject: Improved code layout X-Git-Tag: V9_7_0~128 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a5e969c7349c2d9a72c18f1a9f5afc594e5e15b2;p=tools%2Fsolverlab.git Improved code layout --- diff --git a/CoreFlows/Models/src/ProblemFluid.cxx b/CoreFlows/Models/src/ProblemFluid.cxx index e1793de..1eb8c76 100755 --- a/CoreFlows/Models/src/ProblemFluid.cxx +++ b/CoreFlows/Models/src/ProblemFluid.cxx @@ -269,7 +269,7 @@ bool ProblemFluid::iterateTimeStep(bool &converged) converged = _erreur_rel <= _precision_Newton; } - double relaxation=1;//Uk+1=Uk+relaxation*daltaU + double relaxation=1;//Uk+1=Uk+relaxation*deltaU VecAXPY(_conservativeVars, relaxation, _newtonVariation); @@ -679,7 +679,6 @@ double ProblemFluid::computeTimeStep(bool & stop){ stop=false; - /* if(_nbTimeStep+1<_cfl) return (_nbTimeStep+1)*_minl/_maxvp; @@ -889,13 +888,13 @@ void ProblemFluid::addConvectionToSecondMember for(int k=0; k<_nVar; k++) _idm[k] = _nVar*i + k; VecGetValues(_conservativeVars, _nVar, _idm, _Ui); - VecGetValues(_primitiveVars, _nVar, _idm, _Vi); + VecGetValues(_primitiveVars, _nVar, _idm, _Vi); if(!isBord){ for(int k=0; k<_nVar; k++) _idn[k] = _nVar*j + k; VecGetValues(_conservativeVars, _nVar, _idn, _Uj); - VecGetValues(_primitiveVars, _nVar, _idn, _Vj); + VecGetValues(_primitiveVars, _nVar, _idn, _Vj); } else{ for(int k=0; k<_nVar; k++) @@ -1057,10 +1056,10 @@ void ProblemFluid::addConvectionToSecondMember if(_verbose && _nbTimeStep%_freqSave ==0) { cout<<"ProblemFluid::addConvectionToSecondMember end : matrices de décentrement cellules i= " << i << ", et j= " << j<< "):"<-1e30){//Cas simulation flashing double pressure; VecGetValues(_primitiveVars, 1, _idm+1, &pressure);