Changeset 23604
- Timestamp:
- 01/06/19 07:21:59 (6 years ago)
- Location:
- issm/trunk-jpl/src/c/toolkits
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/toolkits/issm/IssmAbsVec.h
r23602 r23604 37 37 virtual void GetSize(int* pM)=0; 38 38 virtual void GetLocalSize(int* pM)=0; 39 virtual void GetLocalVector(double ** pvector,int** pindices)=0;39 virtual void GetLocalVector(doubletype** pvector,int** pindices)=0; 40 40 virtual IssmAbsVec<doubletype>* Duplicate(void)=0; 41 41 virtual void Set(doubletype value)=0; -
issm/trunk-jpl/src/c/toolkits/issm/IssmSeqVec.h
r23602 r23604 143 143 *pM=this->M; 144 144 }/*}}}*/ 145 void GetLocalVector(double ** pvector,int** pindices){/*{{{*/145 void GetLocalVector(doubletype** pvector,int** pindices){/*{{{*/ 146 146 _error_("not implemented"); 147 147 } /*}}}*/ -
issm/trunk-jpl/src/c/toolkits/issm/IssmVec.h
r23602 r23604 153 153 } 154 154 /*}}}*/ 155 void GetLocalVector(double ** pvector,int** pindices){/*{{{*/155 void GetLocalVector(doubletype** pvector,int** pindices){/*{{{*/ 156 156 vector->GetLocalVector(pvector,pindices); 157 157 } /*}}}*/ -
issm/trunk-jpl/src/c/toolkits/objects/Vector.h
r23602 r23604 217 217 } 218 218 /*}}}*/ 219 void GetLocalVector(double ** pvector,int** pindices){_assert_(this);/*{{{*/219 void GetLocalVector(doubletype** pvector,int** pindices){_assert_(this);/*{{{*/ 220 220 221 221 if(type==PetscVecType){ … … 242 242 243 243 return output; 244 245 } 246 /*}}}*/ 244 } /*}}}*/ 247 245 void Set(doubletype value){_assert_(this);/*{{{*/ 248 246 -
issm/trunk-jpl/src/c/toolkits/petsc/objects/PetscVec.cpp
r23602 r23604 115 115 } 116 116 /*}}}*/ 117 void PetscVec::GetLocalVector( double** pvector,int** pindices){/*{{{*/117 void PetscVec::GetLocalVector(IssmDouble** pvector,int** pindices){/*{{{*/ 118 118 119 119 _assert_(this->vector); … … 144 144 for(int i=0;i<range;i++) indices[i]=lower_row+i; 145 145 /*Get vector*/ 146 IssmDouble* values =xNew< double>(range);146 IssmDouble* values =xNew<IssmDouble>(range); 147 147 VecGetValues(this->vector,range,indices,values); 148 148 -
issm/trunk-jpl/src/c/toolkits/petsc/objects/PetscVec.h
r23602 r23604 45 45 void GetSize(int* pM); 46 46 void GetLocalSize(int* pM); 47 void GetLocalVector( double** pvector,int** pindices);47 void GetLocalVector(IssmDouble** pvector,int** pindices); 48 48 PetscVec* Duplicate(void); 49 49 void Set(IssmDouble value);
Note:
See TracChangeset
for help on using the changeset viewer.