Changeset d6f7f3 for pcp/src/perturbed.c
- Timestamp:
- May 24, 2008, 12:47:21 PM (17 years ago)
- Children:
- ccd028
- Parents:
- cd028d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pcp/src/perturbed.c
rcd028d rd6f7f3 121 121 122 122 if(P->Call.out[MinOut]) fprintf(stderr, "(%i) Re-initializing perturbed psi array for type %s ", P->Par.me, R->MinimisationName[type]); 123 if ( P->Call.ReadSrcFiles&& (flag = ReadSrcPsiDensity(P,type,1, R->LevS->LevelNo))) {// in flag store whether stored Psis are readible or not123 if ((P->Call.ReadSrcFiles == DoReadAllSrcDensities) && (flag = ReadSrcPsiDensity(P,type,1, R->LevS->LevelNo))) {// in flag store whether stored Psis are readible or not 124 124 SpeedMeasure(P, InitSimTime, StartTimeDo); 125 125 if(P->Call.out[MinOut]) fprintf(stderr,"from source file of recent calculation\n"); … … 136 136 SpeedMeasure(P, InitSimTime, StopTimeDo); 137 137 } 138 if ((P->Call.ReadSrcFiles != 1) || (!flag)) { // read and don't minimise only if SrcPsi were parsable!138 if ((P->Call.ReadSrcFiles != DoReadAllSrcDensities) || (!flag)) { // read and don't minimise only if SrcPsi were parsable! 139 139 SpeedMeasure(P, InitSimTime, StartTimeDo); 140 140 ResetGramSchTagType(P, Psi, type, NotOrthogonal); // perturbed now shall be orthonormalized 141 if ((P->Call.ReadSrcFiles != 2) || (!flag)) {141 if ((P->Call.ReadSrcFiles != DoReadAndMinimise) || (!flag)) { 142 142 if (R->LevSNo == Lat->MaxLevel-1) { // is it the starting level? (see InitRunLevel()) 143 143 if(P->Call.out[MinOut]) fprintf(stderr, "randomly.\n"); … … 4173 4173 UpdateActualPsiNo(P, type); // step on to next perturbed one 4174 4174 fprintf(stderr, "(%i) Re-initializing perturbed psi array for type %s ", P->Par.me, R->MinimisationName[type]); 4175 if ( P->Call.ReadSrcFiles&& ReadSrcPsiDensity(P,type,1, R->LevSNo)) {4175 if ((P->Call.ReadSrcFiles == DoReadAllSrcDensities) && ReadSrcPsiDensity(P,type,1, R->LevSNo)) { 4176 4176 SpeedMeasure(P, InitSimTime, StartTimeDo); 4177 4177 fprintf(stderr,"from source file of recent calculation\n"); … … 4188 4188 SpeedMeasure(P, InitSimTime, StopTimeDo); 4189 4189 } 4190 if (P->Call.ReadSrcFiles != 1) {4190 if (P->Call.ReadSrcFiles != DoReadAllSrcDensities) { 4191 4191 SpeedMeasure(P, InitSimTime, StartTimeDo); 4192 4192 ResetGramSchTagType(P, Psi, type, NotOrthogonal); // perturbed now shall be orthonormalized 4193 if (P->Call.ReadSrcFiles != 2) {4193 if (P->Call.ReadSrcFiles != DoReadAndMinimise) { 4194 4194 if (R->LevSNo == Lat->MaxLevel-1) { // is it the starting level? (see InitRunLevel()) 4195 4195 fprintf(stderr, "randomly.\n");
Note:
See TracChangeset
for help on using the changeset viewer.