![]() |
Fast Auxiliary Space Preconditioning 2.7.7 Aug/28/2022
|
Memory allocation and deallocation subroutines. More...
Go to the source code of this file.
Functions | |
| void * | fasp_mem_calloc (const unsigned int size, const unsigned int type) |
| Allocate, initiate, and check memory. More... | |
| void * | fasp_mem_realloc (void *oldmem, const LONGLONG tsize) |
| Reallocate, initiate, and check memory. More... | |
| void | fasp_mem_free (void *mem) |
| Free up previous allocated memory body and set pointer to NULL. More... | |
| void | fasp_mem_usage (void) |
| Show total allocated memory currently. More... | |
| SHORT | fasp_mem_iludata_check (const ILU_data *iludata) |
| Check wether a ILU_data has enough work space. More... | |
Variables | |
| const int | Million = 1048576 |
Memory allocation and deallocation subroutines.
Copyright (C) 2009–Present by the FASP team. All rights reserved.
Definition in file AuxMemory.c.
| void * fasp_mem_calloc | ( | const unsigned int | size, |
| const unsigned int | type | ||
| ) |
Allocate, initiate, and check memory.
| size | Number of memory blocks |
| type | Size of memory blocks |
Modified by Chensong Zhang on 07/30/2013: print warnings if failed
Definition at line 65 of file AuxMemory.c.
| void fasp_mem_free | ( | void * | mem | ) |
Free up previous allocated memory body and set pointer to NULL.
| mem | Pointer to the memory body need to be freed |
Modified on 2018/01/10 by Chensong: Add output when mem is NULL
Definition at line 152 of file AuxMemory.c.
Check wether a ILU_data has enough work space.
| iludata | Pointer to be checked |
Definition at line 203 of file AuxMemory.c.
| void * fasp_mem_realloc | ( | void * | oldmem, |
| const LONGLONG | tsize | ||
| ) |
Reallocate, initiate, and check memory.
| oldmem | Pointer to the existing mem block |
| tsize | Size of memory blocks |
Modified by Chensong Zhang on 07/30/2013: print error if failed
Definition at line 113 of file AuxMemory.c.
| void fasp_mem_usage | ( | void | ) |
| const int Million = 1048576 |
1M = 1024*1024
Definition at line 44 of file AuxMemory.c.