Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
qbox
qbox-public
Commits
4fe30bb3
Commit
4fe30bb3
authored
Jan 07, 2022
by
Francois Gygi
Browse files
Merge branch 'develop'
parents
12bc34cf
a5375a95
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Wavefunction.cpp
View file @
4fe30bb3
...
...
@@ -447,12 +447,19 @@ void Wavefunction::add_kpoint(D3vector kpoint, double weight)
}
else
if
(
nspin_
==
2
)
{
const
int
nocc_up
=
(
nel_
+
1
)
/
2
+
deltaspin_
;
const
int
nocc_dn
=
nel_
/
2
-
deltaspin_
;
if
(
nsp_loc
()
>
0
)
sd_
[
0
][
ikp_loc
]
->
update_occ
(
nocc_up
,
nspin_
);
if
(
nsp_loc
()
>
1
)
sd_
[
1
][
ikp_loc
]
->
update_occ
(
nocc_dn
,
nspin_
);
for
(
int
isp_loc
=
0
;
isp_loc
<
sd_
.
size
();
++
isp_loc
)
{
if
(
isp_global_
[
isp_loc
]
==
0
)
{
const
int
nocc_up
=
(
nel_
+
1
)
/
2
+
deltaspin_
;
sd_
[
isp_loc
][
ikp_loc
]
->
update_occ
(
nocc_up
,
nspin_
);
}
else
{
const
int
nocc_dn
=
nel_
/
2
-
deltaspin_
;
sd_
[
isp_loc
][
ikp_loc
]
->
update_occ
(
nocc_dn
,
nspin_
);
}
}
}
else
{
...
...
src/release.cpp
View file @
4fe30bb3
...
...
@@ -19,5 +19,5 @@
#include
"release.h"
std
::
string
release
(
void
)
{
return
std
::
string
(
"rel1_73_4"
);
return
std
::
string
(
"rel1_73_4
dev
"
);
}
Write
Preview
Supports
Markdown
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