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_ProjectionErrorObserver.hpp" 00007 00008 namespace MOR { 00009 00010 ProjectionErrorObserver::ProjectionErrorObserver( 00011 const Teuchos::RCP<ReducedSpace> &projectionSpace, 00012 const Teuchos::RCP<MultiVectorOutputFile> &errorFile) : 00013 projectionError_(projectionSpace, errorFile) 00014 { 00015 // Nothing to do 00016 } 00017 00018 void ProjectionErrorObserver::observeSolution(const Epetra_Vector& solution) 00019 { 00020 projectionError_.process(solution); 00021 } 00022 00023 void ProjectionErrorObserver::observeSolution(const Epetra_Vector& solution, double time_or_param_val) 00024 { 00025 projectionError_.process(solution); 00026 } 00027 00028 } // namespace MOR