00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #include "LOCA_MultiContinuation_ExtendedVector.H"
00043 #include "LOCA_MultiContinuation_ExtendedMultiVector.H"
00044
00045 LOCA::MultiContinuation::ExtendedVector::ExtendedVector(
00046 const Teuchos::RCP<LOCA::GlobalData>& global_data,
00047 const NOX::Abstract::Vector& xVec,
00048 int nScalars) :
00049 LOCA::Extended::Vector(global_data,1,nScalars)
00050 {
00051 LOCA::Extended::Vector::setVector(0, xVec);
00052 }
00053
00054 LOCA::MultiContinuation::ExtendedVector::ExtendedVector(
00055 const LOCA::MultiContinuation::ExtendedVector& source,
00056 NOX::CopyType type) :
00057 LOCA::Extended::Vector(source, type)
00058 {
00059 }
00060
00061 LOCA::MultiContinuation::ExtendedVector::~ExtendedVector()
00062 {
00063 }
00064
00065 LOCA::Extended::Vector&
00066 LOCA::MultiContinuation::ExtendedVector::operator=(
00067 const LOCA::Extended::Vector& y)
00068 {
00069 operator=(dynamic_cast<const LOCA::MultiContinuation::ExtendedVector&>(y));
00070 return *this;
00071 }
00072
00073 NOX::Abstract::Vector&
00074 LOCA::MultiContinuation::ExtendedVector::operator=(
00075 const NOX::Abstract::Vector& y)
00076 {
00077 operator=(dynamic_cast<const LOCA::MultiContinuation::ExtendedVector&>(y));
00078 return *this;
00079 }
00080
00081 LOCA::MultiContinuation::ExtendedVector&
00082 LOCA::MultiContinuation::ExtendedVector::operator=(const
00083 LOCA::MultiContinuation::ExtendedVector& y)
00084 {
00085 LOCA::Extended::Vector::operator=(y);
00086 return *this;
00087 }
00088
00089 Teuchos::RCP<NOX::Abstract::Vector>
00090 LOCA::MultiContinuation::ExtendedVector::clone(NOX::CopyType type) const
00091 {
00092 return
00093 Teuchos::rcp(new LOCA::MultiContinuation::ExtendedVector(*this, type));
00094 }
00095
00096 Teuchos::RCP<const NOX::Abstract::Vector>
00097 LOCA::MultiContinuation::ExtendedVector::getXVec() const
00098 {
00099 return LOCA::Extended::Vector::getVector(0);
00100 }
00101
00102 Teuchos::RCP<NOX::Abstract::Vector>
00103 LOCA::MultiContinuation::ExtendedVector::getXVec()
00104 {
00105 return LOCA::Extended::Vector::getVector(0);
00106 }
00107
00108 LOCA::MultiContinuation::ExtendedVector::ExtendedVector(
00109 const Teuchos::RCP<LOCA::GlobalData>& global_data,
00110 int nScalars) :
00111 LOCA::Extended::Vector(global_data,1,nScalars)
00112 {
00113 }
00114
00115 Teuchos::RCP<LOCA::Extended::MultiVector>
00116 LOCA::MultiContinuation::ExtendedVector::generateMultiVector(
00117 int nColumns,
00118 int nVectorRows,
00119 int nScalarRows) const
00120 {
00121 return
00122 Teuchos::rcp(new LOCA::MultiContinuation::ExtendedMultiVector(globalData,
00123 nColumns,
00124 nScalarRows));
00125 }