# PhasicFlow: src/phasicFlow/streams/token/token.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.

token.cpp
Go to the documentation of this file.
/*------------------------------- phasicFlow ---------------------------------
O C enter of
O O E ngineering and
O O M ultiscale modeling of
OOOOOOO F luid flow
------------------------------------------------------------------------------
Copyright (C): www.cemf.ir
email: hamid.r.norouzi AT gmail.com
------------------------------------------------------------------------------
Licence:
This file is part of phasicFlow code. It is a free software for simulating
granular and multiphase flows. You can redistribute it and/or modify it under
the terms of GNU General Public License v3 or any other later versions.
phasicFlow is distributed to help others in their research in the field of
granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-----------------------------------------------------------------------------*/
// based on OpenFOAM stream, with some modifications/simplifications
// to be tailored to our needs
#include "token.hpp"
#include "error.hpp"
#include "iOstream.hpp"
void pFlow::token::parseError(const char* expected) const
{
fatalError
<< "Parse error, expected a " << expected
<< ", found \n " << *this << endl;
}
pFlow::token::parseError
void parseError(const char *expected) const
Parse error, expected 'expected', found ...
Definition: token.cpp:30
token.hpp
pFlow::endl
iOstream & endl(iOstream &os)
Add newline and flush stream.
Definition: iOstream.hpp:341
fatalError
#define fatalError
Report a fatal error and exit the applicaiton.
Definition: error.hpp:70
iOstream.hpp
error.hpp