OSHertzSelfTest.cpp File Reference
#include "MercuryOS.h"
#include <Walls/InfiniteWall.h>

Classes

class  HertzSelfTest
 

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)
55 {
56  // create an instance of the class
57  HertzSelfTest dpm;
58  // call the solve routine
59  dpm.solve();
60  // create analysis script
61  helpers::writeToFile("OSHertzSelfTest.gnu",
62  "set xlabel 'time [s]'\n"
63  "set ylabel 'kinetic energy [J]'\n"
64  "p 'OSHertzSelfTest.ene' u 1:3\n");
65  logger(INFO,"Run 'gnuplot OSHertzSelfTest.gnu --persist' to show resulting kinetic energy");
66  return 0;
67 }
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
void solve()
The work horse of the code.
Definition: DPMBase.cc:4334
Definition: OSHertzSelfTest.cpp:11
#define INFO(i)
Definition: mumps_solver.h:54
bool writeToFile(const std::string &filename, const std::string &filecontent)
Writes a string to a file.
Definition: FileIOHelpers.cc:29

References INFO, logger, DPMBase::solve(), and helpers::writeToFile().