00001 // $Id: LOCA_TurningPoint_MooreSpence_ExtendedVector.H,v 1.6 2007/06/21 16:22:52 rhoope Exp $ 00002 // $Source: /space/CVS/Trilinos/packages/nox/src-loca/src/LOCA_TurningPoint_MooreSpence_ExtendedVector.H,v $ 00003 00004 //@HEADER 00005 // ************************************************************************ 00006 // 00007 // NOX: An Object-Oriented Nonlinear Solver Package 00008 // Copyright (2002) Sandia Corporation 00009 // 00010 // LOCA: Library of Continuation Algorithms Package 00011 // Copyright (2005) Sandia Corporation 00012 // 00013 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive 00014 // license for use of this work by or on behalf of the U.S. Government. 00015 // 00016 // This library is free software; you can redistribute it and/or modify 00017 // it under the terms of the GNU Lesser General Public License as 00018 // published by the Free Software Foundation; either version 2.1 of the 00019 // License, or (at your option) any later version. 00020 // 00021 // This library is distributed in the hope that it will be useful, but 00022 // WITHOUT ANY WARRANTY; without even the implied warranty of 00023 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00024 // Lesser General Public License for more details. 00025 // 00026 // You should have received a copy of the GNU Lesser General Public 00027 // License along with this library; if not, write to the Free Software 00028 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00029 // USA 00030 // 00031 // Questions? Contact Roger Pawlowski (rppawlo@sandia.gov) or 00032 // Eric Phipps (etphipp@sandia.gov), Sandia National Laboratories. 00033 // ************************************************************************ 00034 // CVS Information 00035 // $Source: /space/CVS/Trilinos/packages/nox/src-loca/src/LOCA_TurningPoint_MooreSpence_ExtendedVector.H,v $ 00036 // $Author: rhoope $ 00037 // $Date: 2007/06/21 16:22:52 $ 00038 // $Revision: 1.6 $ 00039 // ************************************************************************ 00040 //@HEADER 00041 00042 #ifndef LOCA_TURNINGPOINT_MOORESPENCE_EXTENDEDVECTOR_H 00043 #define LOCA_TURNINGPOINT_MOORESPENCE_EXTENDEDVECTOR_H 00044 00045 #include "LOCA_Extended_Vector.H" // Base class 00046 00047 // Forward declarations 00048 namespace LOCA { 00049 namespace TurningPoint { 00050 namespace MooreSpence { 00051 class ExtendedMultiVector; 00052 } 00053 } 00054 } 00055 00056 namespace LOCA { 00057 00058 namespace TurningPoint { 00059 00060 namespace MooreSpence { 00061 00072 class ExtendedVector : public LOCA::Extended::Vector { 00073 00078 friend class ExtendedMultiVector; 00079 00080 public: 00081 00083 ExtendedVector( 00084 const Teuchos::RCP<LOCA::GlobalData>& global_data, 00085 const NOX::Abstract::Vector& xVec, 00086 const NOX::Abstract::Vector& nullVec, 00087 double bifParam); 00088 00090 ExtendedVector(const ExtendedVector& source, 00091 NOX::CopyType type = NOX::DeepCopy); 00092 00094 virtual ~ExtendedVector(); 00095 00097 virtual NOX::Abstract::Vector& 00098 operator=(const NOX::Abstract::Vector& y); 00099 00101 virtual LOCA::Extended::Vector& 00102 operator=(const LOCA::Extended::Vector& y); 00103 00105 virtual ExtendedVector& operator=(const ExtendedVector& y); 00106 00108 virtual Teuchos::RCP<NOX::Abstract::Vector> 00109 clone(NOX::CopyType type = NOX::DeepCopy) const; 00110 00112 virtual void setVec(const NOX::Abstract::Vector& xVec, 00113 const NOX::Abstract::Vector& nullVec, 00114 double bifPar); 00115 00117 virtual Teuchos::RCP<const NOX::Abstract::Vector> 00118 getXVec() const; 00119 00121 virtual Teuchos::RCP<const NOX::Abstract::Vector> 00122 getNullVec() const; 00123 00125 virtual double getBifParam() const; 00126 00128 virtual Teuchos::RCP<NOX::Abstract::Vector> getXVec(); 00129 00131 virtual Teuchos::RCP<NOX::Abstract::Vector> getNullVec(); 00132 00134 virtual double& getBifParam(); 00135 00136 protected: 00137 00139 ExtendedVector( 00140 const Teuchos::RCP<LOCA::GlobalData>& global_data); 00141 00143 00147 virtual Teuchos::RCP<LOCA::Extended::MultiVector> 00148 generateMultiVector(int nColumns, int nVectorRows, 00149 int nScalarRows) const; 00150 00151 }; // class ExtendedVector 00152 } // namepsace MooreSpence 00153 } // namespace TurningPoint 00154 } // namespace LOCA 00155 00156 #endif