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
a26cbfaf
Commit
a26cbfaf
authored
May 08, 2020
by
Francois Gygi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update constraints before ionic step
parent
88181a82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
BOSampleStepper.C
src/BOSampleStepper.C
+1
-3
No files found.
src/BOSampleStepper.C
View file @
a26cbfaf
...
@@ -506,6 +506,7 @@ void BOSampleStepper::step(int niter)
...
@@ -506,6 +506,7 @@ void BOSampleStepper::step(int niter)
{
{
if
(
s_
.
constraints
.
size
()
>
0
)
if
(
s_
.
constraints
.
size
()
>
0
)
{
{
s_
.
constraints
.
update_constraints
(
dt
);
s_
.
constraints
.
compute_forces
(
ionic_stepper
->
r0
(),
fion
);
s_
.
constraints
.
compute_forces
(
ionic_stepper
->
r0
(),
fion
);
if
(
onpe0
)
if
(
onpe0
)
{
{
...
@@ -1241,9 +1242,6 @@ void BOSampleStepper::step(int niter)
...
@@ -1241,9 +1242,6 @@ void BOSampleStepper::step(int niter)
}
}
}
}
if
(
atoms_move
)
s_
.
constraints
.
update_constraints
(
dt
);
// if using force_tol or stress_tol, check if maxforce and maxstress
// if using force_tol or stress_tol, check if maxforce and maxstress
// within tolerance
// within tolerance
if
(
force_tol
>
0
.
0
)
if
(
force_tol
>
0
.
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