PlayaSerialGhostImporter.cpp

00001 /* @HEADER@ */
00002 //
00003  /* @HEADER@ */
00004 
00005 #include "PlayaSerialGhostImporter.hpp"
00006 #include "PlayaSerialGhostView.hpp"
00007 #include "PlayaSerialVector.hpp"
00008 
00009 
00010 #ifndef HAVE_TEUCHOS_EXPLICIT_INSTANTIATION
00011 #include "PlayaVectorImpl.hpp"
00012 #endif
00013 
00014 using namespace Teuchos;
00015 using namespace Playa;
00016 
00017 
00018 
00019 void SerialGhostImporter
00020 ::importView(const Vector<double>& x,
00021              RCP<GhostView<double> >& ghostView) const
00022 {
00023   RCP<SerialVector> xPtr = rcp_dynamic_cast<SerialVector>(x.ptr());
00024   ghostView = rcp(new SerialGhostView(xPtr));
00025 }
00026     

doxygen