Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
typedef char ErrorMsg[_ERRORMSGSIZE_]; /**< Generic error messages (there is such a field in each structure) */

#define _FILENAMESIZE_ 256 /**< size of the string read in each line of the file (extra characters not taken into account) */
#define _BASEPATHSIZE_ 1000 /**< allowed size of the base path */
#define _BASEPATHSIZE_ 1024 /**< allowed size of the base path */
typedef char FileName[_FILENAMESIZE_+_BASEPATHSIZE_];

#define _SUFFIXNAMESIZE_ 4 /**< maximum size of the short string appended to file names to account for initial conditions, etc. */
Expand Down
10 changes: 6 additions & 4 deletions tools/evolver_ndf15.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ int evolver_ndf15(

buffer_size=
15*neqp*sizeof(double)
+neqp*sizeof(int)
+neqp*sizeof(double*)
+(7*neq+1)*sizeof(double);
+(7*neq+1)*sizeof(double)
+neqp*sizeof(int); /* the double and double* (pointer) are 8-bit. For odd neqp, it happens that the int (4-bit) misaligns the memory */

class_alloc(buffer,
buffer_size,
Expand All @@ -143,10 +143,12 @@ int evolver_ndf15(
tempvec1 =yppinterp+neqp;
tempvec2 =tempvec1+neqp;

interpidx=(int*)(tempvec2+neqp);
/*interpidx=(int*)(tempvec2+neqp);

dif =(double**)(interpidx+neqp);
dif =(double**)(interpidx+neqp);*/
dif = (double **)(tempvec2 + neqp);
dif[1] =(double*)(dif+neqp);
interpidx=(int *)(dif[1] + 7 * neq + 1); /* put int array last for memory alignment */
for(j=2;j<=neq;j++) dif[j] = dif[j-1]+7; /* Set row pointers... */
dif[0] = NULL;
/* for (ii=0;ii<(7*neq+1);ii++) dif[1][ii]=0.; */
Expand Down
2 changes: 1 addition & 1 deletion tools/hyperspherical.c
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ int hyperspherical_get_xmin(HyperInterpStruct *pHIS,
int left_index, right_index, index_l, j;
int nl = pHIS->l_size;
int nx = pHIS->x_size;
int REFINE=10;
const int REFINE=10;
double x[REFINE];
double Phi[REFINE];
double *phivec = pHIS->phi;
Expand Down