#include "petscsys.h" PetscErrorCode PetscMallocA(int n,PetscBool clear,int lineno,const char *function,const char *filename,size_t bytes0,void *ptr0,...)Not Collective
n | - number of objects to allocate (at least 1) | |
clear | - use calloc() to allocate space initialized to zero | |
lineno | - line number to attribute allocation (typically __LINE__) | |
function | - function to attribute allocation (typically PETSC_FUNCTION_NAME) | |
filename | - file name to attribute allocation (typically __FILE__) | |
bytes0 | - first of n object sizes |
ptr0 | - first of n pointers to allocate |