Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Laurell, Pontus Bengt Johan
dmrgpp
Commits
14be43f4
Commit
14be43f4
authored
Mar 02, 2021
by
Alvarez, Gonzalo
Browse files
advanceOnlyAtBorder algorithm fixed
parent
556a2d44
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Engine/ApplyOperatorExpression.h
View file @
14be43f4
...
...
@@ -726,7 +726,7 @@ private:
const
bool
advanceOnlyAtBorder
=
!
options
.
isSet
(
"advanceUnrestricted"
);
SizeType
sites
=
targetHelper_
.
model
().
superGeometry
().
numberOfSites
();
bool
weAreAtBorder
=
(
site
<
2
||
site
>=
sites
-
2
);
bool
weAreAtBorder
=
(
site
<
1
||
site
>=
sites
-
1
);
bool
dontAdvance
=
(
advanceOnlyAtBorder
&
!
weAreAtBorder
);
if
(
advanceEach
>
0
&&
timesWithoutAdvancement_
>=
advanceEach
&&
!
dontAdvance
)
{
...
...
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