]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Delete mesh in memory after first time step
authormichael <michael@localhost.localdomain>
Thu, 13 Jan 2022 17:29:55 +0000 (18:29 +0100)
committermichael <michael@localhost.localdomain>
Thu, 13 Jan 2022 17:29:55 +0000 (18:29 +0100)
CoreFlows/Models/src/SinglePhase.cxx

index 759182d5bbb57a7e5295e3ef7733e042148c917e..e35f25997d5927f1e5523a8ee021d889e0de6783 100755 (executable)
@@ -3090,6 +3090,10 @@ void SinglePhase::save(){
                }
        }
 
+       if (_nbTimeStep ==0 || _restartWithNewFileName){        // delete mesh in memory        
+               _VV.deleteMEDCouplingMesh();
+               _UU.deleteMEDCouplingMesh();
+       }
        if (_restartWithNewFileName)
                _restartWithNewFileName=false;
 }