Changeset c510a7 for pcp/src/perturbed.c
- Timestamp:
- Apr 29, 2008, 12:19:51 PM (17 years ago)
- Children:
- e936b3
- Parents:
- 307fd1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pcp/src/perturbed.c
r307fd1 rc510a7 2975 2975 } 2976 2976 2977 suffixchi = (char *) Malloc(sizeof(char)* 255, "CalculateMagneticSusceptibility: *suffixchi");2977 suffixchi = (char *) Malloc(sizeof(char)*MAXSTRINGSIZE, "CalculateMagneticSusceptibility: *suffixchi"); 2978 2978 // store symmetrized matrix 2979 2979 for (in=0;in<NDIM;in++) … … 3100 3100 gsl_matrix_complex *H = gsl_matrix_complex_calloc(NDIM,NDIM); 3101 3101 FILE *SigmaFile; 3102 char *suffixsigma = (char *) Malloc(sizeof(char)* 255, "CalculateChemicalShieldingByReciprocalCurrentDensity: *suffixsigma");3102 char *suffixsigma = (char *) Malloc(sizeof(char)*MAXSTRINGSIZE, "CalculateChemicalShieldingByReciprocalCurrentDensity: *suffixsigma"); 3103 3103 3104 3104 time_t seconds; … … 3400 3400 const int N0 = Lev0->Plan0.plan->local_nx; 3401 3401 FILE *MomentFile; 3402 char *suffixmoment = (char *) Malloc(sizeof(char)* 255, "CalculateMagneticMoment: *suffixmoment");3402 char *suffixmoment = (char *) Malloc(sizeof(char)*MAXSTRINGSIZE, "CalculateMagneticMoment: *suffixmoment"); 3403 3403 time_t seconds; 3404 3404 time(&seconds); // get current time … … 3885 3885 if (!myPE) { // only process 0 writes to file 3886 3886 // open file 3887 filename = (char *) Malloc(sizeof(char)* 255, "PlotVectorPlane: *filename");3887 filename = (char *) Malloc(sizeof(char)*MAXSTRINGSIZE, "PlotVectorPlane: *filename"); 3888 3888 sprintf(&filename[0], ".current.L%i.csv", Lev0->LevelNo); 3889 3889 OpenFile(P, &PlotFile, filename, "w", P->Call.out[ReadOut]);
Note:
See TracChangeset
for help on using the changeset viewer.