From: michael Date: Mon, 30 Nov 2020 13:03:40 +0000 (+0100) Subject: Corrcted memory error X-Git-Tag: V9_7_0~120 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6a4a11d9760eeeb3c92f0cd83c71a35e2c245120;p=tools%2Fsolverlab.git Corrcted memory error --- diff --git a/CoreFlows/Models/src/FiveEqsTwoFluid.cxx b/CoreFlows/Models/src/FiveEqsTwoFluid.cxx index cd31022..57a3722 100755 --- a/CoreFlows/Models/src/FiveEqsTwoFluid.cxx +++ b/CoreFlows/Models/src/FiveEqsTwoFluid.cxx @@ -95,6 +95,7 @@ void FiveEqsTwoFluid::convectionState( const long &i, const long &j, const bool VecGetValues(_Uext, _nVar, _idm, _Uj); else VecGetValues(_conservativeVars, _nVar, _idm, _Uj); + if(_verbose && _nbTimeStep%_freqSave ==0) { cout<<"Convection Left state cell " << i<< ": "<0) { cout<<"Warning FiveEqsTwoFluid::convectionMatrices: dgeev_ did not compute all the eigenvalues, trying Rusanov scheme "<getInternalEnergy(T,rho_v) + v1_2/2) +_externalStates[1+_Ndim]*(_fluides[1]->getInternalEnergy(T,rho_l) + v2_2/2); - // _Vj external primitives _Vj[0] = alpha; _Vj[_nVar-1] = T; @@ -1506,7 +1507,6 @@ void FiveEqsTwoFluid::setBoundaryState(string nameOfGroup, const int &j,double * hydroPress*=_externalStates[0]+_externalStates[_Ndim];//multiplication by rho the total density //Building the external state - VecGetValues(_primitiveVars, _nVar, _idm,_Vj); double alpha=_limitField[nameOfGroup].alpha; double pression=_limitField[nameOfGroup].p+hydroPress; double T=_limitField[nameOfGroup].T; @@ -1523,7 +1523,6 @@ void FiveEqsTwoFluid::setBoundaryState(string nameOfGroup, const int &j,double * } _externalStates[_nVar-1]= alpha *rho_v*(_fluides[0]->getInternalEnergy(T,rho_v)+v1_2/2) +(1-alpha)*rho_l*(_fluides[1]->getInternalEnergy(T,rho_l)+v2_2/2); - // _Vj external primitives _Vj[0] = alpha; _Vj[1] = pression; @@ -1558,7 +1557,6 @@ void FiveEqsTwoFluid::setBoundaryState(string nameOfGroup, const int &j,double * hydroPress*=_externalStates[0]+_externalStates[_Ndim];//multiplication by rho the total density //Building the external state - VecGetValues(_primitiveVars, _nVar, _idm,_Vj); double pression_int=_Vj[1]; double pression_ext=_limitField[nameOfGroup].p+hydroPress; double T=_Vj[_nVar-1];