Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
qbox-public
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
qbox
qbox-public
Commits
8d434af8
Commit
8d434af8
authored
May 01, 2020
by
Francois Gygi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spectrum file for nspin==2
parent
7a008115
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
SpectrumCmd.C
src/SpectrumCmd.C
+2
-1
No files found.
src/SpectrumCmd.C
View file @
8d434af8
...
...
@@ -248,15 +248,16 @@ int SpectrumCmd::action(int argc, char **argv)
// write spectrum to file spectrum.dat
if
(
ui
->
onpe0
()
)
{
ofstream
spfile
(
spfilename
);
for
(
int
ispin
=
0
;
ispin
<
nspin
;
ispin
++
)
{
ofstream
spfile
(
spfilename
);
spfile
<<
"# spectrum ispin="
<<
ispin
+
1
<<
" width="
<<
width
<<
endl
;
for
(
int
ie
=
0
;
ie
<
sp
[
ispin
].
size
();
ie
++
)
spfile
<<
emin
+
ie
*
de
<<
" "
<<
sp
[
ispin
][
ie
]
<<
endl
;
spfile
<<
endl
<<
endl
;
}
spfile
.
close
();
}
return
0
;
...
...
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