From 4df397b3394ad627b739c9d801014b699c34f96f Mon Sep 17 00:00:00 2001 From: Daniele Date: Thu, 10 Oct 2024 16:31:08 +0200 Subject: [PATCH] this should solve #1091 (#1109) Co-authored-by: Daniele Rapetti <5535617+Iximiel@users.noreply.github.com> --- src/bias/Walls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bias/Walls.cpp b/src/bias/Walls.cpp index 34530e8f1f..f94c708986 100644 --- a/src/bias/Walls.cpp +++ b/src/bias/Walls.cpp @@ -94,7 +94,7 @@ Walls::Walls(const ActionOptions&ao): readInputLine( getShortcutLabel() + "_pow_" + argn + ": CUSTOM PERIODIC=NO FUNC=step(x)*x^" + exp[i] + " ARG=" + getShortcutLabel() + "_scale_" + argn ); } else if( getName()=="LOWER_WALLS" ) { readInputLine( getShortcutLabel() + "_scale_" + argn + ": CUSTOM PERIODIC=NO FUNC=(x-" + offset[i] +")/" + eps[i] + " ARG=" + getShortcutLabel() + "_cv_" + argn ); - readInputLine( getShortcutLabel() + "_pow_" + argn + ": CUSTOM PERIODIC=NO FUNC=step(-x)*x^" + exp[i] + " ARG=" + getShortcutLabel() + "_scale_" + argn ); + readInputLine( getShortcutLabel() + "_pow_" + argn + ": CUSTOM PERIODIC=NO FUNC=step(-x)*(-x)^" + exp[i] + " ARG=" + getShortcutLabel() + "_scale_" + argn ); } readInputLine( getShortcutLabel() + "_v_wall_" + argn + ": CUSTOM PERIODIC=NO FUNC=" + kappa[i] +"*x" + " ARG=" + getShortcutLabel() + "_pow_" + argn ); readInputLine( getShortcutLabel() + "_wall_" + argn + ": SUM ARG=" + getShortcutLabel() + "_v_wall_" + argn + " PERIODIC=NO");