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
c1261b79
Commit
c1261b79
authored
Jun 19, 2019
by
Francois Gygi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix units of stress_tol test in BOSampleStepper
parent
211d894b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
BOSampleStepper.C
src/BOSampleStepper.C
+4
-1
No files found.
src/BOSampleStepper.C
View file @
c1261b79
...
...
@@ -178,6 +178,8 @@ void BOSampleStepper::step(int niter)
const
bool
compute_mlwfc
=
s_
.
ctrl
.
wf_diag
==
"MLWFC"
;
enum
ortho_type
{
GRAM
,
LOWDIN
,
ORTHO_ALIGN
,
RICCATI
};
const
double
gpa
=
29421
.
5
;
AtomSet
&
atoms
=
s_
.
atoms
;
Wavefunction
&
wf
=
s_
.
wf
;
const
int
nspin
=
wf
.
nspin
();
...
...
@@ -396,8 +398,9 @@ void BOSampleStepper::step(int niter)
if
(
stress_tol
>
0
.
0
)
{
compute_sigma
();
for
(
int
i
=
0
;
i
<
sigma
.
size
();
i
++
)
maxstress
=
max
(
maxstress
,
fabs
(
sigma
[
i
]));
maxstress
=
max
(
maxstress
,
gpa
*
fabs
(
sigma
[
i
]));
}
if
(
onpe0
)
...
...
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