- Timestamp:
- Apr 21, 2008, 3:37:30 PM (17 years ago)
- Children:
- 1ce31f
- Parents:
- e24bbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified pcp/src/output.c ¶
re24bbb r48cbc9 1458 1458 fclose(IonsDx); 1459 1459 } 1460 free(datnamef);1461 free(datnameZ);1462 free(posname);1460 Free(datnamef, "OutVisIons: datnamef"); 1461 Free(datnameZ, "OutVisIons: datnameZ"); 1462 Free(posname, "OutVisIons: posname"); 1463 1463 // open IonForces, IonZ and IonPosition file, write forces respectively positions for each ion of each type, close them 1464 1464 if (OpenFileNo(P, &IonsDataF, suffixionfor, F->OutVisStep, "wb",P->Call.out[ReadOut])) { … … 1623 1623 } // LPsiDatA is now set to the coefficients of OnePsi either stored or MPI_Received 1624 1624 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; 1638 1636 } 1639 1637 }
Note:
See TracChangeset
for help on using the changeset viewer.