Changeset fdbf0c
- Timestamp:
- Sep 11, 2008, 1:27:26 PM (17 years ago)
- Children:
- 5a78f5, c99adf
- Parents:
- 4917ddd
- Location:
- pcp/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pcp/src/init.c
r4917ddd rfdbf0c 1587 1587 if (R->UseAddGramSch > 2) R->UseAddGramSch = 2; 1588 1588 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 } 1589 1595 if(!ParseForParameter(P->Call.out[ReadOut],file,"CommonWannier", 0, 1, 1, int_type, &R->CommonWannier, 1, optional)) { 1590 1596 R->CommonWannier = 0; -
pcp/src/run.c
r4917ddd rfdbf0c 1091 1091 MinimiseOccupied(P, &Stop, &SuperStop); 1092 1092 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) 1094 1094 SpeedMeasure(P, WannierTime, StartTimeDo); 1095 1095 ComputeMLWF(P); // localization of orbitals … … 1100 1100 // join Wannier orbital to groups with common centres under certain conditions 1101 1101 //debug (P,"Changing Wannier Centres according to CommonWannier"); 1102 ChangeWannierCentres(P); 1102 if (R->DoPerturbation) 1103 ChangeWannierCentres(P); 1103 1104 OutputVisSrcFiles(P, Occupied); // rewrite now localized orbitals 1104 1105 -
pcp/src/run.h
r4917ddd rfdbf0c 67 67 int DoFullCurrent; //!< whether in current density \f$\Delta j_k(r')\f$ is always (1), never (0) or when needed (2) calculated and added 68 68 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) 69 70 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 70 71 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.