Actual source code: freespace.h
petsc-3.6.1 2015-08-06
1: #if !defined(_FreeSpace_h_)
2: #define _FreeSpace_h_
4: #include <petscsys.h>
6: typedef struct _Space *PetscFreeSpaceList;
8: struct _Space {
9: PetscFreeSpaceList more_space;
10: PetscInt *array;
11: PetscInt *array_head;
12: PetscInt total_array_size;
13: PetscInt local_used;
14: PetscInt local_remaining;
15: };
17: PetscErrorCode PetscFreeSpaceGet(PetscInt,PetscFreeSpaceList*);
18: PetscErrorCode PetscFreeSpaceContiguous(PetscFreeSpaceList*,PetscInt*);
19: PetscErrorCode PetscFreeSpaceContiguous_LU(PetscFreeSpaceList*,PetscInt*,PetscInt,PetscInt*,PetscInt*);
20: PetscErrorCode PetscFreeSpaceContiguous_Cholesky(PetscFreeSpaceList*,PetscInt*,PetscInt,PetscInt*,PetscInt*);
21: PetscErrorCode PetscFreeSpaceDestroy(PetscFreeSpaceList);
23: #endif