Changeset 12987
- Timestamp:
- 08/10/12 15:35:47 (13 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl
- Property svn:ignore
-
old new 1 projects 1 2 autom4te.cache 2 3 aclocal.m4
-
- Property svn:ignore
-
issm/trunk-jpl/src/c/classes/matrix/Matrix.cpp
r12899 r12987 154 154 #ifdef _HAVE_PETSC_ 155 155 this->pmatrix->Echo(); 156 #else157 _error2_("Petsc matrix format not usable, as Petsc has not been compiled!");158 156 #endif 159 157 } … … 171 169 #ifdef _HAVE_PETSC_ 172 170 this->pmatrix->Assemble(); 173 #else174 _error2_("Petsc matrix format not usable, as Petsc has not been compiled!");175 171 #endif 176 172 } … … 191 187 #ifdef _HAVE_PETSC_ 192 188 norm=this->pmatrix->Norm(norm_type); 193 #else194 _error2_("Petsc matrix format not usable, as Petsc has not been compiled!");195 189 #endif 196 190 } … … 209 203 #ifdef _HAVE_PETSC_ 210 204 this->pmatrix->GetSize(pM,pN); 211 #else212 _error2_("Petsc matrix format not usable, as Petsc has not been compiled!");213 205 #endif 214 206 } … … 226 218 #ifdef _HAVE_PETSC_ 227 219 this->pmatrix->GetLocalSize(pM,pN); 228 #else229 _error2_("Petsc matrix format not usable, as Petsc has not been compiled!");230 220 #endif 231 221 } … … 243 233 #ifdef _HAVE_PETSC_ 244 234 this->pmatrix->MatMult(X->pvector,AX->pvector); 245 #else246 _error2_("Petsc matrix format not usable, as Petsc has not been compiled!");247 235 #endif 248 236 } … … 264 252 #ifdef _HAVE_PETSC_ 265 253 output->pmatrix=this->pmatrix->Duplicate(); 266 #else267 _error2_("Petsc matrix format not usable, as Petsc has not been compiled!");268 254 #endif 269 255 } … … 284 270 #ifdef _HAVE_PETSC_ 285 271 output=this->pmatrix->ToSerial(); 286 #else287 _error2_("Petsc matrix format not usable, as Petsc has not been compiled!");288 272 #endif 289 273 } … … 303 287 #ifdef _HAVE_PETSC_ 304 288 this->pmatrix->SetValues(m,idxm,n,idxn,values,mode); 305 #else306 _error2_("Petsc matrix format not usable, as Petsc has not been compiled!");307 289 #endif 308 290 } … … 319 301 #ifdef _HAVE_PETSC_ 320 302 this->pmatrix->Convert(newtype); 321 #else322 _error2_("Petsc matrix format not usable, as Petsc has not been compiled!");323 303 #endif 324 304 } -
issm/trunk-jpl/src/c/classes/matrix/Matrix.h
r12860 r12987 32 32 /*Matrix constructors, destructors {{{*/ 33 33 Matrix(); 34 #ifdef _HAVE_PETSC_ 34 35 Matrix(int M,int N,int type=PetscMatType); 35 36 Matrix(int M,int N,IssmDouble sparsity,int type=PetscMatType); 36 37 Matrix(IssmDouble* serial_mat,int M,int N,IssmDouble sparsity,int type=PetscMatType); 37 38 Matrix(int M,int N,int connectivity,int numberofdofspernode,int type=PetscMatType); 39 #else 40 Matrix(int M,int N,int type=SeqMatType); 41 Matrix(int M,int N,IssmDouble sparsity,int type=SeqMatType); 42 Matrix(IssmDouble* serial_mat,int M,int N,IssmDouble sparsity,int type=SeqMatType); 43 Matrix(int M,int N,int connectivity,int numberofdofspernode,int type=SeqMatType); 44 #endif 38 45 ~Matrix(); 39 46 /*}}}*/ -
issm/trunk-jpl/src/c/classes/matrix/Vector.h
r12910 r12987 34 34 /*Vector constructors, destructors {{{*/ 35 35 Vector(); 36 #ifdef _HAVE_PETSC_ 37 Vector(Vec petsc_vector); 36 38 Vector(int M,bool fromlocalsize=false,int type=PetscVecType); 37 39 Vector(IssmDouble* serial_vec,int pM,int type=PetscVecType); 38 #ifdef _HAVE_PETSC_ 39 Vector(Vec petsc_vector); 40 #else 41 Vector(int M,bool fromlocalsize=false,int type=SeqVecType); 42 Vector(IssmDouble* serial_vec,int pM,int type=SeqVecType); 40 43 #endif 44 41 45 ~Vector(); 42 46 /*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.