- Timestamp:
- Apr 21, 2008, 2:19:24 PM (17 years ago)
- Children:
- e00f47
- Parents:
- 32de28
- git-author:
- Frederik Heber <heber@…> (04/18/08 14:51:49)
- git-committer:
- Frederik Heber <heber@…> (04/21/08 14:19:24)
- Location:
- pcp/src
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
pcp/src/grad.c
r32de28 r64fa9e 91 91 Grad->GradientArray[GraSchGradient] = NULL; 92 92 for (i=1; i<MaxGradientArrayTypes; i++) 93 Free(Grad->GradientArray[i] );93 Free(Grad->GradientArray[i], "RemoveGradients: Grad->GradientArray[i]"); 94 94 } 95 95 -
pcp/src/gramsch.c
r32de28 r64fa9e 698 698 fprintf(stderr,"(%i) MyLocalNo = %i, MyGlobalNo = %i/%i, f = %lg, Type: %i, GramSch: %i, me_comm: %d, my_color_comm: %d \n",P->Par.me, Psi->AllPsiStatus[i].MyLocalNo, i, Psi->AllPsiStatus[i].MyGlobalNo, Psi->AllPsiStatus[i].PsiFactor, Psi->AllPsiStatus[i].PsiType, Psi->AllPsiStatus[i].PsiGramSchStatus, Psi->AllPsiStatus[i].me_comm_ST_Psi, Psi->AllPsiStatus[i].my_color_comm_ST_Psi); 699 699 700 Free(recvcounts );701 Free(displs );700 Free(recvcounts, "UpdateGramSchAllPsiStatus: recvcounts"); 701 Free(displs, "UpdateGramSchAllPsiStatus: displs"); 702 702 } 703 703 -
pcp/src/init.c
r32de28 r64fa9e 106 106 } 107 107 if (setit) strcat(P->Files.mainname,"/"); 108 if (dummy) Free(dummy );108 if (dummy) Free(dummy, "CreateMainname: dummy"); 109 109 P->Files.mainpath = (char*) /* Speicher fuer P->Files.mainname */ 110 110 Malloc(strlen(P->Files.mainname)+10, "CreateMainname - P->Files.mainpath"); … … 520 520 } 521 521 522 Free(GlobalGArray );523 Free(GlobalGArray_sort );522 Free(GlobalGArray, "HashGArray: GlobalGArray"); 523 Free(GlobalGArray_sort, "HashGArray: GlobalGArray_sort"); 524 524 for (i=0;i<NDIM;i++) { 525 Free(G[i] );526 Free(G_send[i] );527 } 528 Free(G );529 Free(G_send );525 Free(G[i], "HashGArray: G[i]"); 526 Free(G_send[i], "HashGArray: G_send[i]"); 527 } 528 Free(G, "HashGArray: G"); 529 Free(G_send, "HashGArray: G_send"); 530 530 } 531 531 … … 1321 1321 if (feof(file)) { 1322 1322 if ((critical) && (found == 0)) { 1323 Free(free_dummy );1323 Free(free_dummy, "ParseForParameter: free_dummy"); 1324 1324 Error(InitReading, name); 1325 1325 } else { 1326 1326 //if (!sequential) 1327 1327 fseek(file, file_position, SEEK_SET); // rewind to start position 1328 Free(free_dummy );1328 Free(free_dummy, "ParseForParameter: free_dummy"); 1329 1329 return 0; 1330 1330 } … … 1356 1356 dummy = strchr(dummy1, '\n'); // set on line end then (whole line = keyword) 1357 1357 //fprintf(stderr,"(%i)Error: Cannot find tabs or spaces on line %i in search for %s\n", me, line, name); 1358 //Free(free_dummy );1358 //Free(free_dummy, "ParseForParameter: free_dummy"); 1359 1359 //Error(FileOpenParams, NULL); 1360 1360 } else { … … 1376 1376 if (feof(file)) { 1377 1377 if ((critical) && (found == 0)) { 1378 Free(free_dummy );1378 Free(free_dummy, "ParseForParameter: free_dummy"); 1379 1379 Error(InitReading, name); 1380 1380 } else { 1381 1381 //if (!sequential) 1382 1382 fseek(file, file_position, SEEK_SET); // rewind to start position 1383 Free(free_dummy );1383 Free(free_dummy, "ParseForParameter: free_dummy"); 1384 1384 return 0; 1385 1385 } … … 1425 1425 if ((j < yth-1) && (type < 4)) { // check if xth value or not yet 1426 1426 if (verbose) fprintf(stderr,"(%i)Error: EoL at %i and still missing %i value(s) for parameter %s\n", me, line, yth-j, name); 1427 Free(free_dummy );1427 Free(free_dummy, "ParseForParameter: free_dummy"); 1428 1428 return 0; 1429 1429 //Error(FileOpenParams, NULL); … … 1482 1482 } 1483 1483 if ((type >= row_int) && (verbose)) fprintf(stderr,"\n"); 1484 Free(free_dummy);1484 Free(free_dummy, "ParseForParameter: free_dummy"); 1485 1485 if (!sequential) fseek(file, file_position, SEEK_SET); // rewind to start position 1486 1486 //fprintf(stderr, "(%i) End of Parsing\n\n",me); … … 1871 1871 EnergyOutput(P,0); 1872 1872 InitOutVisArray(P); 1873 Free(P->Lat.GArrayForSort );1873 Free(P->Lat.GArrayForSort, "Init: P->Lat.GArrayForSort"); 1874 1874 P->Speed.InitSteps++; 1875 1875 } -
pcp/src/myfft.c
r32de28 r64fa9e 221 221 fprintf(stderr,"\n"); 222 222 } 223 Free(plan->pwFS );223 Free(plan->pwFS, "fft_3d_create_plan: plan->pwFS"); 224 224 plan->pwFS = NULL; 225 225 … … 306 306 } 307 307 if (plan->local_data != NULL) { 308 Free(plan->local_data );308 Free(plan->local_data, "fft_3d_create_plan: plan->local_data"); 309 309 plan->local_data = NULL; 310 310 } 311 311 if (plan->work != NULL) { 312 Free(plan-> work);312 Free(plan->local_data, "fft_3d_create_plan: plan->local_data"); 313 313 plan->work = NULL; 314 314 } 315 Free(MaxNFields );315 Free(MaxNFields, "fft_3d_create_plan: MaxNFields"); 316 316 return plan; 317 317 } … … 327 327 rfftwnd_destroy_plan(plan->Levplan[i].yzplanRC[j]); 328 328 } 329 Free(plan->Levplan[i].xplanCR );330 Free(plan->Levplan[i].xplanRC );331 Free(plan->Levplan[i].yzplanCR );332 Free(plan->Levplan[i].yzplanRC );333 Free(plan->NFields[i] );334 } 335 Free(plan->MaxNoOfnFields );336 Free(plan->NFields );337 Free(plan->Levplan );338 Free(plan->PENo );329 Free(plan->Levplan[i].xplanCR, "fft_3d_destroy_plan: plan->Levplan[i].xplanCR"); 330 Free(plan->Levplan[i].xplanRC, "fft_3d_destroy_plan: plan->Levplan[i].xplanRC"); 331 Free(plan->Levplan[i].yzplanCR, "fft_3d_destroy_plan: plan->Levplan[i].yzplanCR"); 332 Free(plan->Levplan[i].yzplanRC, "fft_3d_destroy_plan: plan->Levplan[i].yzplanRC"); 333 Free(plan->NFields[i], "fft_3d_destroy_plan: plan->NFields[i]"); 334 } 335 Free(plan->MaxNoOfnFields, "fft_3d_destroy_plan: plan->MaxNoOfnFields"); 336 Free(plan->NFields, "fft_3d_destroy_plan: plan->NFields"); 337 Free(plan->Levplan, "fft_3d_destroy_plan: plan->Levplan"); 338 Free(plan->PENo, "fft_3d_destroy_plan: plan->PENo"); 339 339 plan->PENo = NULL; 340 Free(plan->LevelSizes );340 Free(plan->LevelSizes, "fft_3d_destroy_plan: plan->LevelSizes"); 341 341 plan->LevelSizes = NULL; 342 Free(plan->Lev_CR_RC );342 Free(plan->Lev_CR_RC, "fft_3d_destroy_plan: plan->Lev_CR_RC"); 343 343 plan->Lev_CR_RC = NULL; 344 Free(plan->pw );344 Free(plan->pw, "fft_3d_destroy_plan: plan->pw"); 345 345 plan->pw = NULL; 346 346 plan->Levplan = NULL; 347 347 MPI_Comm_free(&plan->comm); 348 Free(plan );348 Free(plan, "fft_3d_destroy_plan: plan"); 349 349 } 350 350 -
pcp/src/opt.c
r32de28 r64fa9e 29 29 */ 30 30 static void FreeDebugStr(void) { 31 if (DebugString) Free(DebugString );32 if (program_name) Free(program_name );31 if (DebugString) Free(DebugString, "FreeDebugStr: DebugString"); 32 if (program_name) Free(program_name, "FreeDebugStr: program_name"); 33 33 } 34 34 … … 68 68 break; 69 69 case 'd': 70 if (DebugString) Free(DebugString );70 if (DebugString) Free(DebugString, "GetOptions: DebugString"); 71 71 Call->debug = 1; 72 72 DebugString = (char *)Malloc(strlen(optarg)+1, "GetOptions"); … … 74 74 break; 75 75 case 'D': 76 if (DebugString) Free(DebugString );76 if (DebugString) Free(DebugString, "GetOptions: DebugString"); 77 77 DebugString = (char *)Malloc(strlen(optarg)+1, "GetOptions"); 78 78 strcpy(DebugString, optarg); -
pcp/src/output.c
r32de28 r64fa9e 80 80 if (*file != 0) { 81 81 if (verbose) fprintf(stderr,"(%i) Default file is open: %s\n",P->Par.me,name); 82 Free(name );82 Free(name, "OpenFile: name"); 83 83 return(1); 84 84 } 85 85 } 86 86 fprintf(stderr,"\n(%i)Error: Cannot open neither normal nor default file: %s\n",P->Par.me,name); 87 Free(name );87 Free(name, "OpenFile: name"); 88 88 return(0); 89 89 } else { 90 90 if(verbose) fprintf(stderr,"(%i) File is open: %s\n",P->Par.me,name); 91 Free(name);91 Free(name, "OpenFile: name"); 92 92 return(1); 93 93 } … … 121 121 if (*file != 0) { 122 122 if(verbose) fprintf(stderr,"(%i) Default file is open: %s\n", P->Par.me, name); 123 Free(name );123 Free(name, "OpenFileNo2: name"); 124 124 return(1); 125 125 } 126 126 } 127 127 fprintf(stderr,"\n(%i)Error: Cannot open file: %s\n", P->Par.me, name); 128 Free(name );128 Free(name, "OpenFileNo2: name"); 129 129 return(0); 130 130 } else { 131 131 if(verbose) fprintf(stderr,"(%i) File is open: %s\n",P->Par.me, name); 132 Free(name );132 Free(name, "OpenFileNo2: name"); 133 133 return(1); 134 134 } … … 163 163 if (*file != 0) { 164 164 if(verbose) fprintf(stderr,"(%i) Default file is open: %s\n", P->Par.me, name); 165 Free(name );165 Free(name, "OpenFileNo: name"); 166 166 return(1); 167 167 } 168 168 } 169 169 fprintf(stderr,"\n(%i)Error: Cannot open file: %s\n", P->Par.me, name); 170 Free(name );170 Free(name, "OpenFileNo: name"); 171 171 return(0); 172 172 } else { 173 173 if(verbose) fprintf(stderr,"(%i) File is open: %s\n", P->Par.me, name); 174 Free(name );174 Free(name, "OpenFileNo: name"); 175 175 return(1); 176 176 } … … 200 200 if (*file == 0) { 201 201 fprintf(stderr,"\n(%i)Error: Cannot open file: %s\n", P->Par.me, name); 202 Free(name );202 Free(name, "OpenFileNoPost: name"); 203 203 return(0); 204 204 } else { 205 205 if(verbose) fprintf(stderr,"(%i) File is open: %s\n", P->Par.me, name); 206 Free(name );206 Free(name, "OpenFileNoPost: name"); 207 207 return(1); 208 208 } … … 229 229 if(*file == 0) { 230 230 fprintf(stderr,"\n(%i)Error: Cannot open file: %s\n", P->Par.me, name); 231 Free(name );231 Free(name, "OpenFileNoNo: name"); 232 232 return(0); 233 233 } 234 234 if(verbose) fprintf(stderr,"(%i) File is open: %s\n", P->Par.me, name); 235 Free(name );235 Free(name, "OpenFileNoNo: name"); 236 236 return(1); 237 237 } … … 859 859 860 860 fclose(DensityDx); 861 Free(posname );862 Free(datname );861 Free(posname, "CreateDensityOutputGeneral: posname"); 862 Free(datname, "CreateDensityOutputGeneral: datname"); 863 863 } 864 864 … … 1363 1363 fclose(SrcIonData); 1364 1364 } 1365 if (Max_IonsOfType != NULL) Free(Max_IonsOfType );1365 if (Max_IonsOfType != NULL) Free(Max_IonsOfType, "Max_IonsOfType"); 1366 1366 } 1367 1367 return 1; … … 1788 1788 Error(SomeError, "PlotRealDensity: MPI_Send failure!"); 1789 1789 } 1790 Free(buffer );1791 } 1790 Free(buffer, "PlotRealDensity: buffer"); 1791 } -
pcp/src/pcp.c
r32de28 r64fa9e 741 741 avarage, stddev); 742 742 } 743 if (!P->Par.me_comm_ST_Psi) Free(A );744 if (!P->Par.me_comm_ST_PsiT && !P->Par.me_comm_ST_Psi) Free(AT );743 if (!P->Par.me_comm_ST_Psi) Free(A, "TestGSfft: A"); 744 if (!P->Par.me_comm_ST_PsiT && !P->Par.me_comm_ST_Psi) Free(AT, "TestGSfft: AT"); 745 745 } 746 746 #endif -
pcp/src/perturbed.c
r32de28 r64fa9e 2882 2882 UnLockDensityArray(Dens0,GapDownDensity,real); // Psip1R 2883 2883 // for (i=0;i<Num;i++) 2884 // if (x_l[i] != NULL) Free(x_l[i] );2885 // Free(x_l );2884 // if (x_l[i] != NULL) Free(x_l[i], "bla", "bla"); 2885 // Free(x_l, "bla"); 2886 2886 gsl_multimin_fdfminimizer_free (minset); 2887 2887 gsl_vector_free (x); … … 2960 2960 recvbuf = (double *) Malloc(gsize * p_num * sizeof(double), "CalculateOverlap: recvbuf"); 2961 2961 MPI_Allgather(sendbuf, p_num, MPI_DOUBLE, recvbuf, p_num, MPI_DOUBLE, P->Par.comm_ST_PsiT); 2962 Free(sendbuf );2962 Free(sendbuf, "bla"); 2963 2963 for (i=0;i<gsize;i++) {// extract results from other processes out of receiving buffer 2964 2964 m = recvbuf[i*p_num]; // m is ActNum of the process whose results we've just received … … 2967 2967 Psi->Overlap[m][j-1] = Psi->Overlap[j-1][m] = recvbuf[i*p_num+j]; // put each entry into correspondent Overlap row 2968 2968 } 2969 Free(recvbuf );2969 Free(recvbuf, "bla"); 2970 2970 } 2971 2971 -
pcp/src/pseudo.c
r32de28 r64fa9e 678 678 struct Ions *I = &P->Ion; 679 679 struct Lattice *Lat = &P->Lat; 680 Free(PP->integrand1 );681 Free(PP->integrand );682 Free(PP->dfnl );683 Free(PP->rr );684 Free(PP->t );680 Free(PP->integrand1, "RemovePseudoRead: PP->integrand1"); 681 Free(PP->integrand, "RemovePseudoRead: PP->integrand"); 682 Free(PP->dfnl, "RemovePseudoRead: PP->dfnl"); 683 Free(PP->rr, "RemovePseudoRead: PP->rr"); 684 Free(PP->t, "RemovePseudoRead: PP->t"); 685 685 for (i=0; i< Lat->Psi.LocalNo+1; i++) { 686 686 for (it=0; it < I->Max_Types; it++) { 687 687 for (il =0; il < PP->lm_end[it]; il++) 688 Free(PP->fnl[i][it][il] );689 Free(PP->fnl[i][it] );690 } 691 Free(PP->fnl[i] );688 Free(PP->fnl[i][it][il], "RemovePseudoRead: PP->fnl[i][it][il]"); 689 Free(PP->fnl[i][it], "RemovePseudoRead: PP->fnl[i][it]"); 690 } 691 Free(PP->fnl[i], "RemovePseudoRead: PP->fnl[i]"); 692 692 } 693 693 for (it=0; it < I->Max_Types; it++) { 694 694 if (I->I[it].corecorr == CoreCorrected) { 695 Free(PP->corewave[it] );696 Free(PP->formfCore[it] );695 Free(PP->corewave[it], "RemovePseudoRead: PP->corewave[it]"); 696 Free(PP->formfCore[it], "RemovePseudoRead: PP->formfCore[it]"); 697 697 } 698 698 } 699 699 for (it=0; it < I->Max_Types; it++) { 700 700 for (il=0; il < PP->nang[it]; il++) { 701 Free(PP->R[it][il] );702 Free(PP->v_loc[it][il] );701 Free(PP->R[it][il], "RemovePseudoRead: PP->R[it][il]"); 702 Free(PP->v_loc[it][il], "RemovePseudoRead: PP->v_loc[it][il]"); 703 703 } 704 704 for (il=0; il < 3; il++) { 705 Free(PP->rcl[it][il] );706 Free(PP->al[it][il] );707 Free(PP->bl[it][il] );705 Free(PP->rcl[it][il], "RemovePseudoRead: PP->rcl[it][il]"); 706 Free(PP->al[it][il], "RemovePseudoRead: PP->al[it][il]"); 707 Free(PP->bl[it][il], "RemovePseudoRead: PP->bl[it][il]"); 708 708 } 709 709 for (il=0;il<PP->lm_end[it];il++) { 710 //Free(PP->phi_ps_nl[it][il] );711 Free(PP->phi_ps_nl[it][il] );710 //Free(PP->phi_ps_nl[it][il], "RemovePseudoRead: PP->phi_ps_nl[it][il]"); 711 Free(PP->phi_ps_nl[it][il], "RemovePseudoRead: PP->phi_ps_nl[it][il]"); 712 712 } 713 713 for (ia=0;ia<I->I[it].Max_IonsOfType;ia++) { 714 Free(PP->ei[it][ia] );715 Free(PP->expiGR[it][ia] );716 } 717 Free(PP->ei[it] );718 Free(PP->expiGR[it] );719 //Free(PP->phi_ps_nl[it] );720 Free(PP->phi_ps_nl[it] );721 Free(PP->R[it] );722 Free(PP->v_loc[it] );723 Free(PP->r[it] );724 Free(PP->integrand2[it] );725 Free(PP->rcl[it] );726 Free(PP->al[it] );727 Free(PP->bl[it] );728 Free(PP->FacGauss[it] );729 Free(PP->phi_ps_loc[it] );730 Free(PP->core[it] );731 Free(PP->rc[it] );732 Free(PP->wNonLoc[it] );733 } 734 //Free(PP->phi_ps_nl );735 Free(PP->phi_ps_nl );736 Free(PP->R );737 Free(PP->v_loc );738 Free(PP->r );739 Free(PP->integrand2 );740 Free(PP->rcl );741 Free(PP->al );742 Free(PP->bl );743 Free(PP->FacGauss );744 Free(PP->phi_ps_loc );745 Free(PP->core );746 Free(PP->rc );747 Free(PP->wNonLoc );748 Free(PP->ei );749 Free(PP->expiGR );750 Free(PP->corewave );751 Free(PP->formfCore );752 Free(PP->fnl );753 Free(PP->VCoulombc );754 Free(PP->lm_end );755 Free(PP->zval );756 Free(PP->nang );757 Free(PP->mmax );758 Free(PP->clog );714 Free(PP->ei[it][ia], "RemovePseudoRead: PP->ei[it][ia]"); 715 Free(PP->expiGR[it][ia], "RemovePseudoRead: PP->expiGR[it][ia]"); 716 } 717 Free(PP->ei[it], "RemovePseudoRead: PP->ei[it]"); 718 Free(PP->expiGR[it], "RemovePseudoRead: PP->expiGR[it]"); 719 //Free(PP->phi_ps_nl[it], "RemovePseudoRead: PP->phi_ps_nl[it]"); 720 Free(PP->phi_ps_nl[it], "RemovePseudoRead: PP->phi_ps_nl[it]"); 721 Free(PP->R[it], "RemovePseudoRead: PP->R[it]"); 722 Free(PP->v_loc[it], "RemovePseudoRead: PP->v_loc[it]"); 723 Free(PP->r[it], "RemovePseudoRead: PP->r[it]"); 724 Free(PP->integrand2[it], "RemovePseudoRead: PP->integrand2[it]"); 725 Free(PP->rcl[it], "RemovePseudoRead: PP->rcl[it]"); 726 Free(PP->al[it], "RemovePseudoRead: PP->al[it]"); 727 Free(PP->bl[it], "RemovePseudoRead: PP->bl[it]"); 728 Free(PP->FacGauss[it], "RemovePseudoRead: PP->FacGauss[it]"); 729 Free(PP->phi_ps_loc[it], "RemovePseudoRead: PP->phi_ps_loc[it]"); 730 Free(PP->core[it], "RemovePseudoRead: PP->core[it]"); 731 Free(PP->rc[it], "RemovePseudoRead: PP->rc[it]"); 732 Free(PP->wNonLoc[it], "RemovePseudoRead: PP->wNonLoc[it]"); 733 } 734 //Free(PP->phi_ps_nl, "RemovePseudoRead: PP->phi_ps_nl"); 735 Free(PP->phi_ps_nl, "RemovePseudoRead: PP->phi_ps_nl"); 736 Free(PP->R, "RemovePseudoRead: PP->R"); 737 Free(PP->v_loc, "RemovePseudoRead: PP->v_loc"); 738 Free(PP->r, "RemovePseudoRead: PP->r"); 739 Free(PP->integrand2, "RemovePseudoRead: PP->integrand2"); 740 Free(PP->rcl, "RemovePseudoRead: PP->rcl"); 741 Free(PP->al, "RemovePseudoRead: PP->al"); 742 Free(PP->bl, "RemovePseudoRead: PP->bl"); 743 Free(PP->FacGauss, "RemovePseudoRead: PP->FacGauss"); 744 Free(PP->phi_ps_loc, "RemovePseudoRead: PP->phi_ps_loc"); 745 Free(PP->core, "RemovePseudoRead: PP->core"); 746 Free(PP->rc, "RemovePseudoRead: PP->rc"); 747 Free(PP->wNonLoc, "RemovePseudoRead: PP->wNonLoc"); 748 Free(PP->ei, "RemovePseudoRead: PP->ei"); 749 Free(PP->expiGR, "RemovePseudoRead: PP->expiGR"); 750 Free(PP->corewave, "RemovePseudoRead: PP->corewave"); 751 Free(PP->formfCore, "RemovePseudoRead: PP->formfCore"); 752 Free(PP->fnl, "RemovePseudoRead: PP->fnl"); 753 Free(PP->VCoulombc, "RemovePseudoRead: PP->VCoulombc"); 754 Free(PP->lm_end, "RemovePseudoRead: PP->lm_end"); 755 Free(PP->zval, "RemovePseudoRead: PP->zval"); 756 Free(PP->nang, "RemovePseudoRead: PP->nang"); 757 Free(PP->mmax, "RemovePseudoRead: PP->mmax"); 758 Free(PP->clog, "RemovePseudoRead: PP->clog"); 759 759 } 760 760 -
pcp/src/wannier.c
r32de28 r64fa9e 96 96 fprintf(stderr,"\n");*/ 97 97 // and finito 98 Free(old_top );99 Free(old_bot );98 Free(old_top, "bla"); 99 Free(old_bot, "bla"); 100 100 } 101 101 … … 490 490 // free lookups 491 491 for (i=0;i<NDIM;i++) { 492 Free(cos_lookup[i] );493 Free(sin_lookup[i] );494 } 495 Free(cos_lookup );496 Free(sin_lookup );492 Free(cos_lookup[i], "bla"); 493 Free(sin_lookup[i], "bla"); 494 } 495 Free(cos_lookup, "bla"); 496 Free(sin_lookup, "bla"); 497 497 498 498 if(P->Call.out[ReadOut]) fprintf(stderr,"(%i) STEP 1\n",P->Par.me); … … 800 800 // Free column vectors 801 801 for (k=0;k<max_operators+1;k++) { 802 Free(Atotal[k] );803 Free(Around[k] );804 } 805 Free(Uround );806 Free(Utotal );807 Free(c_all );808 Free(s_all );809 Free(c );810 Free(s );811 Free(rcounts );812 Free(rdispls );802 Free(Atotal[k], "bla"); 803 Free(Around[k], "bla"); 804 } 805 Free(Uround, "bla"); 806 Free(Utotal, "bla"); 807 Free(c_all, "bla"); 808 Free(s_all, "bla"); 809 Free(c, "bla"); 810 Free(s, "bla"); 811 Free(rcounts, "bla"); 812 Free(rdispls, "bla"); 813 813 814 814 } else { … … 920 920 gsl_vector_free(eval); 921 921 gsl_matrix_free(evec); 922 Free(c );923 Free(s );922 Free(c, "bla"); 923 Free(s, "bla"); 924 924 } 925 925 … … 934 934 } 935 935 } 936 Free(top );937 Free(bot );936 Free(top, "bla"); 937 Free(bot, "bla"); 938 938 939 939 if(P->Call.out[ReadOut]) fprintf(stderr,"(%i) STEP 6: Allocating buffer mem\n",P->Par.me); … … 1015 1015 } 1016 1016 // and free allocated buffer memory 1017 Free(coeffs_buffer );1017 Free(coeffs_buffer, "bla"); 1018 1018 1019 1019 if(P->Call.out[ReadOut]) fprintf(stderr,"(%i) STEP 7\n",P->Par.me); … … 1202 1202 //debug(P,"done"); 1203 1203 1204 Free(marker );1204 Free(marker, "bla"); 1205 1205 for (l=0;l<Num;l++) 1206 Free(group[l] );1207 Free(group );1206 Free(group[l], "bla"); 1207 Free(group, "bla"); 1208 1208 break; 1209 1209 case 1: … … 1501 1501 // free lookups 1502 1502 for (k=0;k<NDIM;k++) { 1503 Free(cos_lookup[k] );1504 Free(sin_lookup[k] );1505 } 1506 Free(cos_lookup );1507 Free(sin_lookup );1503 Free(cos_lookup[k], "bla"); 1504 Free(sin_lookup[k], "bla"); 1505 } 1506 Free(cos_lookup, "bla"); 1507 Free(sin_lookup, "bla"); 1508 1508 1509 1509 return (B_ij - spread);
Note:
See TracChangeset
for help on using the changeset viewer.