44 #include <Epetra_ConfigDefs.h> 47 #include <Epetra_MpiComm.h> 49 #include <Epetra_SerialComm.h> 54 #include <lifev/core/LifeV.hpp> 55 #include <lifev/core/filter/GetPot.hpp> 62 using namespace LifeV;
68 int main (
int argc,
char** argv)
72 MPI_Init (&argc, &argv);
73 std::cout <<
"MPI Initialization" << std::endl;
77 const std::string data_file_name = command_line
.follow ( "data_getPot", 2
, "-f", "--file" );
81 int A = dataFile
( "variables/A", 0
);
82 std::cout <<
"A: " << A << std::endl;
84 Real B = dataFile
( "variables/B", 0.0
);
85 std::cout <<
"B: " << B << std::endl;
87 bool C = dataFile
( "variables/C", false );
88 std::cout <<
"C: " << C << std::endl;
90 std::string D = dataFile
( "variables/D", "empty" );
91 std::cout <<
"D: " << D << std::endl;
93 std::string E = dataFile
( "variables/E", "empty empty" );
94 std::cout <<
"E: " << E << std::endl;
99 std::cout <<
"MPI Finalization" << std::endl;
102 return ( EXIT_SUCCESS );
double operator()(const char *VarName, const double &Default) const
GetPot(const int argc_, char **argv_, const char *FieldSeparator=0x0)
void updateInverseJacobian(const UInt &iQuadPt)
int main(int argc, char **argv)
double Real
Generic real data.
int operator()(const char *VarName, int Default) const
const std::string operator()(const char *VarName, const char *Default) const
GetPot(const STRING_VECTOR &FileNameList)
bool operator()(const char *VarName, bool Default) const
const std::string follow(const char *Default, unsigned No, const char *Option,...)