00001 // $Id: LOCA_MultiContinuation_AbstractGroup.H,v 1.12 2006/08/22 00:01:37 rppawlo Exp $ 00002 // $Source: /space/CVS/Trilinos/packages/nox/src-loca/src/LOCA_MultiContinuation_AbstractGroup.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_MultiContinuation_AbstractGroup.H,v $ 00036 // $Author: rppawlo $ 00037 // $Date: 2006/08/22 00:01:37 $ 00038 // $Revision: 1.12 $ 00039 // ************************************************************************ 00040 //@HEADER 00041 00042 #ifndef LOCA_MULTICONTINUATION_ABSTRACTGROUP_H 00043 #define LOCA_MULTICONTINUATION_ABSTRACTGROUP_H 00044 00045 #include "NOX_Abstract_Group.H" // base class 00046 #include "NOX_Abstract_MultiVector.H" 00047 #include "LOCA_Abstract_Iterator.H" 00048 00049 namespace LOCA { 00050 class ParameterVector; 00051 } 00052 00053 namespace LOCA { 00054 00056 namespace MultiContinuation { 00057 00070 class AbstractGroup : public virtual NOX::Abstract::Group { 00071 00072 public: 00073 00075 AbstractGroup() {} 00076 00078 virtual ~AbstractGroup() {} 00079 00085 00087 virtual void copy(const NOX::Abstract::Group& source) = 0; 00088 00090 virtual void setParamsMulti( 00091 const vector<int>& paramIDs, 00092 const NOX::Abstract::MultiVector::DenseMatrix& vals) = 0; 00093 00095 virtual void setParams(const LOCA::ParameterVector& p) = 0; 00096 00098 virtual void setParam(int paramID, double val) = 0; 00099 00101 virtual void setParam(string paramID, double val) = 0; 00102 00104 virtual const LOCA::ParameterVector& getParams() const = 0; 00105 00107 virtual double getParam(int paramID) const = 0; 00108 00110 virtual double getParam(string paramID) const = 0; 00111 00118 virtual NOX::Abstract::Group::ReturnType 00119 computeDfDpMulti(const vector<int>& paramIDs, 00120 NOX::Abstract::MultiVector& dfdp, 00121 bool isValidF) = 0; 00122 00124 00125 00132 00134 00138 virtual void 00139 preProcessContinuationStep( 00140 LOCA::Abstract::Iterator::StepStatus stepStatus); 00141 00143 00147 virtual void 00148 postProcessContinuationStep( 00149 LOCA::Abstract::Iterator::StepStatus stepStatus); 00150 00152 00161 virtual void projectToDraw(const NOX::Abstract::Vector& x, 00162 double *px) const; 00163 00165 00169 virtual int projectToDrawDimension() const; 00170 00172 00176 virtual double 00177 computeScaledDotProduct(const NOX::Abstract::Vector& a, 00178 const NOX::Abstract::Vector& b) const; 00179 00181 00189 00191 00194 virtual void printSolution(const double conParam) const {}; 00195 00197 00200 virtual void printSolution(const NOX::Abstract::Vector& x_, 00201 const double conParam) const {} 00202 00204 00207 virtual void 00208 scaleVector(NOX::Abstract::Vector& x) const; 00209 00211 00213 using NOX::Abstract::Group::operator=; 00214 00215 }; 00216 } // namespace MultiContinuation 00217 } // namespace LOCA 00218 00219 #endif