00001 //@HEADER 00002 // ************************************************************************ 00003 // 00004 // NOX: An Object-Oriented Nonlinear Solver Package 00005 // Copyright (2002) Sandia Corporation 00006 // 00007 // LOCA: Library of Continuation Algorithms Package 00008 // Copyright (2005) Sandia Corporation 00009 // 00010 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive 00011 // license for use of this work by or on behalf of the U.S. Government. 00012 // 00013 // This library is free software; you can redistribute it and/or modify 00014 // it under the terms of the GNU Lesser General Public License as 00015 // published by the Free Software Foundation; either version 2.1 of the 00016 // License, or (at your option) any later version. 00017 // 00018 // This library is distributed in the hope that it will be useful, but 00019 // WITHOUT ANY WARRANTY; without even the implied warranty of 00020 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00021 // Lesser General Public License for more details. 00022 // 00023 // You should have received a copy of the GNU Lesser General Public 00024 // License along with this library; if not, write to the Free Software 00025 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00026 // USA 00027 // 00028 // Questions? Contact Roger Pawlowski (rppawlo@sandia.gov) or 00029 // Eric Phipps (etphipp@sandia.gov), Sandia National Laboratories. 00030 // ************************************************************************ 00031 // CVS Information 00032 // $Source: /space/CVS/Trilinos/packages/nox/src-loca/src-epetra/LOCA_Epetra_Interface_MassMatrix.H,v $ 00033 // $Author: dmdunla $ 00034 // $Date: 2006/08/24 21:31:40 $ 00035 // $Revision: 1.5 $ 00036 // ************************************************************************ 00037 //@HEADER 00038 00039 #ifndef LOCA_EPETRA_INTERFACE_MASSMATRIX_H 00040 #define LOCA_EPETRA_INTERFACE_MASSMATRIX_H 00041 00042 #include "NOX_Common.H" 00043 #include "NOX_Abstract_Group.H" 00044 00045 // Forward declarations 00046 class Epetra_Vector; 00047 00048 namespace LOCA { 00049 namespace Epetra { 00050 namespace Interface { 00051 00060 class MassMatrix { 00061 00062 public: 00063 00065 MassMatrix() {}; 00066 00068 virtual ~MassMatrix() {}; 00069 00075 virtual bool computeMassMatrix(const Epetra_Vector& x) = 0; 00076 00092 virtual void setOldSolution(const Epetra_Vector& x,const int timeStep) { 00093 cout << "WARNING: " 00094 << "LOCA::Epetra::Interface::MassMatrix::setOldSolution" 00095 << "\n\tempty default implementation not overloaded!" << endl; 00096 }; 00097 00099 virtual void setOldSolutionFirstStep() { 00100 cout << "WARNING: " 00101 << "LOCA::Epetra::Interface::MassMatrix::setOldSolutionFirstStep" 00102 << "\n\tempty default implementation not overloaded!" << endl; 00103 }; 00104 00113 virtual void dataForPrintSolution(const int conStep, const int timeStep, 00114 const int totalTimeSteps) {}; 00115 00116 }; 00117 } // namespace Interface 00118 } // namespace Epetra 00119 } // namespace LOCA 00120 00121 #endif