Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lammps
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
multiscale
lammps
Commits
812f1a8f
Commit
812f1a8f
authored
7 years ago
by
Axel Kohlmeyer
Browse files
Options
Downloads
Patches
Plain Diff
remove local variables shadowing global ones in BondsOMP()
parent
218bc92c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/USER-OMP/reaxc_bonds_omp.cpp
+7
-8
7 additions, 8 deletions
src/USER-OMP/reaxc_bonds_omp.cpp
with
7 additions
and
8 deletions
src/USER-OMP/reaxc_bonds_omp.cpp
+
7
−
8
View file @
812f1a8f
...
...
@@ -49,14 +49,14 @@ void BondsOMP( reax_system *system, control_params *control,
startTimeBase
=
MPI_Wtime
();
#endif
int
natoms
=
system
->
n
;
int
nthreads
=
control
->
nthreads
;
const
int
natoms
=
system
->
n
;
const
int
nthreads
=
control
->
nthreads
;
reax_list
*
bonds
=
(
*
lists
)
+
BONDS
;
double
gp3
=
system
->
reax_param
.
gp
.
l
[
3
];
double
gp4
=
system
->
reax_param
.
gp
.
l
[
4
];
double
gp7
=
system
->
reax_param
.
gp
.
l
[
7
];
double
gp10
=
system
->
reax_param
.
gp
.
l
[
10
];
double
gp37
=
(
int
)
system
->
reax_param
.
gp
.
l
[
37
];
const
double
gp3
=
system
->
reax_param
.
gp
.
l
[
3
];
const
double
gp4
=
system
->
reax_param
.
gp
.
l
[
4
];
const
double
gp7
=
system
->
reax_param
.
gp
.
l
[
7
];
const
double
gp10
=
system
->
reax_param
.
gp
.
l
[
10
];
const
int
gp37
=
(
int
)
system
->
reax_param
.
gp
.
l
[
37
];
double
total_Ebond
=
0.0
;
#if defined(_OPENMP)
...
...
@@ -67,7 +67,6 @@ void BondsOMP( reax_system *system, control_params *control,
int
start_i
,
end_i
;
int
type_i
,
type_j
;
double
ebond
,
ebond_thr
=
0.0
,
pow_BOs_be2
,
exp_be12
,
CEbo
;
double
gp3
,
gp4
,
gp7
,
gp10
,
gp37
;
double
exphu
,
exphua1
,
exphub1
,
exphuov
,
hulpov
,
estriph
,
estriph_thr
=
0.0
;
double
decobdbo
,
decobdboua
,
decobdboub
;
single_body_parameters
*
sbp_i
,
*
sbp_j
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment