Changeset 11737 for issm/trunk-jpl/src/c/modules
- Timestamp:
- 03/19/12 20:53:40 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/modules/Solverx/Solverx.cpp
r11726 r11737 20 20 21 21 /*output: */ 22 Vector *uf= new Vector();22 Vector *uf=NULL; 23 23 24 24 /*In debugging mode, check that stiffness matrix and load vectors are not NULL (they can be empty)*/ … … 29 29 Vec uf0_vector = NULL; 30 30 Vec df_vector = NULL; 31 Vec uf_vector = NULL; 31 32 if(uf0) uf0_vector = uf0->vector; 32 33 if(df) df_vector = df->vector; … … 38 39 #endif 39 40 40 SolverxPetsc(&uf->vector,Kff->matrix,pf->vector,uf0_vector,df_vector,parameters); 41 if(uf->vector == NULL){ 42 uf->M = 0; 43 } 44 else{ 45 VecGetSize(uf->vector,&uf->M); 46 } 41 SolverxPetsc(&uf_vector,Kff->matrix,pf->vector,uf0_vector,df_vector,parameters); 42 43 /*Create vector out of petsc vector: */ 44 uf=new Vector(uf_vector); 47 45 #else 48 46 #ifdef _HAVE_GSL_
Note:
See TracChangeset
for help on using the changeset viewer.