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_InputFileEpetraMVSource.hpp" 00008 00009 namespace MOR { 00010 00011 InputFileEpetraMVSource::InputFileEpetraMVSource( 00012 const Epetra_Map &vectorMap, 00013 const Teuchos::RCP<MultiVectorInputFile> &inputFile) : 00014 vectorMap_(vectorMap), 00015 inputFile_(inputFile), 00016 vectorCount_(inputFile->readVectorCount(vectorMap.Comm())) 00017 { 00018 } 00019 00020 int 00021 InputFileEpetraMVSource::vectorCount() const 00022 { 00023 return vectorCount_; 00024 } 00025 00026 Epetra_Map 00027 InputFileEpetraMVSource::vectorMap() const 00028 { 00029 return vectorMap_; 00030 } 00031 00032 Teuchos::RCP<Epetra_MultiVector> 00033 InputFileEpetraMVSource::multiVectorNew() 00034 { 00035 return inputFile_->read(vectorMap_); 00036 } 00037 00038 } // end namespace MOR 00039