Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
Sign up now
Login
Sign in
Toggle navigation
Menu
Open sidebar
qbox
qbox-public
Commits
5abca0d6
Commit
5abca0d6
authored
6 years ago
by
Francois Gygi
Browse files
Options
Download
Email Patches
Plain Diff
Compute and print np0v,np1v,np2v in StatusCmd
parent
dc43a96b
master
rel1_78_4
rel1_78_3
rel1_78_2
rel1_78_1
rel1_78_0
rel1_77_0
rel1_76_4
rel1_76_3
rel1_76_2
rel1_76_1
rel1_76_0
rel1_75_1
rel1_75_0
rel1_74_4
rel1_74_3
rel1_74_2
rel1_74_1
rel1_74_0
rel1_73_5
rel1_73_4
rel1_73_3
rel1_73_2
rel1_73_1
rel1_72_3
rel1_72_2
rel1_72_1
rel1_72_0
rel1_71_5
rel1_71_4
rel1_71_3
rel1_71_2
rel1_71_1
rel1_71_0
rel1_70_0
rel1_69_1
rel1_69_0
rel1_68_4
rel1_68_3
rel1_68_2
rel1_68_1
rel1_68_0
rel1_67_4
rel1_67_3
rel1_67_2
rel1_67_1
rel1_67_0
rel1_66_3
rel1_66_2
rel1_66_1
rel1_66_0
rel1_65_1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/StatusCmd.h
+16
-0
src/StatusCmd.h
with
16 additions
and
0 deletions
+16
-0
src/StatusCmd.h
+
16
-
0
View file @
5abca0d6
...
...
@@ -22,6 +22,8 @@
#include
<iostream>
#include
"UserInterface.h"
#include
"Sample.h"
#include
"ChargeDensity.h"
#include
"FourierTransform.h"
class
StatusCmd
:
public
Cmd
{
...
...
@@ -47,8 +49,22 @@ class StatusCmd : public Cmd
int
action
(
int
argc
,
char
**
argv
)
{
// compute the size of the potential grid
int
np0v
=
0
;
int
np1v
=
0
;
int
np2v
=
0
;
if
(
s
->
wf
.
ecut
()
>
0
&&
s
->
wf
.
cell
().
volume
()
>
0
)
{
ChargeDensity
cd
(
s
->
wf
);
np0v
=
cd
.
vft
()
->
np0
();
np1v
=
cd
.
vft
()
->
np1
();
np2v
=
cd
.
vft
()
->
np2
();
}
if
(
ui
->
onpe0
()
)
{
cout
<<
"<np0v> "
<<
np0v
<<
" </np0v> "
<<
"<np1v> "
<<
np1v
<<
" </np1v> "
<<
"<np2v> "
<<
np2v
<<
" </np2v>"
<<
endl
;
s
->
wf
.
info
(
cout
,
"wf"
);
if
(
s
->
wfv
!=
0
)
s
->
wfv
->
info
(
cout
,
"wfv"
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets