flowRule_restart.cpp File Reference
#include "scr/Chute.h"

Classes

class  Restart
 

Functions

int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
16 {
17  //select file name to sestart from
18  string name;
19  if (argc>1) {name=argv[1]; argv++; argc--;} else name="../ini_statistics/H10A22L1M0.5B0.5";
20  //load restart data
21  cout << "restart data: " << name << endl;
22 
24  problem.load_restart_data(name);
25  cout << "new name: " << problem.getName() << endl;
26  //solve
27  problem.setTimeMax(3000);
28  problem.readArguments(argc, argv);
29  if (problem.getTime()>=problem.getTimeMax()) cout << problem.getName() << " already solved" << endl;
30  else {
31  problem.write(std::cout,false);
32  problem.solve();
33  }
34 }
Definition: flowRule_restart.cpp:8
string name
Definition: plotDoE.py:33
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References plotDoE::name, and problem.