1: #if !defined(_MatStashSpace_h_) 2: #define _MatStashSpace_h_ 4: #include petsc.h 6: typedef struct _MatStashSpace *PetscMatStashSpace; 8: struct _MatStashSpace { 9: PetscMatStashSpace next; 10: MatScalar *space_head,*val; 11: PetscInt *idx,*idy; 12: PetscInt total_space_size; 13: PetscInt local_used; 14: PetscInt local_remaining; 15: }; 17: EXTERN PetscErrorCode PetscMatStashSpaceGet(PetscInt,PetscInt,PetscMatStashSpace *); 18: EXTERN PetscErrorCode PetscMatStashSpaceContiguous(PetscInt,PetscMatStashSpace *,PetscScalar *,PetscInt *,PetscInt *); 19: EXTERN PetscErrorCode PetscMatStashSpaceDestroy(PetscMatStashSpace); 21: #endif