Changeset 48cbc9 for pcp/src


Ignore:
Timestamp:
Apr 21, 2008, 3:37:30 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
1ce31f
Parents:
e24bbb
Message:

OutputVisIons(): Free() instead of free(), OutputVisAllOrbital(): second MeOutVis-check is unnecessary

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified pcp/src/output.c

    re24bbb r48cbc9  
    14581458    fclose(IonsDx);
    14591459  }
    1460   free(datnamef);
    1461   free(datnameZ);
    1462   free(posname);
     1460  Free(datnamef, "OutVisIons: datnamef");
     1461  Free(datnameZ, "OutVisIons: datnameZ");
     1462  Free(posname, "OutVisIons: posname");
    14631463  // open IonForces, IonZ and IonPosition file, write forces respectively positions for each ion of each type, close them
    14641464  if (OpenFileNo(P, &IonsDataF, suffixionfor, F->OutVisStep, "wb",P->Call.out[ReadOut])) {
     
    16231623      } // LPsiDatA is now set to the coefficients of OnePsi either stored or MPI_Received
    16241624
    1625       if (P->Files.MeOutVis) {
    1626         P->Files.OutputPosType[P->Files.OutVisStep] = P->Lat.RT.ActualUse;
    1627         // recalculate density for the specific wave function ...
    1628         CalculateOneDensityR(Lat, LevS, Dens0, LPsiDatA, Dens0->DensityArray[ActualDensity], R->FactorDensityR, 0);
    1629         // ... and output (wherein ActualDensity is used instead of TotalDensity)
    1630         //OutputVis(P);
    1631         CreateDensityOutputGeneral(P, P->Par.me_comm_ST_Psi);
    1632         OutVisDensity(P, Dens0->DensityArray[ActualDensity]);
    1633         OutVisIons(P);
    1634         if(P->Call.out[NormalOut]) fprintf(stderr,"(%i) Written OutVisStep %i to disk\n", P->Par.me, P->Files.OutVisStep);
    1635         P->Files.OutVisStep+=increment;
    1636         P->Files.OutputPosType[P->Files.OutVisStep] = P->Lat.RT.ActualUse; 
    1637       }
     1625      P->Files.OutputPosType[P->Files.OutVisStep] = P->Lat.RT.ActualUse;
     1626      // recalculate density for the specific wave function ...
     1627      CalculateOneDensityR(Lat, LevS, Dens0, LPsiDatA, Dens0->DensityArray[ActualDensity], R->FactorDensityR, 0);
     1628      // ... and output (wherein ActualDensity is used instead of TotalDensity)
     1629      //OutputVis(P);
     1630      CreateDensityOutputGeneral(P, P->Par.me_comm_ST_Psi);
     1631      OutVisDensity(P, Dens0->DensityArray[ActualDensity]);
     1632      OutVisIons(P);
     1633      if(P->Call.out[NormalOut]) fprintf(stderr,"(%i) Written OutVisStep %i to disk\n", P->Par.me, P->Files.OutVisStep);
     1634      P->Files.OutVisStep+=increment;
     1635      P->Files.OutputPosType[P->Files.OutVisStep] = P->Lat.RT.ActualUse; 
    16381636    }
    16391637  }
Note: See TracChangeset for help on using the changeset viewer.