Changeset 12024
- Timestamp:
- 04/17/12 08:10:20 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/c/matlab/io/PetscVectorToDoubleVector.cpp ¶
r12013 r12024 1 1 /* \file PetscVectorToDoubleVector.cpp 2 2 */ 3 4 3 5 4 #ifdef HAVE_CONFIG_H … … 9 8 #endif 10 9 11 12 10 /*Petsc includes: */ 13 11 #include "petscmat.h" … … 15 13 #include "petscksp.h" 16 14 17 /*Petsc includes: */18 15 #include "mex.h" 19 20 16 #include "../../shared/shared.h" 21 17 #include <string> 22 23 18 24 19 void PetscVectorToDoubleVector(double** pvector, int* prows, Vec petsc_vector){ … … 33 28 34 29 /*Get size of vector: */ 35 if( vector){30 if(petsc_vector){ 36 31 VecGetSize(petsc_vector,&rows); 37 32 if(rows){
Note:
See TracChangeset
for help on using the changeset viewer.