Psi4
BasesBase.h
Go to the documentation of this file.
1 /*
2  * @BEGIN LICENSE
3  *
4  * Psi4: an open-source quantum chemistry software package
5  *
6  * Copyright (c) 2007-2017 The Psi4 Developers.
7  *
8  * The copyrights for code used from other parties are included in
9  * the corresponding files.
10  *
11  * This file is part of Psi4.
12  *
13  * Psi4 is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU Lesser General Public License as published by
15  * the Free Software Foundation, version 3.
16  *
17  * Psi4 is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU Lesser General Public License for more details.
21  *
22  * You should have received a copy of the GNU Lesser General Public License along
23  * with Psi4; if not, write to the Free Software Foundation, Inc.,
24  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25  *
26  * @END LICENSE
27  */
28 #ifndef STUPIDWORKAROUND_H_
29 #define STUPIDWORKAROUND_H_
30 
31 namespace psi{
33 class BasesBase{
34 private:
35  bool ImSpecial_;
36 
37 protected:
38  BasesBase();
40  int WhoIsSpecial()const;
41 
43  bool ImSpecial()const;
44 };
45 
46 }
47 
48 
49 #endif /* STUPIDWORKAROUND_H_ */
bool ImSpecial() const
Returns true if this is the lucky MPI process that gets to read/write.
Definition: BasesBase.cc:45
BasesBase()
Returns true if this is the lucky MPI process that gets to read/write.
Definition: BasesBase.cc:41
bool ImSpecial_
Definition: BasesBase.h:35
int WhoIsSpecial() const
Returns the integer of the Lucky MPI process.
Definition: BasesBase.cc:36
I needed to syphon off the calls that involve Worldcomm, hence this class.
Definition: BasesBase.h:33