FEI  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
tester.cpp
1 /*--------------------------------------------------------------------*/
2 /* Copyright 2006 Sandia Corporation. */
3 /* Under the terms of Contract DE-AC04-94AL85000, there is a */
4 /* non-exclusive license for use of this work by or on behalf */
5 /* of the U.S. Government. Export of this program may require */
6 /* a license from the United States Government. */
7 /*--------------------------------------------------------------------*/
8 
9 #include <fei_macros.hpp>
10 
11 #include <test_utils/tester.hpp>
12 
13 #undef fei_file
14 #define fei_file "tester.cpp"
15 #include <fei_ErrMacros.hpp>
16 
17 tester::tester(MPI_Comm comm)
18  : comm_(comm),
19  numProcs_(1),
20  localProc_(0),
21  path_()
22 {
23 #ifndef FEI_SER
24  MPI_Comm_rank(comm_, &localProc_);
25  MPI_Comm_size(comm_, &numProcs_);
26 #endif
27 }
28 
29 tester::~tester()
30 {
31 }
32 
33 void tester::setPath(const std::string& path)
34 {
35  path_ = path;
36 }
37