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