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
argo
Applications
LAMMPS
Commits
92a4dc25
Commit
92a4dc25
authored
Aug 24, 2018
by
Daniel Schwen
Browse files
Fix unused params in packages (#1076)
parent
19976bb9
Changes
277
Hide whitespace changes
Inline
Side-by-side
src/ASPHERE/fix_nve_asphere.cpp
View file @
92a4dc25
...
...
@@ -62,7 +62,7 @@ void FixNVEAsphere::init()
/* ---------------------------------------------------------------------- */
void
FixNVEAsphere
::
initial_integrate
(
int
vflag
)
void
FixNVEAsphere
::
initial_integrate
(
int
/*
vflag
*/
)
{
double
dtfm
;
double
inertia
[
3
],
omega
[
3
];
...
...
src/ASPHERE/fix_nve_asphere_noforce.cpp
View file @
92a4dc25
...
...
@@ -64,7 +64,7 @@ void FixNVEAsphereNoforce::init()
/* ---------------------------------------------------------------------- */
void
FixNVEAsphereNoforce
::
initial_integrate
(
int
vflag
)
void
FixNVEAsphereNoforce
::
initial_integrate
(
int
/*
vflag
*/
)
{
AtomVecEllipsoid
::
Bonus
*
bonus
;
if
(
avec
)
bonus
=
avec
->
bonus
;
...
...
src/ASPHERE/fix_nve_line.cpp
View file @
92a4dc25
...
...
@@ -81,7 +81,7 @@ void FixNVELine::init()
/* ---------------------------------------------------------------------- */
void
FixNVELine
::
initial_integrate
(
int
vflag
)
void
FixNVELine
::
initial_integrate
(
int
/*
vflag
*/
)
{
double
dtfm
,
dtirotate
,
length
,
theta
;
...
...
src/ASPHERE/fix_nve_tri.cpp
View file @
92a4dc25
...
...
@@ -75,7 +75,7 @@ void FixNVETri::init()
/* ---------------------------------------------------------------------- */
void
FixNVETri
::
initial_integrate
(
int
vflag
)
void
FixNVETri
::
initial_integrate
(
int
/*
vflag
*/
)
{
double
dtfm
;
double
omega
[
3
];
...
...
src/BODY/body_nparticle.cpp
View file @
92a4dc25
...
...
@@ -195,7 +195,7 @@ void BodyNparticle::data_body(int ibonus, int ninteger, int ndouble,
called by Molecule class which needs single body size
------------------------------------------------------------------------- */
double
BodyNparticle
::
radius_body
(
int
ninteger
,
int
ndouble
,
double
BodyNparticle
::
radius_body
(
int
/*
ninteger
*/
,
int
ndouble
,
int
*
ifile
,
double
*
dfile
)
{
int
nsub
=
ifile
[
0
];
...
...
@@ -258,7 +258,7 @@ void BodyNparticle::output(int ibonus, int m, double *values)
/* ---------------------------------------------------------------------- */
int
BodyNparticle
::
image
(
int
ibonus
,
double
flag1
,
double
flag2
,
int
BodyNparticle
::
image
(
int
ibonus
,
double
flag1
,
double
/*
flag2
*/
,
int
*&
ivec
,
double
**&
darray
)
{
double
p
[
3
][
3
];
...
...
src/BODY/body_rounded_polygon.cpp
View file @
92a4dc25
...
...
@@ -323,7 +323,7 @@ void BodyRoundedPolygon::data_body(int ibonus, int ninteger, int ndouble,
called by Molecule class which needs single body size
------------------------------------------------------------------------- */
double
BodyRoundedPolygon
::
radius_body
(
int
ninteger
,
int
ndouble
,
double
BodyRoundedPolygon
::
radius_body
(
int
/*
ninteger
*/
,
int
ndouble
,
int
*
ifile
,
double
*
dfile
)
{
int
nsub
=
ifile
[
0
];
...
...
@@ -392,7 +392,7 @@ void BodyRoundedPolygon::output(int ibonus, int m, double *values)
/* ---------------------------------------------------------------------- */
int
BodyRoundedPolygon
::
image
(
int
ibonus
,
double
flag1
,
double
flag2
,
int
BodyRoundedPolygon
::
image
(
int
ibonus
,
double
flag1
,
double
/*
flag2
*/
,
int
*&
ivec
,
double
**&
darray
)
{
int
j
;
...
...
src/BODY/body_rounded_polyhedron.cpp
View file @
92a4dc25
...
...
@@ -381,7 +381,7 @@ void BodyRoundedPolyhedron::data_body(int ibonus, int ninteger, int ndouble,
called by Molecule class which needs single body size
------------------------------------------------------------------------- */
double
BodyRoundedPolyhedron
::
radius_body
(
int
ninteger
,
int
ndouble
,
double
BodyRoundedPolyhedron
::
radius_body
(
int
/*
ninteger
*/
,
int
ndouble
,
int
*
ifile
,
double
*
dfile
)
{
int
nsub
=
ifile
[
0
];
...
...
@@ -460,7 +460,7 @@ void BodyRoundedPolyhedron::output(int ibonus, int m, double *values)
/* ---------------------------------------------------------------------- */
int
BodyRoundedPolyhedron
::
image
(
int
ibonus
,
double
flag1
,
double
flag2
,
int
BodyRoundedPolyhedron
::
image
(
int
ibonus
,
double
flag1
,
double
/*
flag2
*/
,
int
*&
ivec
,
double
**&
darray
)
{
int
j
,
nelements
;
...
...
src/BODY/fix_nve_body.cpp
View file @
92a4dc25
...
...
@@ -54,7 +54,7 @@ void FixNVEBody::init()
/* ---------------------------------------------------------------------- */
void
FixNVEBody
::
initial_integrate
(
int
vflag
)
void
FixNVEBody
::
initial_integrate
(
int
/*
vflag
*/
)
{
double
dtfm
;
double
omega
[
3
];
...
...
src/BODY/fix_wall_body_polygon.cpp
View file @
92a4dc25
...
...
@@ -204,7 +204,7 @@ void FixWallBodyPolygon::setup(int vflag)
/* ---------------------------------------------------------------------- */
void
FixWallBodyPolygon
::
post_force
(
int
vflag
)
void
FixWallBodyPolygon
::
post_force
(
int
/*
vflag
*/
)
{
double
vwall
[
3
],
dx
,
dy
,
dz
,
del1
,
del2
,
delxy
,
delr
,
rsq
,
eradi
,
rradi
,
wall_pos
;
int
i
,
ni
,
npi
,
ifirst
,
nei
,
iefirst
,
side
;
...
...
@@ -475,7 +475,7 @@ void FixWallBodyPolygon::body2space(int i)
int
FixWallBodyPolygon
::
vertex_against_wall
(
int
i
,
double
wall_pos
,
double
**
x
,
double
**
f
,
double
**
torque
,
int
side
,
Contact
*
contact_list
,
int
&
num_contacts
,
double
*
facc
)
Contact
*
contact_list
,
int
&
num_contacts
,
double
*
/*
facc
*/
)
{
int
ni
,
npi
,
ifirst
,
interact
;
double
xpi
[
3
],
xpj
[
3
],
dist
,
eradi
,
rradi
;
...
...
src/BODY/fix_wall_body_polyhedron.cpp
View file @
92a4dc25
...
...
@@ -211,7 +211,7 @@ void FixWallBodyPolyhedron::setup(int vflag)
/* ---------------------------------------------------------------------- */
void
FixWallBodyPolyhedron
::
post_force
(
int
vflag
)
void
FixWallBodyPolyhedron
::
post_force
(
int
/*
vflag
*/
)
{
double
vwall
[
3
],
dx
,
dy
,
dz
,
del1
,
del2
,
delxy
,
delr
,
rsq
,
eradi
,
rradi
,
wall_pos
;
int
i
,
ni
,
npi
,
ifirst
,
nei
,
iefirst
,
nfi
,
iffirst
,
side
;
...
...
@@ -485,7 +485,7 @@ void FixWallBodyPolyhedron::body2space(int i)
---------------------------------------------------------------------- */
int
FixWallBodyPolyhedron
::
sphere_against_wall
(
int
i
,
double
wall_pos
,
int
side
,
double
*
vwall
,
double
**
x
,
double
**
v
,
double
**
f
,
int
/*
side
*/
,
double
*
vwall
,
double
**
x
,
double
**
v
,
double
**
f
,
double
**
angmom
,
double
**
torque
)
{
int
mode
;
...
...
@@ -545,8 +545,8 @@ int FixWallBodyPolyhedron::sphere_against_wall(int i, double wall_pos,
---------------------------------------------------------------------- */
int
FixWallBodyPolyhedron
::
edge_against_wall
(
int
i
,
double
wall_pos
,
int
side
,
double
*
vwall
,
double
**
x
,
double
**
f
,
double
**
torque
,
Contact
*
contact_list
,
int
&
num_contacts
,
double
*
facc
)
int
side
,
double
*
vwall
,
double
**
x
,
double
**
/*f*/
,
double
**
/*
torque
*/
,
Contact
*
/*
contact_list
*/
,
int
&
/*
num_contacts
*/
,
double
*
/*
facc
*/
)
{
int
ni
,
nei
,
mode
,
contact
;
double
rradi
;
...
...
@@ -584,7 +584,7 @@ int FixWallBodyPolyhedron::edge_against_wall(int i, double wall_pos,
int
FixWallBodyPolyhedron
::
compute_distance_to_wall
(
int
ibody
,
int
edge_index
,
double
*
xmi
,
double
rounded_radius_i
,
double
wall_pos
,
int
side
,
double
*
vwall
,
int
&
contact
)
int
/*
side
*/
,
double
*
vwall
,
int
&
contact
)
{
int
mode
,
ifirst
,
iefirst
,
npi1
,
npi2
;
double
d1
,
d2
,
xpi1
[
3
],
xpi2
[
3
],
hi
[
3
];
...
...
@@ -698,7 +698,7 @@ int FixWallBodyPolyhedron::compute_distance_to_wall(int ibody, int edge_index,
------------------------------------------------------------------------- */
void
FixWallBodyPolyhedron
::
contact_forces
(
int
ibody
,
double
j_a
,
double
*
xi
,
double
*
xj
,
double
delx
,
double
dely
,
double
delz
,
double
j_a
,
double
*
xi
,
double
*
/
*
xj
*/
,
double
delx
,
double
dely
,
double
delz
,
double
fx
,
double
fy
,
double
fz
,
double
**
x
,
double
**
v
,
double
**
angmom
,
double
**
f
,
double
**
torque
,
double
*
vwall
)
{
...
...
src/BODY/pair_body_rounded_polygon.cpp
View file @
92a4dc25
...
...
@@ -598,7 +598,7 @@ void PairBodyRoundedPolygon::body2space(int i)
void
PairBodyRoundedPolygon
::
sphere_against_sphere
(
int
i
,
int
j
,
double
delx
,
double
dely
,
double
delz
,
double
rsq
,
double
k_n
,
double
k_na
,
double
**
x
,
double
**
v
,
double
k_n
,
double
k_na
,
double
**
/*x*/
,
double
**
v
,
double
**
f
,
int
evflag
)
{
double
eradi
,
eradj
,
rradi
,
rradj
;
...
...
@@ -1166,7 +1166,7 @@ int PairBodyRoundedPolygon::compute_distance_to_vertex(int ibody,
void
PairBodyRoundedPolygon
::
contact_forces
(
Contact
&
contact
,
double
j_a
,
double
**
x
,
double
**
v
,
double
**
angmom
,
double
**
f
,
double
**
torque
,
double
&
evdwl
,
double
*
facc
)
double
**
torque
,
double
&
/*
evdwl
*/
,
double
*
facc
)
{
int
ibody
,
jbody
,
ibonus
,
jbonus
,
ifirst
,
jefirst
,
ni
,
nj
;
double
fx
,
fy
,
fz
,
delx
,
dely
,
delz
,
rsq
,
rsqinv
;
...
...
src/CLASS2/bond_class2.cpp
View file @
92a4dc25
...
...
@@ -209,7 +209,7 @@ void BondClass2::write_data(FILE *fp)
/* ---------------------------------------------------------------------- */
double
BondClass2
::
single
(
int
type
,
double
rsq
,
int
i
,
int
j
,
double
&
fforce
)
double
BondClass2
::
single
(
int
type
,
double
rsq
,
int
/*i*/
,
int
/*j*/
,
double
&
fforce
)
{
double
r
=
sqrt
(
rsq
);
double
dr
=
r
-
r0
[
type
];
...
...
src/CLASS2/improper_class2.cpp
View file @
92a4dc25
...
...
@@ -633,7 +633,7 @@ void ImproperClass2::read_restart(FILE *fp)
angle-angle interactions within improper
------------------------------------------------------------------------- */
void
ImproperClass2
::
angleangle
(
int
eflag
,
int
vflag
)
void
ImproperClass2
::
angleangle
(
int
eflag
,
int
/*
vflag
*/
)
{
int
i1
,
i2
,
i3
,
i4
,
i
,
j
,
k
,
n
,
type
;
double
eimproper
;
...
...
src/CLASS2/pair_lj_class2.cpp
View file @
92a4dc25
...
...
@@ -377,8 +377,8 @@ void PairLJClass2::write_data_all(FILE *fp)
/* ---------------------------------------------------------------------- */
double
PairLJClass2
::
single
(
int
i
,
int
j
,
int
itype
,
int
jtype
,
double
rsq
,
double
factor_coul
,
double
factor_lj
,
double
PairLJClass2
::
single
(
int
/*i*/
,
int
/*j*/
,
int
itype
,
int
jtype
,
double
rsq
,
double
/*
factor_coul
*/
,
double
factor_lj
,
double
&
fforce
)
{
double
r2inv
,
rinv
,
r3inv
,
r6inv
,
forcelj
,
philj
;
...
...
src/COLLOID/pair_colloid.cpp
View file @
92a4dc25
...
...
@@ -469,8 +469,8 @@ void PairColloid::write_data_all(FILE *fp)
/* ---------------------------------------------------------------------- */
double
PairColloid
::
single
(
int
i
,
int
j
,
int
itype
,
int
jtype
,
double
rsq
,
double
factor_coul
,
double
factor_lj
,
double
PairColloid
::
single
(
int
/*i*/
,
int
/*j*/
,
int
itype
,
int
jtype
,
double
rsq
,
double
/*
factor_coul
*/
,
double
factor_lj
,
double
&
fforce
)
{
double
K
[
9
],
h
[
4
],
g
[
4
];
...
...
src/COLLOID/pair_lubricate.cpp
View file @
92a4dc25
...
...
@@ -749,7 +749,7 @@ void PairLubricate::read_restart_settings(FILE *fp)
/* ---------------------------------------------------------------------- */
int
PairLubricate
::
pack_forward_comm
(
int
n
,
int
*
list
,
double
*
buf
,
int
pbc_flag
,
int
*
pbc
)
int
/*
pbc_flag
*/
,
int
*/
*
pbc
*/
)
{
int
i
,
j
,
m
;
...
...
@@ -797,7 +797,7 @@ void PairLubricate::unpack_forward_comm(int n, int first, double *buf)
if type pair setting, return -2 if no type pairs are set
------------------------------------------------------------------------- */
int
PairLubricate
::
pre_adapt
(
char
*
name
,
int
ilo
,
int
ihi
,
int
jlo
,
int
jhi
)
int
PairLubricate
::
pre_adapt
(
char
*
name
,
int
/*
ilo
*/
,
int
/*
ihi
*/
,
int
/*
jlo
*/
,
int
/*
jhi
*/
)
{
if
(
strcmp
(
name
,
"mu"
)
==
0
)
return
0
;
return
-
1
;
...
...
@@ -809,7 +809,7 @@ int PairLubricate::pre_adapt(char *name, int ilo, int ihi, int jlo, int jhi)
if type pair setting, set I-J and J-I coeffs
------------------------------------------------------------------------- */
void
PairLubricate
::
adapt
(
int
which
,
int
ilo
,
int
ihi
,
int
jlo
,
int
jhi
,
void
PairLubricate
::
adapt
(
int
/*
which
*/
,
int
/*
ilo
*/
,
int
/*
ihi
*/
,
int
/*
jlo
*/
,
int
/*
jhi
*/
,
double
value
)
{
mu
=
value
;
...
...
src/COLLOID/pair_lubricateU.cpp
View file @
92a4dc25
...
...
@@ -2010,7 +2010,7 @@ void PairLubricateU::copy_uo_vec(int inum, double **f, double **torque,
/* ---------------------------------------------------------------------- */
int
PairLubricateU
::
pack_forward_comm
(
int
n
,
int
*
list
,
double
*
buf
,
int
pbc_flag
,
int
*
pbc
)
int
/*
pbc_flag
*/
,
int
*/
*
pbc
*/
)
{
int
i
,
j
,
m
;
...
...
src/COLLOID/pair_yukawa_colloid.cpp
View file @
92a4dc25
...
...
@@ -160,9 +160,9 @@ double PairYukawaColloid::init_one(int i, int j)
/* ---------------------------------------------------------------------- */
double
PairYukawaColloid
::
single
(
int
i
,
int
j
,
int
itype
,
int
jtype
,
double
PairYukawaColloid
::
single
(
int
/*i*/
,
int
/*j*/
,
int
itype
,
int
jtype
,
double
rsq
,
double
factor_coul
,
double
factor_lj
,
double
/*
factor_coul
*/
,
double
factor_lj
,
double
&
fforce
)
{
double
r
,
rinv
,
screening
,
forceyukawa
,
phi
;
...
...
src/KSPACE/pair_coul_long.cpp
View file @
92a4dc25
...
...
@@ -338,9 +338,9 @@ void PairCoulLong::read_restart_settings(FILE *fp)
/* ---------------------------------------------------------------------- */
double
PairCoulLong
::
single
(
int
i
,
int
j
,
int
itype
,
int
jtype
,
double
PairCoulLong
::
single
(
int
i
,
int
j
,
int
/*
itype
*/
,
int
/*
jtype
*/
,
double
rsq
,
double
factor_coul
,
double
factor_lj
,
double
factor_coul
,
double
/*
factor_lj
*/
,
double
&
fforce
)
{
double
r2inv
,
r
,
grij
,
expm2
,
t
,
erfc
,
prefactor
;
...
...
src/KSPACE/pair_coul_msm.cpp
View file @
92a4dc25
...
...
@@ -169,9 +169,9 @@ void PairCoulMSM::compute(int eflag, int vflag)
/* ---------------------------------------------------------------------- */
double
PairCoulMSM
::
single
(
int
i
,
int
j
,
int
itype
,
int
jtype
,
double
PairCoulMSM
::
single
(
int
i
,
int
j
,
int
/*
itype
*/
,
int
/*
jtype
*/
,
double
rsq
,
double
factor_coul
,
double
factor_lj
,
double
factor_coul
,
double
/*
factor_lj
*/
,
double
&
fforce
)
{
double
r2inv
,
r
,
egamma
,
fgamma
,
prefactor
;
...
...
Prev
1
2
3
4
5
…
14
Next
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