www.cemf.ir
dataIORegular.hpp
Go to the documentation of this file.
1
/*------------------------------- phasicFlow ---------------------------------
2
O C enter of
3
O O E ngineering and
4
O O M ultiscale modeling of
5
OOOOOOO F luid flow
6
------------------------------------------------------------------------------
7
Copyright (C): www.cemf.ir
8
email: hamid.r.norouzi AT gmail.com
9
------------------------------------------------------------------------------
10
Licence:
11
This file is part of phasicFlow code. It is a free software for simulating
12
granular and multiphase flows. You can redistribute it and/or modify it under
13
the terms of GNU General Public License v3 or any other later versions.
14
15
phasicFlow is distributed to help others in their research in the field of
16
granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the
17
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
19
-----------------------------------------------------------------------------*/
20
21
#ifndef __datIONoMPI_hpp__
22
#define __datIONoMPI_hpp__
23
24
#include "
dataIO.hpp
"
25
26
namespace
pFlow
27
{
28
template
<
typename
T>
29
class
dataIORegular
30
:
31
public
dataIO
<T>
32
{
33
public
:
34
35
using
DataIORegularType
=
dataIORegular<T>
;
36
37
using
DataIOType
=
dataIO<T>
;
38
39
protected
:
40
41
bool
gatherData
(
span<T>
data )
override
42
{
44
this->
bufferSpan_
= data;
45
return
true
;
46
}
47
48
public
:
49
50
TypeInfoTemplate111
(
"dataIO"
,T,
"regular"
);
51
52
dataIORegular
(
const
IOPattern
& iop)
53
:
54
dataIO
<T>(iop)
55
{}
56
57
dataIORegular
(
const
dataIORegular
&) =
default
;
58
59
dataIORegular
(
dataIORegular
&&) =
default
;
60
61
dataIORegular
&
operator=
(
const
dataIORegular
&) =
default
;
62
63
dataIORegular
&
operator=
(
dataIORegular
&&) =
default
;
64
65
~dataIORegular
() =
default
;
66
67
add_vCtor
68
(
69
DataIOType
,
70
DataIORegularType
,
71
IOPattern
72
);
73
74
};
75
76
77
}
78
79
80
#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)
src
phasicFlow
streams
dataIO
dataIORegular.hpp
Generated by
1.8.17