From: michael Date: Fri, 10 Dec 2021 13:37:37 +0000 (+0100) Subject: Tested mesh fast equivalence when giving an input field X-Git-Tag: V9_8_0~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=45834101114d33956ca3d6710d831ed3bafa5632;p=tools%2Fsolverlab.git Tested mesh fast equivalence when giving an input field --- diff --git a/CoreFlows/Models/inc/TransportEquation.hxx b/CoreFlows/Models/inc/TransportEquation.hxx index e1f2b9a..125968f 100755 --- a/CoreFlows/Models/inc/TransportEquation.hxx +++ b/CoreFlows/Models/inc/TransportEquation.hxx @@ -136,12 +136,7 @@ public : * \param [in] Field * \param [out] void * */ - void setRodTemperatureField(Field rodTemperature){ - rodTemperature.getMesh().checkFastEquivalWith(_mesh); - _rodTemperatureField=rodTemperature; - _rodTemperatureFieldSet=true; - _isStationary=false;//Source term may be changed after previously reaching a stationary state - } + void setRodTemperatureField(Field rodTemperature); /** \fn setRodTemperature * \brief Set a constant rod temperature field diff --git a/CoreFlows/Models/src/TransportEquation.cxx b/CoreFlows/Models/src/TransportEquation.cxx index c394250..aa2a9dc 100755 --- a/CoreFlows/Models/src/TransportEquation.cxx +++ b/CoreFlows/Models/src/TransportEquation.cxx @@ -638,3 +638,14 @@ TransportEquation::setInputField(const string& nameField, Field& inputField ) throw CdmathException("TransportEquation::setInputField error : Unknown Field name"); } } + +void +TransportEquation::setRodTemperatureField(Field rodTemperature){ + if(!_initialDataSet) + throw CdmathException("!!!!!!!! TransportEquation::setRodTemperatureField() set initial field first"); + + rodTemperature.getMesh().checkFastEquivalWith(_mesh); + _rodTemperatureField=rodTemperature; + _rodTemperatureFieldSet=true; + _isStationary=false;//Source term may be changed after previously reaching a stationary state +}