source:
issm/oecreview/Archive/19101-20495/ISSM-19976-19977.diff@
20498
Last change on this file since 20498 was 20498, checked in by , 9 years ago | |
---|---|
File size: 3.6 KB |
-
../trunk-jpl/src/c/toolkits/objects/Vector.h
280 280 281 281 } 282 282 /*}}}*/ 283 void Shift(doubletype shift){_assert_(this);/*{{{*/ 284 285 if(type==PetscVecType){ 286 #ifdef _HAVE_PETSC_ 287 this->pvector->Shift(shift); 288 #endif 289 } 290 else this->ivector->Shift(shift); 291 } 292 /*}}}*/ 283 293 void Copy(Vector* to){_assert_(this);/*{{{*/ 284 294 285 295 if(type==PetscVecType){ -
../trunk-jpl/src/c/toolkits/issm/IssmAbsVec.h
41 41 virtual void AXPY(IssmAbsVec* X, doubletype a)=0; 42 42 virtual void AYPX(IssmAbsVec* X, doubletype a)=0; 43 43 virtual doubletype* ToMPISerial(void)=0; 44 virtual void Shift(doubletype shift)=0; 44 45 virtual void Copy(IssmAbsVec* to)=0; 45 46 virtual doubletype Norm(NormMode mode)=0; 46 47 virtual void Scale(doubletype scale_factor)=0; -
../trunk-jpl/src/c/toolkits/issm/IssmVec.h
179 179 return vector->ToMPISerial(); 180 180 } 181 181 /*}}}*/ 182 void Shift(doubletype shift){/*{{{*/ 183 vector->Shift(shift); 184 } 185 /*}}}*/ 182 186 void Copy(IssmVec* to){/*{{{*/ 183 187 vector->Copy(to->vector); 184 188 } -
../trunk-jpl/src/c/toolkits/issm/IssmMpiVec.h
395 395 396 396 } 397 397 /*}}}*/ 398 void Shift(doubletype shift){/*{{{*/ 399 for(int i=0;i<this->m;i++)this->vector[i]+=shift; 400 } 401 /*}}}*/ 398 402 void Copy(IssmAbsVec<doubletype>* toin){/*{{{*/ 399 403 400 404 int i; -
../trunk-jpl/src/c/toolkits/issm/IssmSeqVec.h
198 198 199 199 } 200 200 /*}}}*/ 201 void Shift(doubletype shift){/*{{{*/ 202 203 for(int i=0;i<this->M;i++)this->vector[i]+=shift; 204 205 } 206 /*}}}*/ 201 207 void Copy(IssmAbsVec<doubletype>* toin){/*{{{*/ 202 208 203 209 int i; -
../trunk-jpl/src/c/toolkits/petsc/objects/PetscVec.h
49 49 void AXPY(PetscVec* X, IssmDouble a); 50 50 void AYPX(PetscVec* X, IssmDouble a); 51 51 IssmDouble* ToMPISerial(void); 52 void Shift(IssmDouble shift); 52 53 void Copy(PetscVec* to); 53 54 IssmDouble Norm(NormMode norm_type); 54 55 IssmDouble Max(void); -
../trunk-jpl/src/c/toolkits/petsc/objects/PetscVec.cpp
162 162 163 163 } 164 164 /*}}}*/ 165 void PetscVec::Shift(IssmDouble shift){/*{{{*/ 166 167 if(this->vector) VecShift(this->vector,shift); 168 169 } 170 /*}}}*/ 165 171 void PetscVec::Copy(PetscVec* to){/*{{{*/ 166 172 167 173 if(this->vector) VecCopy(this->vector,to->vector);
Note:
See TracBrowser
for help on using the repository browser.