www.cemf.ir
checkPhasicFlow.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 
21 #include "KokkosTypes.hpp"
22 #include "systemControl.hpp"
23 #include "localProcessors.hpp"
24 #include "commandLine.hpp"
25 
26 
27 using pFlow::output;
28 using pFlow::endl;
29 using pFlow::commandLine;
30 
31 int main( int argc, char* argv[] )
32 {
33 
34  commandLine cmds(
35  "checkPhasicFlow",
36  "A utility to check software version, host and device environments and whether it is linked");
37 
38 if(!cmds.parse(argc, argv)) return 0;
39 
40 // this should be palced in each main
41 #include "initialize.hpp"
42 
43  output<<endl;
44  REPORT(1)<< "You are using "<<Yellow_Text(cmds.productNameCopyright())<<END_REPORT;
47  "This is a built for MPI execution":
48  "This is not a build for MPI execution")<<END_REPORT;
49 
50 // this should be palced in each main
51 #include "finalize.hpp"
52 
53  return 0;
54 }
pFlow::localProcessors::builtForMPI
static bool builtForMPI()
Definition: localProcessors.hpp:149
REPORT
#define REPORT(n)
Definition: streams.hpp:39
systemControl.hpp
KokkosTypes.hpp
pFlow::commandLine
Definition: commandLine.hpp:36
pFlow::endl
iOstream & endl(iOstream &os)
Add newline and flush stream.
Definition: iOstream.hpp:341
Yellow_Text
#define Yellow_Text(text)
Definition: iOstream.hpp:40
initialize.hpp
pFlow::commandLine::parse
bool parse(int argc, char **argv)
Definition: commandLine.cpp:50
pFlow::output
Ostream output
END_REPORT
#define END_REPORT
Definition: streams.hpp:40
localProcessors.hpp
pFlow::floatingPointDescription
word floatingPointDescription()
Definition: builtinTypes.hpp:69
main
int main(int argc, char *argv[])
Definition: checkPhasicFlow.cpp:31
commandLine.hpp
pFlow::commandLine::productNameCopyright
word productNameCopyright() const
Definition: commandLine.hpp:96
finalize.hpp