Skip to content

Commit cdb0308

Browse files
committed
Update Nexus and lab5
1 parent 88e9d30 commit cdb0308

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

docs/lab_excited.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,8 @@ neutral DFT calculations; therefore, we need to explicitly define the
417417
band and twist indexes of the excitations in QMCPACK (e.g., to define
418418
electron promotion). In C-diamond, we can give an example by finding the
419419
band and twist indexes of :math:`\Gamma` and :math:`\Delta'`. For this
420-
end, a mock VMC calculation can be run and the ``updet.tile_300010003.spin_0.tw_0.g0.bandinfo.dat`` file read. The Einspline
421-
file prints out the eigenstates information from DFT calculations.
420+
end, a mock VMC calculation can be run and the ``updet.tile_300010003.spin_0.tw_0.g0.bandinfo.dat`` file read. The bandinfo
421+
file includes the eigenstates information from the underlying DFT calculation.
422422
Therefore, we can obtain the band and the state index from this file,
423423
which can later be used to define the electron promotion. You can see in
424424
the following an explanation of how the band and twist indexes are
@@ -594,7 +594,7 @@ Here, the number of up electrons are increased by one (negatively charged system
594594

595595
QE uses symmetry to reduce the number of k-points required for the calculation.
596596
Therefore, all symmetry tags in QE (``nosym``, ``noinv``, and ``nosym_evc``) must be set to false.
597-
An easy way to check whether this is the case is to see that all KmK values ``einspline`` files are equal to 1.
597+
An easy way to check whether this is the case is to see that all KmK values ``bandinfo`` files are equal to 1.
598598
Previously, the input for the neutral cell is given, while the changes are denoted as comments for the positively charged cell.
599599
Note that we have used ``det_format = "old"`` in the ``vmc_+/-e.py`` files.
600600

nexus/docs/examples.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1544,7 +1544,7 @@ k-point grid density in one dimension.
15441544
format. Another option is to use an indexing of the orbitals depending
15451545
on their energetic ordering. In this example this would correspond to
15461546
"excitation = [’up’, ’-11 +12’]". Band/twist index and energy indexes
1547-
of the orbitals can be found in "einspline" files or they can be
1547+
of the orbitals can be found in "bandinfo" files or they can be
15481548
determined after parsing the "nscf.out" file using PwscfAnalyzer.
15491549
In addition to these options, "excitation = ['up','lowest']" can also
15501550
be specified which will execute a homo-lumo excitation based on the

nexus/nexus/qmcpack.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ def post_analyze(self,analyzer):
12261226
if exc_run:
12271227
exc_failure = False
12281228

1229-
edata = self.read_einspline_dat()
1229+
edata = self.read_bandinfo_dat()
12301230
exc_input = self.excitation
12311231

12321232
exc_spin,exc_type,exc_spins,exc_types,exc1,exc2 = check_excitation_type(exc_input)
@@ -1547,10 +1547,10 @@ def write_prep(self):
15471547
#end if
15481548
#end def write_prep
15491549

1550-
def read_einspline_dat(self):
1550+
def read_bandinfo_dat(self):
15511551
edata = obj()
15521552
import glob
1553-
for einpath in glob.glob(self.locdir+'/einsplin*'):
1553+
for einpath in glob.glob(self.locdir+'/*.bandinfo.dat'):
15541554
ftokens = einpath.split('.')
15551555
fspin = int(ftokens[-5][5])
15561556
if fspin==0:
@@ -1573,7 +1573,7 @@ def read_einspline_dat(self):
15731573
#end with
15741574
#end for
15751575
return edata
1576-
#end def read_einspline_dat
1576+
#end def read_bandinfo_dat
15771577
#end class Qmcpack
15781578

15791579

0 commit comments

Comments
 (0)