MercuryDPM  Beta
 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 "CMakeDefinitions.h"
#include "DPMBaseXBalls.icc"
#include "Logger.h"
#include "Particles/BaseParticle.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

Definition at line 63 of file DPMBase.cc.

Referenced by DPMBase::constructor().

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

Definition at line 75 of file DPMBase.cc.

References DPMBase::write().

76 {
77  md.write(os);
78  return os;
79 }
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:1642