Skip to content
Snippets Groups Projects
Commit 76346047 authored by Van Dung NGUYEN's avatar Van Dung NGUYEN
Browse files

move files after resetting all archiving (all filesa arew closed)

parent 5ba576e8
No related branches found
No related tags found
No related merge requests found
...@@ -2874,14 +2874,7 @@ void nonLinearMechSolver::init(){ ...@@ -2874,14 +2874,7 @@ void nonLinearMechSolver::init(){
} }
#endif // HAVE_MPI #endif // HAVE_MPI
} }
else // move all archiving data in a folder to start a new analysis
// keep only the previous one ( --> not valid if 2 switches)
// Linux only ?? (implementation MAC and Windows)
{
moveFiles("previousScheme","mv");
if(!_disableResetRestart) _resetRestart=true; //to avoid restart when shitfing schemes
restartManager::resetLastSavedStep();
}
   
   
if(whatScheme==Explicit or whatScheme==Multi) if(whatScheme==Explicit or whatScheme==Multi)
...@@ -2942,7 +2935,16 @@ void nonLinearMechSolver::init(){ ...@@ -2942,7 +2935,16 @@ void nonLinearMechSolver::init(){
it->resetArchiving(getFileSavingPrefix()); it->resetArchiving(getFileSavingPrefix());
} }
} }
if (_previousInit) // move all archiving data in a folder to start a new analysis
// keep only the previous one ( --> not valid if 2 switches)
// Linux only ?? (implementation MAC and Windows)
{
moveFiles("previousScheme","mv");
if(!_disableResetRestart) _resetRestart=true; //to avoid restart when shitfing schemes
restartManager::resetLastSavedStep();
} }
};
   
   
void nonLinearMechSolver::moveFiles(const std::string &dirName, const std::string &cm) void nonLinearMechSolver::moveFiles(const std::string &dirName, const std::string &cm)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment