ClosedCSCRestart.cpp File Reference
#include "Mercury3D.h"
#include "Walls/InfiniteWall.h"
#include <sys/time.h>

Classes

class  ClosedCSCRestart
 

Functions

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

Function Documentation

◆ get_wall_time()

double get_wall_time ( )
28  {
29  struct timeval time;
30  if (gettimeofday(&time,NULL)){
31  // Handle error
32  return 0;
33  }
34  return (double)time.tv_sec + (double)time.tv_usec * .000001;
35 }

Referenced by ClosedCSCRestart::ClosedCSCRestart(), and ClosedCSCRestart::writeOutputFiles().

◆ main()

int main ( int argc  ,
char argv[] 
)
107  {
108  Mdouble pressure = 30;
109  ClosedCSCRestart SC(pressure);
110  SC.setTimeMax(2000);
111  SC.solve(argc, argv);
112  if (SC.getTimeMax()<2000)
113  SC.restart();
114 }
double Mdouble
Definition: GeneralDefine.h:34
Definition: ClosedCSCRestart.cpp:37

References DPMBase::getTimeMax(), ClosedCSCRestart::restart(), DPMBase::setTimeMax(), and DPMBase::solve().