Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Markus Scheidgen
parser-exciting
Commits
86900ec2
Commit
86900ec2
authored
Aug 23, 2017
by
Pardini, Lorenzo (lopa)
Browse files
fixed bug due to unofficial GW version
parent
d8f000c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
parser/parser-exciting/exciting_parser_gw.py
View file @
86900ec2
...
@@ -110,7 +110,8 @@ class GWContext(object):
...
@@ -110,7 +110,8 @@ class GWContext(object):
Sc
[
i
].
append
([])
Sc
[
i
].
append
([])
qpE
[
i
].
append
([])
qpE
[
i
].
append
([])
Znk
[
i
].
append
([])
Znk
[
i
].
append
([])
x
,
y
,
z
,
weight
=
float
(
s
.
split
()[
3
]),
float
(
s
.
split
()[
4
]),
float
(
s
.
split
()[
5
]),
float
(
s
.
split
()[
6
])
# x,y,z,weight = float(s.split()[3]),float(s.split()[4]),float(s.split()[5]),float(s.split()[6])
x
,
y
,
z
=
float
(
s
.
split
()[
3
]),
float
(
s
.
split
()[
4
]),
float
(
s
.
split
()[
5
])
qpGWKpoint
[
-
1
].
append
(
x
)
qpGWKpoint
[
-
1
].
append
(
x
)
qpGWKpoint
[
-
1
].
append
(
y
)
qpGWKpoint
[
-
1
].
append
(
y
)
qpGWKpoint
[
-
1
].
append
(
z
)
qpGWKpoint
[
-
1
].
append
(
z
)
...
...
parser/parser-exciting/parser_exciting.py
View file @
86900ec2
...
@@ -127,7 +127,8 @@ class ExcitingParserContext(object):
...
@@ -127,7 +127,8 @@ class ExcitingParserContext(object):
bandFile
=
os
.
path
.
join
(
dirPath
,
"bandstructure.xml"
)
bandFile
=
os
.
path
.
join
(
dirPath
,
"bandstructure.xml"
)
fermiSurfFile
=
os
.
path
.
join
(
dirPath
,
"FERMISURF.bxsf"
)
fermiSurfFile
=
os
.
path
.
join
(
dirPath
,
"FERMISURF.bxsf"
)
# inputFile = os.path.join(dirPath, "input.xml")
# inputFile = os.path.join(dirPath, "input.xml")
gwFile
=
os
.
path
.
join
(
dirPath
,
"GW_INFO.OUT"
)
gw_File
=
os
.
path
.
join
(
dirPath
,
"GW_INFO.OUT"
)
gwFile
=
os
.
path
.
join
(
dirPath
,
"GWINFO.OUT"
)
eigvalFile
=
os
.
path
.
join
(
dirPath
,
"EIGVAL.OUT"
)
eigvalFile
=
os
.
path
.
join
(
dirPath
,
"EIGVAL.OUT"
)
# if os.path.exists(inputFile):
# if os.path.exists(inputFile):
...
@@ -139,7 +140,7 @@ class ExcitingParserContext(object):
...
@@ -139,7 +140,7 @@ class ExcitingParserContext(object):
if
os
.
path
.
exists
(
bandFile
):
if
os
.
path
.
exists
(
bandFile
):
with
open
(
bandFile
)
as
g
:
with
open
(
bandFile
)
as
g
:
exciting_parser_bandstructure
.
parseBand
(
g
,
backend
,
self
.
spinTreat
)
exciting_parser_bandstructure
.
parseBand
(
g
,
backend
,
self
.
spinTreat
)
if
os
.
path
.
exists
(
gwFile
):
if
os
.
path
.
exists
(
gwFile
)
or
os
.
path
.
exists
(
gw_File
)
:
# with open(gwFile) as f:
# with open(gwFile) as f:
backend
.
addValue
(
'electronic_structure_method'
,
"G0W0"
)
backend
.
addValue
(
'electronic_structure_method'
,
"G0W0"
)
# exciting_parser_gw.parseGW(f, backend, self.spinTreat)
# exciting_parser_gw.parseGW(f, backend, self.spinTreat)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment