Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
3783962
DRR - Use forward declares.
Dec 17, 2019
d2055fc
DRR - Split ControlBlock class stuff from the Control file.
Dec 17, 2019
12d7f7d
DRR - Add missing file.
Dec 18, 2019
117d6b0
DRR - Start trying to split out the various for loop types.
drroe Dec 18, 2019
bc42822
DRR - Add mask for loop type
drroe Dec 18, 2019
03fc2db
DRR - Most of VarType only needed for mask type loop
drroe Dec 18, 2019
7779bd8
DRR - Have SetVarName prepend the $ automatically
drroe Dec 18, 2019
a498b4d
DRR - Add list for loop type
drroe Dec 18, 2019
e1874f2
DRR - Add begin and end functions.
drroe Dec 18, 2019
2663af7
DRR - Add ForLoop files, update depends
drroe Dec 18, 2019
b967972
DRR - Try to use new ForLoop class. Doesnt appear to work yet...
drroe Dec 18, 2019
4bd4c84
DRR - Need to account for prepended $
drroe Dec 18, 2019
4a8d7ae
DRR - Fix variable name and 'in' for list for loop
drroe Dec 18, 2019
a8614d7
DRR - Add GetVariable function
drroe Dec 19, 2019
61064a9
DRR - Have loop start use CurrentVars
drroe Dec 19, 2019
739666a
DRR - Have BeginFor return the number of iterations.
drroe Dec 19, 2019
6dfb78b
DRR - Number of iterations is now determined when loop starts.
drroe Dec 19, 2019
04d0ebc
DRR - Allow end argument to be a variable. More informative messages …
drroe Dec 19, 2019
8ed39f0
DRR - Hide debug and change warning to info
drroe Dec 19, 2019
6e89acf
DRR - Hide some debug info
drroe Dec 19, 2019
ffa3468
DRR - Add MemUsageInBytes to template
Dec 19, 2019
748e9bb
DRR - Add StringVar data set
Dec 19, 2019
80be7af
DRR - Add STRINGVAR to DataSet
Dec 19, 2019
11918bf
DRR - Add Add and append functions
Dec 19, 2019
91746da
DRR - Add Exec version of the Set command
Dec 19, 2019
4a6faf1
DRR - Exec version of show command
Dec 19, 2019
3afcb32
DRR - Start massive changes to move VariableArray functionality to Da…
Dec 19, 2019
a7a752c
DRR - More work replacing VariableArray with DataSetList. Add some fu…
drroe Dec 20, 2019
c8f2e71
DRR - Add another check
drroe Dec 20, 2019
54a4cb3
DRR - Add UpdateStringVar routine and make ForLoop_integer use it.
drroe Dec 20, 2019
e062975
DRR - Use DataSetList in remaining for loops.
drroe Dec 20, 2019
1c4e96a
DRR - DSL can be const& for CheckDone
drroe Dec 20, 2019
972045c
DRR - Add list string variables function
drroe Dec 20, 2019
9d5197b
DRR - Finish up show exec. Still not quite working.
drroe Dec 20, 2019
6645d79
DRR - Add comment
drroe Dec 20, 2019
dc3c64d
DRR - Ensure loop variable is set up as a dataset
drroe Dec 21, 2019
5dd44e8
DRR - Loop variable cannot be the same as DataSet name anymore
drroe Dec 21, 2019
5db7fc6
DRR - Give vectors a name
drroe Dec 21, 2019
6bb4943
DRR - Give RMS sets a name
drroe Dec 21, 2019
06e1440
DRR - Give distance sets a name
drroe Dec 21, 2019
ea42c98
DRR - Name sets
drroe Dec 22, 2019
b15eddb
DRR - Name sets
drroe Dec 22, 2019
d1090f2
Merge branch 'master' into forloops
drroe Dec 23, 2019
611da35
Merge branch 'master' into forloops
drroe Dec 23, 2019
4d64fef
DRR - Ensure final value of integer loops is updated to make behavior…
drroe Dec 23, 2019
a7168c1
DRR - Make 0 iteration loops a warning instead of an error. Ensure al…
drroe Dec 23, 2019
ad291f5
DRR - Make start and end values that will result in no iterations a w…
drroe Dec 23, 2019
c6cc89d
DRR - No such thing as CTL objects anymore
drroe Dec 23, 2019
7c97a5b
DRR - Fix help.
drroe Dec 23, 2019
fab0b11
DRR - More fixing up of help
drroe Dec 23, 2019
285a14a
DRR - Add a check that for loop variable was properly set up. Hide so…
drroe Dec 23, 2019
7893e56
DRR - Hide some more debug info
drroe Dec 23, 2019
ade4beb
DRR - Start adding data set blocks loop
drroe Dec 30, 2019
ee6802d
DRR - Exit if error occurrs setting up loop var
drroe Dec 31, 2019
5795aaa
DRR - More loop setup
drroe Dec 31, 2019
a054866
DRR - Make blocksize an unsigned int
drroe Dec 31, 2019
4533f48
DRR - Start splitting for loop components into separate argument lists
drroe Jan 1, 2020
f6032e0
DRR - Better way of handling individual for loop components; should b…
drroe Jan 1, 2020
582a54d
DRR - Change index vars to long int; refactor so that data set does n…
drroe Jan 1, 2020
2b39856
DRR - Add missing file
drroe Jan 2, 2020
f8c4d29
DRR - Finish initial loop - still need to actually create the sets
drroe Jan 2, 2020
3f09998
DRR - Add test of nested loop vars and <= loop operator
drroe Jan 2, 2020
91fb235
DRR - Enabled dataSetBlocks for loop
drroe Jan 2, 2020
29c8684
DRR - DataSetList needs to be passed in non-const so that data sets c…
drroe Jan 2, 2020
4f71093
DRR - New class for abstracting data set copies
Jan 3, 2020
814daa2
DRR - Improve error message when no valid file type can be found for …
Jan 3, 2020
a421217
DRR - Use DataSetBlock
Jan 3, 2020
d783099
DRR - No need to abstract to DataBlock, just require that DataSet of …
Jan 3, 2020
85665be
DRR - Add MemAlloc and CopyBlock for mesh
Jan 3, 2020
b046725
DRR - Fix up dependencies
Jan 3, 2020
ef3fb4d
DRR - Start attempt to split DataSet_Vector into two sets, 1 with ori…
Jan 3, 2020
925d85f
DRR - Fix up Sync routines, update dependencies
Jan 3, 2020
5f4c8ef
DRR - Fix shadowed variables
Jan 3, 2020
f2a7047
DRR - Accidentally duplicated a function
Jan 3, 2020
3ff9d85
DRR - Add new vector types and group
Jan 3, 2020
963de3f
DRR - Enable new types in the DataSetList
Jan 3, 2020
c3cbfed
DRR - Ensure MemAlloc routine is declared
Jan 3, 2020
7f81148
DRR - Start converting to use new types
Jan 3, 2020
af97efa
DRR - More updates for new vector types
Jan 3, 2020
9313c4c
DRR - prototype test for loop over datasetblocks
Jan 3, 2020
c80932b
DRR - More changes for new set types
drroe Jan 3, 2020
4406947
DRR - Finish fixing up vector action
drroe Jan 4, 2020
ca89988
DRR - More VECTOR_1D changes
drroe Jan 4, 2020
6ec12e4
DRR - More updates for new vector types
drroe Jan 5, 2020
ebf0040
DRR - Finish up vector changes. Still needs testing.
drroe Jan 5, 2020
f5f5715
DRR - Origin is no longer stored when not needed
drroe Jan 6, 2020
62069c6
DRR - Vector origin no longer included when not needed
drroe Jan 6, 2020
d8b04a2
DRR - Handle append of vector data sets inside DataIO_Std to handle c…
drroe Jan 6, 2020
14b1cd0
DRR - Add reverse append test
drroe Jan 6, 2020
3516810
DRR - Ensure old memory is freed
drroe Jan 6, 2020
6ab9273
DRR - Add MemAlloc and CopyBlock for vector sets
drroe Jan 6, 2020
7c9f10b
DRR - Add CopyBlock and MemAlloc routines to float and integer data sets
drroe Jan 6, 2020
3bd2b7e
DRR - Add initial test for data set blocks loop
drroe Jan 6, 2020
7f786ca
DRR - Improve error message
drroe Jan 6, 2020
06d089a
DRR - Minor version bump; vector output for vectors with no origin da…
drroe Jan 6, 2020
c7d7d9c
DRR - Add a cumulative mode for datasetblocks
drroe Jan 6, 2020
c99f03c
DRR - Hide some debug info. Use CheckForSet to avoid spurious warnings.
drroe Jan 6, 2020
c174ff0
DRR - Add 'firstblock' keyword to cumulative datasetblocks to set siz…
drroe Jan 7, 2020
f28333a
DRR - Fix calculation of number of iterations.
drroe Jan 7, 2020
7cba78d
DRR - Allow 'show' to only show specified string vars
drroe Jan 7, 2020
e48559d
DRR - If variables are replaced in a command, re-parse the Argument l…
drroe Jan 7, 2020
fe64b71
DRR - Add test for cumulative blocks
drroe Jan 7, 2020
eb17cc3
DRR - Hide some debug info
drroe Jan 7, 2020
b8a9901
DRR - Improve output message
drroe Jan 7, 2020
bf7140a
DRR - Allow multiple variables to be passed to show
drroe Jan 7, 2020
60c8ea4
DRR - Fix loop descriptions
drroe Jan 7, 2020
52d890d
DRR - Dont write unneeded temp files during test
drroe Jan 7, 2020
16000e4
DRR - Fix manual entries
drroe Jan 7, 2020
2e80221
DRR - Start adding advanced help for for loops
drroe Jan 7, 2020
b9d3f00
DRR - Fix up for loop help
drroe Jan 7, 2020
8f278af
DRR - Fix up for loop help in manual.
drroe Jan 7, 2020
5894ed8
DRR - Remove extra whitespace
drroe Jan 7, 2020
c89fcd0
DRR - Give created datasetblocks sets an aspect to reduce the chances…
drroe Jan 8, 2020
108351a
DRR - Updated set legends.
drroe Jan 8, 2020
ee79b0c
DRR - Data set index +1 to be consistent with set legend
drroe Jan 8, 2020
01c1dc7
DRR - Fix up for loop manual entry
drroe Jan 8, 2020
b81e103
DRR - First check if string variable with name exists. This allows st…
drroe Jan 8, 2020
4631361
DRR - Implement data set copying for sets that support CopyBlock - ot…
Jan 9, 2020
6ce88a3
DRR - Add data set copy test
Jan 9, 2020
8b82b32
Merge branch 'master' into forloops
Jan 9, 2020
bdf975a
DRR - Minor version bump, vector output is different.
Jan 9, 2020
c2017b3
DRR - Improve math help and manual entry
Jan 10, 2020
93608e7
DRR - Use forward declares. When processing expression, first remove …
Jan 10, 2020
d83877b
DRR - expression has already had all whitespace removed
Jan 10, 2020
ce43a3c
DRR - Add array that can be used to ID functions.
Jan 10, 2020
45eaec8
DRR - Add function to identify functions in expression
Jan 10, 2020
d222a55
DRR - Use new function to look for function names. Should address #744
Jan 10, 2020
a869e51
DRR - Add test with function names
Jan 10, 2020
a0385af
DRR - More forward declares.
Jan 10, 2020
af009b3
DRR - More forward declares
Jan 10, 2020
e835a3d
DRR - Add missing header guard
Jan 10, 2020
d35eb38
DRR - Protect datasetblocks in parallel
Jan 10, 2020
1aa8b40
DRR - Allow wildcard expansion in 'for in' loop to fail with a warning.
drroe Jan 15, 2020
ee4d9f4
DRR - Add for loop over data sets.
drroe Jan 15, 2020
4897097
DRR - Enable oversets loop
drroe Jan 15, 2020
92d4625
DRR - Test loop filename wildcards and oversets loop
drroe Jan 15, 2020
0d2c994
DRR - Add for oversets manual entry
drroe Jan 15, 2020
14fa106
Merge branch 'master' into forloops
drroe Jan 15, 2020
38d0485
DRR - Add missing argument to printf.
drroe Jan 15, 2020
96f70ac
DRR - Add missing include.
drroe Jan 15, 2020
2d0f8f5
DRR - Make it so that list for loops can access script variables.
Jan 16, 2020
58b1f6d
DRR - Allow oversets loop to access script variables.
Jan 16, 2020
6d27280
DRR - Enable label print for grace xydy. Update help.
Jan 17, 2020
aa2e32d
DRR - Update manual
Jan 17, 2020
9fb0b26
Merge branch 'master' into forloops
drroe Jan 28, 2020
79a8255
DRR - I give up for now. Reverting DataSet_Vector changes so that pyt…
Jan 31, 2020
923aef1
DRR - Revert to DataSet_Vector
Jan 31, 2020
a844db6
DRR - Add MemAlloc and CopyBlock
Jan 31, 2020
170127c
DRR - Reorganize routine order to separate vector and vector with ori…
Jan 31, 2020
5e967cd
DRR - Revert to DataSet_Vector
Jan 31, 2020
6fb5b2a
DRR - Cpptraj: Revert to DataSet_Vector
Jan 31, 2020
0447e33
DRR - Revert to DataSet_Vector
Jan 31, 2020
c26b929
DRR - Revert to DataSet_Vector
Jan 31, 2020
ee0e497
DRR - Revert to DataSet_Vector
Jan 31, 2020
dc58d7a
DRR - Revert to DataSet_Vector
Jan 31, 2020
ee2ee0f
DRR - Revert to DataSet_Vector.....
Jan 31, 2020
4e0a9a7
DRR - Add missing include due to new forward declare
Jan 31, 2020
5e4ef7e
DRR - Add missing include due to forward declare
Jan 31, 2020
f696bbf
DRR - Revert to DataSet_Vector
Jan 31, 2020
b4f4010
DRR - Revert to DataSet_Vector
Jan 31, 2020
e8f6c62
DRR - Make sure vector set is in VECTOR_1D group
Jan 31, 2020
82b08cf
DRR - Revert to DataSet_Vector
Jan 31, 2020
8361799
DRR - Revert to DataSet_Vector
Jan 31, 2020
415c07c
DRR - Update dependencies
Jan 31, 2020
f90d762
DRR - Add missing ref operator
Jan 31, 2020
d4fe8d1
DRR - Revert tests, origins still printed for non-origin vector sets
Jan 31, 2020
6c7b929
DRR - Decrement minor version; revision bump insteead, vector output …
Jan 31, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions devtools/Template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ elif [ "$TYPE" = 'DataSet' ] ; then
void Add(size_t, const void*) { return; }
void WriteBuffer(CpptrajFile&, SizeArray const&) const { return; }
int Append(DataSet*) { return 1; }
size_t MemUsageInBytes() const { return 0; }
# ifdef MPI
int Sync(size_t, std::vector<int> const&, Parallel::Comm const&) { return 1; }
# endif
Expand Down
182 changes: 155 additions & 27 deletions doc/cpptraj.lyx
Original file line number Diff line number Diff line change
Expand Up @@ -1924,11 +1924,25 @@ script
variables and 'for' loops.
Script variables are referred to by a dollar sign ('$') prefix and are
replaced when they are processed.
Note that to use script variables in CPPTRAJ input that is also inside
e.g.
a BASH script, they can be escaped with the '
These are stored in the master data set list like other data and are assigned
the type
\begin_inset Quotes eld
\end_inset

string variable
\begin_inset Quotes erd
\end_inset

.

\series bold
Note that to use script variables in CPPTRAJ input that is inside another
script (e.g.
a BASH script), they must be escaped with the '
\backslash
' character, e.g.
' character,
\series default
e.g.
\end_layout

\begin_layout LyX-Code
Expand All @@ -1944,13 +1958,13 @@ cpptraj <<EOF
\end_layout

\begin_layout LyX-Code
set topname=$TOP
set topname=$TOP # TOP is a BASH script variable
\end_layout

\begin_layout LyX-Code
parm
\backslash
$topname
$topname # topname is a CPPTRAJ script variable
\end_layout

\begin_layout LyX-Code
Expand Down Expand Up @@ -2069,14 +2083,25 @@ for { {atoms|residues|molecules|molfirstres|mollastres}
\end_layout

\begin_layout LyX-Code
<var> inmask <mask> [parm <name> | parmindex <#> | <#>] ...
|
<var> inmask <mask> [parm <name> | parmindex <#> | <#>] |
\end_layout

\begin_layout LyX-Code
<var> in <list> |
\end_layout

\begin_layout LyX-Code
<var> oversets <list> |
\end_layout

\begin_layout LyX-Code
<var> datasetblocks <set> blocksize <#> [blockoffset <#>]
\end_layout

\begin_layout LyX-Code
[cumulative [firstblock <#>]] |
\end_layout

\begin_layout LyX-Code
<var>=<start>;[<var><end OP><end>;]<var><increment OP>[<value>] ...
}
Expand All @@ -2087,7 +2112,7 @@ for { {atoms|residues|molecules|molfirstres|mollastres}
\end_layout

\begin_layout LyX-Code
Available 'end OP' : '<' '>'
Available 'end OP' : '<' '>' '<=' '>='
\end_layout

\begin_layout LyX-Code
Expand Down Expand Up @@ -2160,6 +2185,65 @@ in
File name wildcards can be used.
\end_layout

\begin_layout Description
<var>
\begin_inset space ~
\end_inset

oversets
\begin_inset space ~
\end_inset

<list> Loop over sets selected by comma-separated list of names.
Data set wildcards can be used.
\end_layout

\begin_layout Description
<var>
\begin_inset space ~
\end_inset

datasetblocks
\begin_inset space ~
\end_inset

<set> Loop over blocks in specified DataSet.
\end_layout

\begin_deeper
\begin_layout Description
blocksize
\begin_inset space ~
\end_inset

<#> Size of blocks to use.
\end_layout

\begin_layout Description
[blockoffset
\begin_inset space ~
\end_inset

<#>] Offset between blocks.
\end_layout

\begin_layout Description
[cumulative] Instead of blocks of fixed size, use blocks of increasing size
incremented by blocksize.
\end_layout

\begin_deeper
\begin_layout Description
[firstblock
\begin_inset space ~
\end_inset

<#>] When cumulative, the size of the first block (default is first data
set element).
\end_layout

\end_deeper
\end_deeper
\begin_layout Description
<var>=<start>;[<var><end
\begin_inset space ~
Expand Down Expand Up @@ -2188,11 +2272,32 @@ OP>[<value>] Loop over integer script variable
.
\end_layout

\begin_layout Standard
Data Sets Created (datasetblocks loops):
\end_layout

\begin_layout Description
<var>[block]:<start
\begin_inset space \space{}
\end_inset

idx> (Data set blocks only) Data set block of blocksize starting at <start
idx>.
\end_layout

\begin_layout Description
<var>[cumul]:<end
\begin_inset space ~
\end_inset

idx> (Cumulative data set blocks only) Data set block starting at firstblock
and ending at <end idx>.
\end_layout

\end_deeper
\begin_layout Standard
Create a for loop using one or more mask expressions or integers.
Loops can be nested, but currently inner loops cannot refer to output loop
variables.
Create a for loop using one or more mask expressions, integers, etc.
Loops can be nested inside each other.
Integer loops may be used without an end condition, but in that case at
least one descriptor in the loop should have an end condition or refer
to a mask.
Expand All @@ -2201,16 +2306,13 @@ Create a for loop using one or more mask expressions or integers.
done
\series default
keyword.
Note that unlike C-style for loops the variable is not incremented on the
final execution, so the final value of
\series bold
<var>
\series default
will be
\series bold
<end>
\series default
(or the last selection in the mask).

\end_layout

\begin_layout Standard
Note that non-integer variables (e.g.
'inmask' loops) are NOT incremented after the final loop iteration, i.e.
these loop variables always retain their final value.
\end_layout

\begin_layout Standard
Expand Down Expand Up @@ -2383,8 +2485,24 @@ trajin
\end_deeper
\begin_layout Standard
Set (<OP> = '=') or append (<OP> = '+=') a script variable.
Script variables are referred to in CPPTRAJ input by using a dollar sign
'$' prefix.
Script variables are character strings, and are referred to in CPPTRAJ
input by using a dollar sign '$' prefix.
\end_layout

\begin_layout Standard
For example, the following input will load files my.parm7 and my.rst7:
\end_layout

\begin_layout LyX-Code
set PREFIX = my
\end_layout

\begin_layout LyX-Code
trajin $PREFIX.parm7
\end_layout

\begin_layout LyX-Code
trajin $PREFIX.rst7
\end_layout

\begin_layout Standard
Expand Down Expand Up @@ -2413,11 +2531,13 @@ show
\end_layout

\begin_layout LyX-Code
show
show [<var1> ...]
\end_layout

\begin_layout Standard
Show all current script variables and their values.
If no variable names specified, show all current script variables and their
values.
Otherwise, show the values of the specified script variables.
\end_layout

\begin_layout Section
Expand Down Expand Up @@ -4918,7 +5038,7 @@ Write
\end_layout

\begin_layout LyX-Code
[invert] [xydy]
[invert] [xydy] [<label set>]
\begin_inset Separator latexpar
\end_inset

Expand All @@ -4937,6 +5057,14 @@ invert Normally, data is written out with X-values pertaining to frames
xydy Combine consecutive pairs of sets into XYDY sets.
\end_layout

\begin_layout Description
<label
\begin_inset space ~
\end_inset

set> If a string dataset is specified, assume it has data point labels.
\end_layout

\end_deeper
\begin_layout Standard
If a single string data set is specified when writing Grace format, it is
Expand Down
1 change: 1 addition & 0 deletions src/Action_InfraredSpectrum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "ProgressBar.h"
#include "Constants.h"
#include "DataSet_double.h"
#include "DataSet_Vector.h"
#include "Corr.h"
#ifdef _OPENMP
# include <omp.h>
Expand Down
5 changes: 2 additions & 3 deletions src/Action_InfraredSpectrum.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef INC_ACTION_INFRAREDSPECTRUM_H
#define INC_ACTION_INFRAREDSPECTRUM_H
#include "Action.h"
#include "DataSet_Vector.h"
class DataSet_Vector;
/// <Enter description of Action_InfraredSpectrum here>
class Action_InfraredSpectrum : public Action {
public:
Expand All @@ -14,8 +14,7 @@ class Action_InfraredSpectrum : public Action {
Action::RetType DoAction(int, ActionFrame&);
void Print();

typedef DataSet_Vector VelArray;
VelArray* Vel_; ///< Hold velocity*charge for selected atoms at each frame.
DataSet_Vector* Vel_; ///< Hold velocity*charge for selected atoms at each frame.
DataSet* VAC_;
AtomMask mask_; ///< Atoms to calculate VAC fn for.
Topology* currentTop_;
Expand Down
2 changes: 1 addition & 1 deletion src/Action_Matrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Action::RetType Action_Matrix::Init(ArgList& actionArgs, ActionInit& init, int d
return Action::ERR;
}
for ( DataSetList::const_iterator DS = init.DSL().begin(); DS != init.DSL().end(); ++DS) {
if ( (*DS)->Type() == DataSet::VECTOR && (*DS)->Meta().ScalarType() == MetaData::IREDVEC )
if ( (*DS)->Group() == DataSet::VECTOR_1D && (*DS)->Meta().ScalarType() == MetaData::IREDVEC )
IredVectors_.push_back( (DataSet_Vector*)*DS );
}
if (IredVectors_.empty()) {
Expand Down
3 changes: 2 additions & 1 deletion src/Action_MultiVector.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "Action_MultiVector.h"
#include "CpptrajStdio.h"
#include "DataSet_Vector.h"

Action_MultiVector::Action_MultiVector() :
debug_(0),
Expand Down Expand Up @@ -120,7 +121,7 @@ Action::RetType Action_MultiVector::DoAction(int frameNum, ActionFrame& frm) {
Vec3 CXYZ( frm.Frm().CRD( CrdIdx1_[nv] ) );
Vec3 VXYZ( frm.Frm().CRD( CrdIdx2_[nv] ) );
VXYZ -= CXYZ;
data_[nv]->AddVxyz(VXYZ, CXYZ);
data_[nv]->AddVxyzo(VXYZ, CXYZ);
}

return Action::OK;
Expand Down
2 changes: 1 addition & 1 deletion src/Action_MultiVector.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#ifndef INC_MULTIVECTOR_H
#define INC_MULTIVECTOR_H
#include "Action.h"
#include "DataSet_Vector.h"
#include "Range.h"
class DataSet_Vector;
class Action_MultiVector : public Action {
public:
Action_MultiVector();
Expand Down
3 changes: 2 additions & 1 deletion src/Action_Principal.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "Action_Principal.h"
#include "CpptrajStdio.h"
#include "Matrix_3x3.h"
#include "DataSet_Mat3x3.h"
#include "DataSet_Vector.h"

// CONSTRUCTOR
Action_Principal::Action_Principal() :
Expand Down
4 changes: 2 additions & 2 deletions src/Action_Principal.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#ifndef INC_ACTION_PRINCIPAL_H
#define INC_ACTION_PRINCIPAL_H
#include "Action.h"
#include "DataSet_Mat3x3.h"
#include "DataSet_Vector.h"
class DataSet_Mat3x3;
class DataSet_Vector;
class Action_Principal : public Action {
public:
Action_Principal();
Expand Down
7 changes: 6 additions & 1 deletion src/Action_Rmsd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "CpptrajStdio.h"
#include "StringRoutines.h" // integerToString
#include "DataSet_Mesh.h"
#include "DataSet_Vector.h"

// CONSTRUCTOR
Action_Rmsd::Action_Rmsd() :
Expand Down Expand Up @@ -123,6 +124,10 @@ Action::RetType Action_Rmsd::Init(ArgList& actionArgs, ActionInit& init, int deb
return Action::ERR;
}
tvecs_ = (DataSet_Vector*)init.DSL().AddSet(DataSet::VECTOR, md);
//if (tvecType_ == COMBINED)
// tvecs_ = (DataSet_Vector*)init.DSL().AddSet(DataSet::VEC_XYZ, md);
//else // SEPARATE
// tvecs_ = (DataSet_Vector*)init.DSL().AddSet(DataSet::VEC_OXYZ, md);
if (tvecs_ == 0) return Action::ERR;
if (vecsOut != 0) vecsOut->AddDataSet( tvecs_ );
}
Expand Down Expand Up @@ -373,7 +378,7 @@ Action::RetType Action_Rmsd::DoAction(int frameNum, ActionFrame& frm) {
if (tvecType_ == COMBINED)
tvecs_->AddVxyz( tgtTrans_ + REF_.RefTrans() );
else if (tvecType_ == SEPARATE)
tvecs_->AddVxyz( tgtTrans_, REF_.RefTrans() );
tvecs_->AddVxyzo( tgtTrans_, REF_.RefTrans() );
switch (mode_) {
case ROT_AND_TRANS:
frm.ModifyFrm().Trans_Rot_Trans(tgtTrans_, rot_, REF_.RefTrans());
Expand Down
Loading