46 #ifndef XPETRA_VECTORFACTORY_HPP
47 #define XPETRA_VECTORFACTORY_HPP
52 #ifdef HAVE_XPETRA_TPETRA
55 #ifdef HAVE_XPETRA_EPETRA
66 template <
class Scalar,
71 #undef XPETRA_VECTORFACTORY_SHORT
81 static RCP<Vector>
Build(
const Teuchos::RCP<const Map> &map,
bool zeroOut=
true) {
89 #ifdef HAVE_XPETRA_TPETRA
99 #define XPETRA_VECTORFACTORY_SHORT
102 #if (defined(HAVE_XPETRA_EPETRA) && !defined(XPETRA_EPETRA_NO_32BIT_GLOBAL_INDICES))
114 #undef XPETRA_VECTORFACTORY_SHORT
123 static RCP<Vector>
Build(
const Teuchos::RCP<const Map>& map,
bool zeroOut=
true) {
127 if(!bmap.is_null()) {
132 #ifdef HAVE_XPETRA_TPETRA
149 #if (defined(HAVE_XPETRA_EPETRA) && !defined(XPETRA_EPETRA_NO_64BIT_GLOBAL_INDICES))
159 #undef XPETRA_VECTORFACTORY_SHORT
168 static RCP<Vector>
Build(
const Teuchos::RCP<const Map>& map,
bool zeroOut=
true) {
172 if(!bmap.is_null()) {
176 #ifdef HAVE_XPETRA_TPETRA
190 #define XPETRA_VECTORFACTORY_SHORT
193 #if (defined(HAVE_XPETRA_EPETRA) && !defined(XPETRA_EPETRA_NO_32BIT_GLOBAL_INDICES))
207 #undef XPETRA_VECTORFACTORY_SHORT
216 static RCP<Vector>
Build(
const Teuchos::RCP<const Map>& map,
bool zeroOut=
true) {
220 if(!bmap.is_null()) {
224 #ifdef HAVE_XPETRA_TPETRA
239 #if (defined(HAVE_XPETRA_EPETRA) && !defined(XPETRA_EPETRA_NO_64BIT_GLOBAL_INDICES))
253 #undef XPETRA_VECTORFACTORY_SHORT
262 static RCP<Vector>
Build(
const Teuchos::RCP<const Map>& map,
bool zeroOut=
true) {
266 if(!bmap.is_null()) {
270 #ifdef HAVE_XPETRA_TPETRA
285 #define XPETRA_VECTORFACTORY_SHORT