• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

MOR_SnapshotCollectionObserver.cpp

Go to the documentation of this file.
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 #include "MOR_SnapshotCollectionObserver.hpp"
00007 
00008 namespace MOR {
00009 
00010 SnapshotCollectionObserver::SnapshotCollectionObserver(
00011     int period,
00012     const Teuchos::RCP<MultiVectorOutputFile> &snapshotFile) :
00013   snapshotCollector_(period, snapshotFile)
00014 {
00015    // Nothing to do
00016 }
00017 
00018 void SnapshotCollectionObserver::observeSolution(const Epetra_Vector& solution)
00019 {
00020   snapshotCollector_.addVector(0.0, solution);
00021 }
00022 
00023 void SnapshotCollectionObserver::observeSolution(const Epetra_Vector& solution, double time_or_param_val)
00024 {
00025   snapshotCollector_.addVector(time_or_param_val, solution);
00026 }
00027 
00028 } // namespace MOR

Generated on Wed Mar 26 2014 18:36:40 for Albany: a Trilinos-based PDE code by  doxygen 1.7.1