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
6a5c7d5e
Commit
6a5c7d5e
authored
Jul 10, 2014
by
Christopher Dembia
Browse files
Replace tab with 4 spaces.
parent
1a7c996a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
libraries/lepton/src/ParsedExpression.cpp
libraries/lepton/src/ParsedExpression.cpp
+1
-1
No files found.
libraries/lepton/src/ParsedExpression.cpp
View file @
6a5c7d5e
...
@@ -60,7 +60,7 @@ double ParsedExpression::evaluate(const map<string, double>& variables) const {
...
@@ -60,7 +60,7 @@ double ParsedExpression::evaluate(const map<string, double>& variables) const {
}
}
double
ParsedExpression
::
evaluate
(
const
ExpressionTreeNode
&
node
,
const
map
<
string
,
double
>&
variables
)
{
double
ParsedExpression
::
evaluate
(
const
ExpressionTreeNode
&
node
,
const
map
<
string
,
double
>&
variables
)
{
int
numArgs
=
(
int
)
node
.
getChildren
().
size
();
int
numArgs
=
(
int
)
node
.
getChildren
().
size
();
vector
<
double
>
args
(
max
(
numArgs
,
1
));
vector
<
double
>
args
(
max
(
numArgs
,
1
));
for
(
int
i
=
0
;
i
<
numArgs
;
i
++
)
for
(
int
i
=
0
;
i
<
numArgs
;
i
++
)
args
[
i
]
=
evaluate
(
node
.
getChildren
()[
i
],
variables
);
args
[
i
]
=
evaluate
(
node
.
getChildren
()[
i
],
variables
);
...
...
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