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

dataIORegular.hpp
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.
-----------------------------------------------------------------------------*/
#ifndef __datIONoMPI_hpp__
#define __datIONoMPI_hpp__
#include "dataIO.hpp"
namespace pFlow
{
template<typename T>
class dataIORegular
:
public dataIO<T>
{
public:
using DataIORegularType = dataIORegular<T>;
using DataIOType = dataIO<T>;
protected:
bool gatherData(span<T> data ) override
{
this->bufferSpan_ = data;
return true;
}
public:
TypeInfoTemplate111("dataIO",T,"regular");
dataIORegular(const IOPattern& iop)
:
dataIO<T>(iop)
{}
dataIORegular(const dataIORegular&) = default;
dataIORegular(dataIORegular&&) = default;
dataIORegular& operator=(const dataIORegular&) = default;
dataIORegular& operator=(dataIORegular&&) = default;
~dataIORegular() = default;
add_vCtor
(
DataIOType,
DataIORegularType,
IOPattern
);
};
}
#endif
pFlow::span
Definition: span.hpp:31
pFlow::dataIORegular::~dataIORegular
~dataIORegular()=default
pFlow::dataIORegular::TypeInfoTemplate111
TypeInfoTemplate111("dataIO", T,"regular")
pFlow::dataIO
Definition: dataIO.hpp:67
pFlow::dataIORegular::dataIORegular
dataIORegular(const IOPattern &iop)
Definition: dataIORegular.hpp:52
pFlow
Definition: demGeometry.hpp:27
pFlow::dataIO::bufferSpan_
span< T > bufferSpan_
Definition: dataIO.hpp:75
pFlow::dataIORegular::operator=
dataIORegular & operator=(const dataIORegular &)=default
pFlow::dataIORegular::gatherData
bool gatherData(span< T > data) override
gather data from all processors and put the results in buffer_
Definition: dataIORegular.hpp:41
pFlow::IOPattern
Definition: IOPattern.hpp:32
pFlow::dataIORegular::DataIORegularType
dataIORegular< T > DataIORegularType
Definition: dataIORegular.hpp:35
pFlow::dataIORegular
Definition: dataIORegular.hpp:29
dataIO.hpp
pFlow::dataIORegular::DataIOType
dataIO< T > DataIOType
Definition: dataIORegular.hpp:37
pFlow::dataIORegular::add_vCtor
add_vCtor(DataIOType, DataIORegularType, IOPattern)