You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If using Command::ProcessInput(CpptrajState&, std::string const&) to load to CpptrajState, I got what I am expecting (rmsd calculation for only 300-K frames).
however, I am using 'Command:Dispatch` to dispatch each line of above input (with CpptrajState), I got rmsd for rem.nc.000 instead.
Looking at cpptraj's code, TrajinList need to be tagged with 'ENSEMBLE' to get correct result.
So my question is
how to tag it with current CpptrajState
is it possible to make RunEnsemble so we don't need to tag at all.
what's your best solution?
The text was updated successfully, but these errors were encountered:
Looking at cpptraj's code, TrajinList need to be tagged with 'ENSEMBLE' to get correct result.
No, ensemble is only active when ensemble commands have been issued. In cpptraj trajin means you will be processing one frame at a time and ensemble means you will be processing multiple frames at a time. They have their own functions in CpptrajState, RunNormal() and RunEnsemble() respectively.
Since ProcessInput() calls Dispatch() (Command.cpp, line 295) and in fact the former is just a wrapper around the latter that gets and formats input from a file/STDIN, I really can't say what might be going wrong without seeing an example of your code.
So I have two situations with identical input but giving different result
input
If using
Command::ProcessInput(CpptrajState&, std::string const&)
to load to CpptrajState, I got what I am expecting (rmsd calculation for only 300-K frames).however, I am using 'Command:Dispatch` to dispatch each line of above input (with CpptrajState), I got rmsd for rem.nc.000 instead.
Looking at cpptraj's code,
TrajinList
need to be tagged with 'ENSEMBLE' to get correct result.So my question is
RunEnsemble
so we don't need to tag at all.The text was updated successfully, but these errors were encountered: