Changeset fdbf0c


Ignore:
Timestamp:
Sep 11, 2008, 1:27:26 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
5a78f5, c99adf
Parents:
4917ddd
Message:

pcp now only performs the wannier minimisation in the non-perturbative case only if explicitely s
tated in the config file: DoWannier

Location:
pcp/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pcp/src/init.c

    r4917ddd rfdbf0c  
    15871587  if (R->UseAddGramSch > 2) R->UseAddGramSch = 2;
    15881588  if(P->Call.out[ReadOut]) fprintf(stderr,"(%i)UseAddGramSch = %i\n",me,R->UseAddGramSch);
     1589  if(!ParseForParameter(P->Call.out[ReadOut],file,"DoWannier", 0, 1, 1, int_type, &R->DoWannier, 1, optional)) {
     1590    R->DoWannier = 0;
     1591  } else {
     1592    if (R->DoWannier < 0) R->DoWannier = 0;
     1593    if (R->DoWannier > 1) R->DoWannier = 1;
     1594  }
    15891595  if(!ParseForParameter(P->Call.out[ReadOut],file,"CommonWannier", 0, 1, 1, int_type, &R->CommonWannier, 1, optional)) {
    15901596    R->CommonWannier = 0;
  • pcp/src/run.c

    r4917ddd rfdbf0c  
    10911091      MinimiseOccupied(P, &Stop, &SuperStop);
    10921092      if (!I->StructOpt) {
    1093         if (((P->Call.ReadSrcFiles != DoReadAllSrcDensities) && (P->Call.ReadSrcFiles != DoReadOccupiedSrcDensities)) || (!ParseWannierFile(P))) { // only localize and store if they have just been minimised (hence don't come solely from file), otherwise read stored values from file (if possible)
     1093        if (((R->DoPerturbation) || (R->DoWannier)) && (((P->Call.ReadSrcFiles != DoReadAllSrcDensities) && (P->Call.ReadSrcFiles != DoReadOccupiedSrcDensities)) || (!ParseWannierFile(P)))) { // only localize and store if they have just been minimised (hence don't come solely from file), otherwise read stored values from file (if possible)
    10941094          SpeedMeasure(P, WannierTime, StartTimeDo);
    10951095          ComputeMLWF(P);   // localization of orbitals
     
    11001100        // join Wannier orbital to groups with common centres under certain conditions
    11011101        //debug (P,"Changing Wannier Centres according to CommonWannier");
    1102         ChangeWannierCentres(P);
     1102        if (R->DoPerturbation)
     1103          ChangeWannierCentres(P);
    11031104        OutputVisSrcFiles(P, Occupied); // rewrite now localized orbitals
    11041105       
  • pcp/src/run.h

    r4917ddd rfdbf0c  
    6767  int DoFullCurrent;              //!< whether in current density \f$\Delta j_k(r')\f$ is always (1), never (0) or when needed (2) calculated and added
    6868  int DoPerturbation;             //!< States whether an external magnetic field is applied and perturbed wave functions, energies and derivated currents shall be calculated
     69  int DoWannier;                  //!< States in the non-perturbation case whether we still have to calculate wannier functions (1) or not (0)
    6970  int CommonWannier;               //!< Defines whether the same Wannier centre for all orbitals (1), individual (0) or combined ones in regard to spread (2) shall be used
    7071  int VectorPlane;                //!< output current vector plane perpendicular to this axis (0,1,2, -1=don't)
Note: See TracChangeset for help on using the changeset viewer.