Tpetra_DefaultPlatform.cpp

00001 #include "Tpetra_ConfigDefs.hpp"
00002 #include "Tpetra_DefaultPlatform.hpp"
00003 
00004 Teuchos::RCP<Tpetra::DefaultPlatform::DefaultPlatformType> Tpetra::DefaultPlatform::platform_ = Teuchos::null;
00005 
00006 namespace Tpetra {
00007 
00008   DefaultPlatform::DefaultPlatformType &DefaultPlatform::getDefaultPlatform() {
00009     if (!platform_.get()) {
00010 #ifdef HAVE_TPETRA_MPI
00011       platform_ = Teuchos::rcp(new MpiPlatform<Kokkos::DefaultNode::DefaultNodeType>(Kokkos::DefaultNode::getDefaultNode()));
00012 #else
00013       platform_ = Teuchos::rcp(new SerialPlatform<Kokkos::DefaultNode::DefaultNodeType>(Kokkos::DefaultNode::getDefaultNode()));
00014 #endif
00015     }
00016     return *platform_;
00017   }
00018 
00019 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Wed Apr 13 10:21:41 2011 for Tpetra Matrix/Vector Services by  doxygen 1.6.3