snapshot.cpp File Reference
#include <iostream>
#include "Chute.h"

Classes

class  ChutePeriodic
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
35 {
36  if (argc < 2)
37  {
38  logger(ERROR, "snapshot.exe problemname [args]");
39  }
40  else
41  {
42  logger(INFO, "restart data: %.restart", argv[1]);
43  }
45  problem.setName(argv[1]);
46  problem.readRestartFile();
47  problem.writeToLocalFolder();
48  problem.setXBallsScale(1.7 / problem.getZMax());
49  //problem.setXBallsColourMode(10);
50  problem.setXBallsAdditionalArguments(
51  "-v0 -solidf -h 900 -w 1450 -o 120 -noborder 4 -rgbb 60 -rgbg 60 -rgbr 60 -rgbs 90");
52  problem.readArguments(argc - 1, argv + 1);
53  problem.solve();
54 
55  std::stringstream command("");
56  command << "./" << problem.getName() << ".disp -of " << problem.getName() << ".pdf -die";
57  int out = system(command.str().c_str());
58  logger(INFO, "The return value by system =%", out);
59 
60 }
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
LL< Log::ERROR > ERROR
Error log level.
Definition: Logger.cc:32
Definition: chute_periodic_autorun.cpp:16
#define INFO(i)
Definition: mumps_solver.h:54
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213
std::ofstream out("Result.txt")

References ERROR, INFO, logger, out(), and problem.