Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
eff1f26e
Unverified
Commit
eff1f26e
authored
Jan 28, 2021
by
Peter Eastman
Committed by
GitHub
Jan 28, 2021
Browse files
Workaround for bug in GCC 9 on PPC (#2998)
parent
ffcabcf6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
platforms/cpu/src/CpuNeighborList.cpp
platforms/cpu/src/CpuNeighborList.cpp
+6
-2
No files found.
platforms/cpu/src/CpuNeighborList.cpp
View file @
eff1f26e
...
...
@@ -62,8 +62,12 @@ public:
Voxels
(
int
blockSize
,
float
vsy
,
float
vsz
,
float
miny
,
float
maxy
,
float
minz
,
float
maxz
,
const
Vec3
*
boxVectors
,
bool
usePeriodic
)
:
blockSize
(
blockSize
),
voxelSizeY
(
vsy
),
voxelSizeZ
(
vsz
),
miny
(
miny
),
maxy
(
maxy
),
minz
(
minz
),
maxz
(
maxz
),
usePeriodic
(
usePeriodic
)
{
for
(
int
i
=
0
;
i
<
3
;
i
++
)
for
(
int
j
=
0
;
j
<
3
;
j
++
)
periodicBoxVectors
[
i
][
j
]
=
(
float
)
boxVectors
[
i
][
j
];
for
(
int
j
=
0
;
j
<
3
;
j
++
)
{
// Copying to a volatile temporary variable is a workaround for
// a bug in GCC9 on PPC.
volatile
float
temp
=
(
float
)
boxVectors
[
i
][
j
];
periodicBoxVectors
[
i
][
j
]
=
temp
;
}
periodicBoxSize
[
0
]
=
(
float
)
boxVectors
[
0
][
0
];
periodicBoxSize
[
1
]
=
(
float
)
boxVectors
[
1
][
1
];
periodicBoxSize
[
2
]
=
(
float
)
boxVectors
[
2
][
2
];
...
...
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