# PhasicFlow: src/phasicFlow/triSurface/subSurface.cpp Source File
PhasicFlow is an open-source parallel DEM (discrete element method) package for simulating granular flow. It is developed in C++ and can be exectued on both GPU (like CUDA) and CPU.

subSurface.cpp
Go to the documentation of this file.
#include "subSurface.hpp"
pFlow::iOstream& pFlow::operator<<(iOstream &str, const subSurface &sub)
{
str.beginSquare()<<sub.name_<<token::SPACE<<
sub.start_<<token::SPACE<<sub.end_<<token::SPACE<<
sub.pointStart_<<token::SPACE<<sub.pointEnd_;
str.endSquare();
str.check(FUNCTION_NAME);
return str;
}
pFlow::iIstream& pFlow::operator>>(iIstream &str, subSurface &sub)
{
str.readBeginSquare("subSurface");
str >> sub.name_;
str >> sub.start_;
str >> sub.end_;
str >> sub.pointStart_;
str >> sub.pointEnd_;
str.readEndSquare("subSurface");
str.check(FUNCTION_NAME);
return str;
}
FUNCTION_NAME
#define FUNCTION_NAME
Definition: pFlowMacros.hpp:29
pFlow::IOstream::check
virtual bool check(const char *operation) const
Check IOstream status for given operation.
Definition: IOstream.cpp:42
pFlow::iIstream
Interface class for any input stream
Definition: iIstream.hpp:37
pFlow::subSurface::pointEnd_
uint32 pointEnd_
Definition: subSurface.hpp:36
pFlow::subSurface::end_
uint32 end_
Definition: subSurface.hpp:32
pFlow::iOstream::beginSquare
virtual iOstream & beginSquare()
Write begin list "[".
Definition: iOstream.cpp:160
pFlow::operator>>
INLINE_FUNCTION iIstream & operator>>(iIstream &str, AB3History &ab3)
Definition: AdamsBashforth3.hpp:41
pFlow::operator<<
INLINE_FUNCTION iOstream & operator<<(iOstream &str, const AB3History &ab3)
Definition: AdamsBashforth3.hpp:57
subSurface.hpp
pFlow::subSurface::name_
word name_
Definition: subSurface.hpp:38
pFlow::subSurface::start_
uint32 start_
Definition: subSurface.hpp:30
pFlow::iIstream::readBeginSquare
bool readBeginSquare(const char *funcName)
Begin read of data chunk, starts with '('.
Definition: iIstream.cpp:277
pFlow::subSurface::pointStart_
uint32 pointStart_
Definition: subSurface.hpp:34
pFlow::iOstream::endSquare
virtual iOstream & endSquare()
Write end list "]".
Definition: iOstream.cpp:179
pFlow::subSurface
Definition: subSurface.hpp:27
pFlow::iOstream
Interface class for any output stream.
Definition: iOstream.hpp:59
pFlow::iIstream::readEndSquare
bool readEndSquare(const char *funcName)
Begin read of data chunk, starts with '('.
Definition: iIstream.cpp:296