MercuryDPM  Alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DPMBase.cc File Reference
#include "DPMBase.h"
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <fstream>
#include <cstdlib>
#include <limits>
#include <string>
#include <sstream>
#include <cstdio>
#include <cstring>
#include <sys/types.h>
#include <sys/stat.h>
#include <Species/LinearViscoelasticSlidingFrictionSpecies.h>
#include "Interactions/Interaction.h"
#include "Species/Species.h"
#include "Species/LinearViscoelasticSpecies.h"
#include "Species/FrictionForceSpecies/SlidingFrictionSpecies.h"
#include "Particles/BaseParticle.h"
#include "CMakeDefinitions.h"
#include "DPMBaseXBalls.icc"
#include "Logger.h"
#include "Walls/BaseWall.h"
#include "Walls/InfiniteWall.h"
#include "Boundaries/PeriodicBoundary.h"

Go to the source code of this file.

Functions

void logWriteAndDie (std::string module, std::string message)
 todo strcmp relies on this, should be changed to more modern version More...
 
std::ostream & operator<< (std::ostream &os, DPMBase &md)
 

Function Documentation

void logWriteAndDie ( std::string  module,
std::string  message 
)

todo strcmp relies on this, should be changed to more modern version

Parameters
[in]module
[in]message
Todo:
Why is this here, and not in the logger?

Definition at line 65 of file DPMBase.cc.

Referenced by DPMBase::constructor().

66 {
67  std::cerr << "A fatal error has occured"
68  << "\n Module :" << module
69  << "\n Message :" << message << std::endl;
70 
71  std::exit(-1);
72 }
std::ostream& operator<< ( std::ostream &  os,
DPMBase md 
)
Parameters
[in]os
[in]md

Definition at line 78 of file DPMBase.cc.

References DPMBase::write().

79 {
80  md.write(os);
81  return os;
82 }
virtual void write(std::ostream &os, bool writeAllParticles=true) const
Loads all MD data and plots statistics for all timesteps in the .data file.
Definition: DPMBase.cc:1897