Changeset d6f7f3 for pcp/src/perturbed.c


Ignore:
Timestamp:
May 24, 2008, 12:47:21 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
ccd028
Parents:
cd028d
Message:

CallOptions#ReadSrcFile is now enumerated ParseSrcDensities

This is done to distinguish between when only Occ are parsed (i.e. when StructOpt has been done before and now we do perturbed run), all or we pare and minimise subsequently.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pcp/src/perturbed.c

    rcd028d rd6f7f3  
    121121
    122122    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 not
     123    if ((P->Call.ReadSrcFiles == DoReadAllSrcDensities) && (flag = ReadSrcPsiDensity(P,type,1, R->LevS->LevelNo))) {// in flag store whether stored Psis are readible or not
    124124      SpeedMeasure(P, InitSimTime, StartTimeDo); 
    125125      if(P->Call.out[MinOut]) fprintf(stderr,"from source file of recent calculation\n");
     
    136136      SpeedMeasure(P, InitSimTime, StopTimeDo); 
    137137    }
    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!
    139139      SpeedMeasure(P, InitSimTime, StartTimeDo); 
    140140      ResetGramSchTagType(P, Psi, type, NotOrthogonal); // perturbed now shall be orthonormalized
    141       if ((P->Call.ReadSrcFiles != 2) || (!flag)) {
     141      if ((P->Call.ReadSrcFiles != DoReadAndMinimise) || (!flag)) {
    142142        if (R->LevSNo == Lat->MaxLevel-1) { // is it the starting level? (see InitRunLevel())
    143143          if(P->Call.out[MinOut]) fprintf(stderr, "randomly.\n");
     
    41734173    UpdateActualPsiNo(P, type); // step on to next perturbed one
    41744174    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)) {
    41764176      SpeedMeasure(P, InitSimTime, StartTimeDo); 
    41774177      fprintf(stderr,"from source file of recent calculation\n");
     
    41884188      SpeedMeasure(P, InitSimTime, StopTimeDo); 
    41894189    }
    4190     if (P->Call.ReadSrcFiles != 1) {
     4190    if (P->Call.ReadSrcFiles != DoReadAllSrcDensities) {
    41914191      SpeedMeasure(P, InitSimTime, StartTimeDo); 
    41924192      ResetGramSchTagType(P, Psi, type, NotOrthogonal); // perturbed now shall be orthonormalized
    4193       if (P->Call.ReadSrcFiles != 2) {
     4193      if (P->Call.ReadSrcFiles != DoReadAndMinimise) {
    41944194        if (R->LevSNo == Lat->MaxLevel-1) { // is it the starting level? (see InitRunLevel())
    41954195          fprintf(stderr, "randomly.\n");
Note: See TracChangeset for help on using the changeset viewer.