ChuteRestartDemo.cpp File Reference
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cmath>
#include <string.h>
#include "Chute.h"

Classes

class  ChuteRestartDemo
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)

This code tests if chute problems restart properly. As can be seen above, it is very similar to restarting any other Mercury driver.

29 {
30  logger.assert_always(argc > 1, "Please provide a restart file to this code. Usage: ./ChuteRestartDemo -r "
31  "\"ChuteDemo.restart\"");
32  bool isRestart = false;
33  for (unsigned int i = 0; i < argc; ++i)
34  {
35  if (!strcmp(argv[i], "-restart") || !strcmp(argv[i], "-r"))
36  {
37  isRestart = true;
38  }
39  }
40  logger.assert_always(isRestart, "Please provide a restart file to this code. Usage: ./ChuteRestartDemo -r "
41  "ChuteDemo.restart");
43  problem.solve(argc, argv);
44 }
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
Definition: ChuteRestartDemo.cpp:14
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References i, logger, and problem.