Repository navigation
Passing vector to a function in Plumed #1405
Unanswered
vanquycong
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello everyone,
I hope someone could help me here.
There was an example in this reposistory which is very closed to the function that I would implement in Plumed:
https://github.com/plumed/plumed2/blob/master/regtest/symfunc/rt-center3/plumed.dat
So, it is:
c1: COORDINATIONNUMBER SPECIES=85-120 SWITCH={EXP D_0=4.0 R_0=0.5}
cf: MORE_THAN ARG=c1 SWITCH={RATIONAL D_0=2.0 R_0=0.1}
ww: MATHEVAL ARG=c1,cf FUNC=x*y PERIODIC=NO
cc: CENTER ATOMS=c1 WEIGHTS=ww
PRINT ARG=cc.* FILE=COLVAR.unbiased2 STRIDE=2
FLUSH STRIDE=2
Could someone tell me which version of Plumed this example is?
As you can see, c1 yields a vector that can be passed as an argument to the function cf. If I am not messing up anything, this can be done only with Plumed 2.10.
I tried with Plumed 2.10. If I print only the ww, it works pretty well.
But if I print the cc, my simulation crashes, while the plumed.log files does not show any error.
Did anyone face such an issue before and could give me a solution?
Best
Quy
All reactions