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 "Albany_StkEpetraMVSource.hpp" 00008 00009 namespace Albany { 00010 00011 StkEpetraMVSource::StkEpetraMVSource(const Teuchos::RCP<STKDiscretization> &disc) : 00012 disc_(disc) 00013 {} 00014 00015 int 00016 StkEpetraMVSource::vectorCount() const 00017 { 00018 return disc_->getSolutionFieldHistoryDepth(); 00019 } 00020 00021 Epetra_Map 00022 StkEpetraMVSource::vectorMap() const 00023 { 00024 return *disc_->getMap(); 00025 } 00026 00027 Teuchos::RCP<Epetra_MultiVector> 00028 StkEpetraMVSource::multiVectorNew() 00029 { 00030 return disc_->getSolutionFieldHistory(); 00031 } 00032 00033 Teuchos::RCP<Epetra_MultiVector> 00034 StkEpetraMVSource::truncatedMultiVectorNew(int vectorCountMax) 00035 { 00036 return disc_->getSolutionFieldHistory(vectorCountMax); 00037 } 00038 00039 const Epetra_MultiVector & 00040 StkEpetraMVSource::filledMultiVector(Epetra_MultiVector &result) 00041 { 00042 disc_->getSolutionFieldHistory(result); 00043 return result; 00044 } 00045 00046 } // end namespace Albany