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
7a2cb108
Commit
7a2cb108
authored
Aug 23, 2018
by
Daniel Schwen
Browse files
Remove unused variable (#1076)
parent
fd6792c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/variable.cpp
View file @
7a2cb108
...
...
@@ -3733,7 +3733,7 @@ int Variable::group_function(char *word, char *contents, Tree **tree,
if
(
strcmp
(
word
,
"count"
)
==
0
)
{
if
(
narg
==
1
)
value
=
group
->
count
(
igroup
);
else
if
(
narg
==
2
)
else
if
(
narg
==
2
)
value
=
group
->
count
(
igroup
,
region_function
(
args
[
1
],
ivar
));
else
print_var_error
(
FLERR
,
"Invalid group function in variable formula"
,
ivar
);
...
...
@@ -3744,7 +3744,7 @@ int Variable::group_function(char *word, char *contents, Tree **tree,
}
else
if
(
strcmp
(
word
,
"charge"
)
==
0
)
{
if
(
narg
==
1
)
value
=
group
->
charge
(
igroup
);
else
if
(
narg
==
2
)
else
if
(
narg
==
2
)
value
=
group
->
charge
(
igroup
,
region_function
(
args
[
1
],
ivar
));
else
print_var_error
(
FLERR
,
"Invalid group function in variable formula"
,
ivar
);
...
...
@@ -3795,7 +3795,7 @@ int Variable::group_function(char *word, char *contents, Tree **tree,
}
else
if
(
strcmp
(
word
,
"bound"
)
==
0
)
{
double
minmax
[
6
];
if
(
narg
==
2
)
group
->
bounds
(
igroup
,
minmax
);
else
if
(
narg
==
3
)
else
if
(
narg
==
3
)
group
->
bounds
(
igroup
,
minmax
,
region_function
(
args
[
2
],
ivar
));
else
print_var_error
(
FLERR
,
"Invalid group function in variable formula"
,
ivar
);
if
(
strcmp
(
args
[
1
],
"xmin"
)
==
0
)
value
=
minmax
[
0
];
...
...
@@ -3959,7 +3959,7 @@ int Variable::special_function(char *word, char *contents, Tree **tree,
double
*
argstack
,
int
&
nargstack
,
int
ivar
)
{
bigint
sx
,
sxx
;
double
value
,
xvalue
,
sy
,
sxy
;
double
value
,
sy
,
sxy
;
// word not a match to any special function
...
...
@@ -4055,7 +4055,7 @@ int Variable::special_function(char *word, char *contents, Tree **tree,
}
else
index
=
0
;
int
ifix
=
modify
->
find_fix
(
&
args
[
0
][
2
]);
if
(
ifix
<
0
)
if
(
ifix
<
0
)
print_var_error
(
FLERR
,
"Invalid fix ID in variable formula"
,
ivar
);
fix
=
modify
->
fix
[
ifix
];
if
(
index
==
0
&&
fix
->
vector_flag
)
{
...
...
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