git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1372 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -1094,7 +1094,7 @@ double Variable::eval_tree(Tree *tree, int i)
|
||||
return exp(eval_tree(tree->left,i));
|
||||
if (tree->type == LN) {
|
||||
double arg = eval_tree(tree->left,i);
|
||||
if (arg <= 0.0) error->all("Log of negative/zero in variable formula");
|
||||
if (arg <= 0.0) error->all("Log of zero/negative in variable formula");
|
||||
return log(arg);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user