Zoltan2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Zoltan2_Standards.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Zoltan2: A package of combinatorial algorithms for scientific computing
4 //
5 // Copyright 2012 NTESS and the Zoltan2 contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
21 #ifndef _ZOLTAN2_STANDARDS_HPP_
22 #define _ZOLTAN2_STANDARDS_HPP_
23 
24 #include <Zoltan2_Version.hpp>
25 
27 // Generated by CMake
28 #include <Zoltan2_config.h>
29 
31 // Omit time consuming actions?
32 
33 #ifdef Z2_OMIT_ALL_OPTIONAL_ACTIONS
34 #define Z2_OMIT_ALL_STATUS_MESSAGES
35 #define Z2_OMIT_ALL_PROFILING
36 #define Z2_OMIT_ALL_ERROR_CHECKING
37 #endif
38 
40 // Frequently used Trilinos symbols
41 
42 #include <Teuchos_RCP.hpp>
43 #include <Teuchos_Array.hpp>
44 #include <Teuchos_Tuple.hpp>
45 #include <Teuchos_ArrayRCP.hpp>
46 #include <Teuchos_ArrayView.hpp>
47 #include <Teuchos_ParameterList.hpp>
48 #include <Teuchos_ParameterEntry.hpp>
49 #include <Teuchos_DefaultComm.hpp>
50 #include <Teuchos_Comm.hpp>
51 #include <Teuchos_CommHelpers.hpp>
52 #include <Teuchos_toString.hpp>
53 #include <Tpetra_Core.hpp>
54 #include <Tpetra_ConfigDefs.hpp>
55 
56 namespace Zoltan2{
57 
58 using Teuchos::ENull;
59 using Teuchos::RCP;
60 using Teuchos::rcp;
61 using Teuchos::rcp_const_cast;
62 using Teuchos::rcp_implicit_cast;
63 using Teuchos::rcp_dynamic_cast;
64 using Teuchos::Array;
65 using Teuchos::Tuple;
66 using Teuchos::ArrayRCP;
67 using Teuchos::arcp_const_cast;
68 using Teuchos::arcp_reinterpret_cast;
69 using Teuchos::arcp;
70 using Teuchos::ArrayView;
71 using Teuchos::av_const_cast;
72 #ifdef HAVE_ZOLTAN2_MPI
73 using Teuchos::MpiComm;
74 #endif
75 using Teuchos::Comm;
76 using Teuchos::SerialComm;
77 using Teuchos::CommRequest;
78 using Teuchos::ParameterList;
79 using Teuchos::ParameterEntry;
80 using Teuchos::reduceAll;
81 using Teuchos::gatherAll;
82 
84 
85 }
86 
87 // Workarounds for Purify; it doesn't like the standard string operations
88 #ifdef HAVE_ZOLTAN2_PURIFY
89 #define strcmp Zoltan_strcmp
90 #define strncmp Zoltan_strncmp
91 #define strcasecmp Zoltan_strcasecmp
92 #define strncasecmp Zoltan_strncasecmp
93 #endif
94 
95 // For debugging
96 #define HELLO
97 //#define HELLO printf("HELLO from %s:%i\n", __FILE__, __LINE__); // Turn on for debug
98 
100 // Internal macros and methods
102 
103 #include <Zoltan2_Exceptions.hpp>
104 
105 
106 #endif
Defines exception handling macros.
Implementation of Trilinos convention for versioning.
Tpetra::global_size_t global_size_t