www.cemf.ir
IOPattern.cpp
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
#include "
processors.hpp
"
21
#include "
IOPattern.hpp
"
22
23
pFlow::IOPattern::IOPattern
(
IOType
iotype)
24
:
25
ioType_(iotype),
26
globalSize_(
processors
::globalSize()),
27
globalRank_(
processors
::globalRank()),
28
isMaster_(
processors
::globalMaster()),
29
isParallel_(
processors
::globalParallel())
30
{}
31
32
pFlow::word
pFlow::IOPattern::exeMode
()
33
{
34
return
processors::globalRunTypeName
();
35
}
pFlow::IOPattern::IOPattern
IOPattern(IOPattern::IOType iotype)
Definition:
IOPattern.cpp:23
processors.hpp
pFlow::word
std::string word
Definition:
builtinTypes.hpp:64
pFlow::processors
This class holds the information about the global execution world and number of processors in communi...
Definition:
processors.hpp:51
pFlow::IOPattern::IOType
IOType
Type of input/output.
Definition:
IOPattern.hpp:52
pFlow::IOPattern::exeMode
static word exeMode()
Definition:
IOPattern.cpp:32
IOPattern.hpp
pFlow::processors::globalRunTypeName
static const char * globalRunTypeName()
Definition:
processors.hpp:104
src
phasicFlow
repository
IOobject
IOPattern.cpp
Generated by
1.8.17