User: rhaas Date: 2013/10/23 11:00 AM
Modified: /trunk/src/ TP_utilities.c
Log: correct amount of memory allocated in d3tensor
had mixed up depth and length before
File Changes:
Directory: /trunk/src/ ======================
File [modified]: TP_utilities.c Delta lines: +1 -1 =================================================================== --- trunk/src/TP_utilities.c 2013-07-11 13:30:09 UTC (rev 134) +++ trunk/src/TP_utilities.c 2013-10-23 16:00:15 UTC (rev 135) @@ -112,7 +112,7 @@ CCTK_WARN (CCTK_WARN_ABORT, "allocation failure (2) in dmatrix()");
/* get all memory for the tensor in on chunk */ - retval[0][0] = malloc(sizeof(CCTK_REAL)*(nrh-nrl+1)*(nch-ncl+1)*(nrh-nrl+1)); + retval[0][0] = malloc(sizeof(CCTK_REAL)*(nrh-nrl+1)*(nch-ncl+1)*(ndh-ndl+1)); if(retval[0][0] == NULL) CCTK_WARN (CCTK_WARN_ABORT, "allocation failure (3) in dmatrix()");