00001 //*****************************************************************// 00002 // Albany 2.0: Copyright 2012 Sandia Corporation // 00003 // This Software is released under the BSD license detailed // 00004 // in the file "license.txt" in the top-level Albany directory // 00005 //*****************************************************************// 00006 00007 #include "MOR_EpetraMVSource.hpp" 00008 00009 #include "MOR_EpetraUtils.hpp" 00010 00011 namespace MOR { 00012 00013 Teuchos::RCP<Epetra_MultiVector> 00014 BasicEpetraMVSource::truncatedMultiVectorNew(int vectorCountMax) 00015 { 00016 // Inefficient default implementation: 00017 // Generate the full multivector then returns a truncated view 00018 const Teuchos::RCP<Epetra_MultiVector> fullMultiVector = this->multiVectorNew(); 00019 return nonConstTruncatedView(fullMultiVector, vectorCountMax); 00020 } 00021 00022 } // end namespace MOR