Psi4
globaldefs.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 program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License along
22  * with this program; if not, write to the Free Software Foundation, Inc.,
23  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24  *
25  * @END LICENSE
26  */
27 
32 /*
33 ** GLOBALDEFS.H
34 **
35 ** Global defines for DETCAS
36 **
37 ** C. David Sherrill
38 ** University of California, Berkeley
39 ** April 1998
40 **
41 */
42 
43 #ifndef _psi_src_bin_detcas_globaldefs_h
44 #define _psi_src_bin_detcas_globaldefs_h
45 
46 namespace psi { namespace detcas {
47 
48 #define MAX_RAS_SPACES 4
49 #define IOFF_MAX 50604
50 #ifdef INDEX
51 #undef INDEX
52 #endif
53 #define INDEX(i,j) ( (i>j) ? (ioff[(i)] + (j)): (ioff[(j)] + (i)) )
54 #define MIN0(a,b) (((a)<(b)) ? (a) : (b))
55 #define MAX0(a,b) (((a)>(b)) ? (a) : (b))
56 #define MAX_COMMENT 10
57 
58 }} // end namespace psi::detcas
59 
60 #endif // header guard