liveStatistics.cpp File Reference
#include <iostream>
#include <CG/CG.h>
#include "Mercury3D.h"

Classes

class  Mercury3DRestart
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
19 {
20 // if (argc<2) {
21 // cout << "Please enter the name of the simulation you want to restart and, optionally, the name of the simulation after restart" << endl;
22 // exit(-1);
23 // } else {
24 // cout << "restart data: " << argv[1] << ".restart" << endl;
25 // }
27  problem.setName("ShearCell3D_vol_75nl_surf7_30degree");
28  problem.readRestartFile();
29  problem.setName("Out");
30  problem.setRestarted(false);
31  problem.time = problem.getTime();
32  problem.write(std::cout,false);
33 
34 // auto cg2 = problem.cgHandler.copyAndAddObject(CG<CGCoordinates::R,CGFunctions::Gauss>());
35 // cg2->setN(100);
36 // cg2->setWidth(0.001);
37 // cg2->setTimeMin(problem.getTimeMax());
38 
39 
40  problem.solve(argc-1, argv+1);
41  for (BaseInteraction* p : problem.interactionHandler) {
42  if (p->getOverlap()>0) logger(INFO,"overlap %",p->getOverlap());
43  }
44  logger(INFO,"mean overlap %",problem.interactionHandler.getMeanOverlap());
45  logger(INFO,"mean radius %",problem.particleHandler.getMeanRadius());
46 }
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
float * p
Definition: Tutorial_Map_using.cpp:9
Stores information about interactions between two interactable objects; often particles but could be ...
Definition: BaseInteraction.h:39
Definition: liveStatistics.cpp:11
#define INFO(i)
Definition: mumps_solver.h:54
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References INFO, logger, p, and problem.