]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Tested mesh fast equivalence when giving an input field
authormichael <michael@localhost.localdomain>
Fri, 10 Dec 2021 13:37:37 +0000 (14:37 +0100)
committermichael <michael@localhost.localdomain>
Fri, 10 Dec 2021 13:37:37 +0000 (14:37 +0100)
CoreFlows/Models/inc/TransportEquation.hxx
CoreFlows/Models/src/TransportEquation.cxx

index e1f2b9a7544ea718c3a6f7c2b82318230bb9d406..125968f73eac807957af58b5d1370a95eef24fde 100755 (executable)
@@ -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
index c394250edddaae478c4db6738ba4d02d977308ba..aa2a9dcb22cf1bae3c8cd6cbe374d30b5994bd49 100755 (executable)
@@ -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
+}