static void
evaluate_molindex(t_topology *top, t_trxframe *fr, t_pbc *pbc,
gmx_ana_index_t *g, gmx_ana_selvalue_t *out, void *data);
-/** Evaluates the \p name selection keyword. */
+/** Evaluates the \p atomname selection keyword. */
static void
evaluate_atomname(t_topology *top, t_trxframe *fr, t_pbc *pbc,
gmx_ana_index_t *g, gmx_ana_selvalue_t *out, void *data);
/** Checks whether atom types are present in the topology. */
static void
check_atomtype(t_topology *top, int npar, gmx_ana_selparam_t *param, void *data);
-/** Evaluates the \p type selection keyword. */
+/** Evaluates the \p atomtype selection keyword. */
static void
evaluate_atomtype(t_topology *top, t_trxframe *fr, t_pbc *pbc,
gmx_ana_index_t *g, gmx_ana_selvalue_t *out, void *data);
NULL,
};
-/** \internal Selection method data for \p name selection keyword. */
+/** \internal Selection method data for \p atomname selection keyword. */
gmx_ana_selmethod_t sm_atomname = {
- "name", STR_VALUE, SMETH_REQTOP,
+ "atomname", STR_VALUE, SMETH_REQTOP,
0, NULL,
NULL,
NULL,
NULL,
};
-/** \internal Selection method data for \p type selection keyword. */
+/** \internal Selection method data for \p atomtype selection keyword. */
gmx_ana_selmethod_t sm_atomtype = {
- "type", STR_VALUE, SMETH_REQTOP,
+ "atomtype", STR_VALUE, SMETH_REQTOP,
0, NULL,
NULL,
NULL,
<Bool Name="Dynamic">false</Bool>
</ParsedSelection>
<ParsedSelection Name="Selection2">
- <String Name="Input">name S1 S2</String>
- <String Name="Name">name S1 S2</String>
- <String Name="Text">name S1 S2</String>
+ <String Name="Input">atomname S1 S2</String>
+ <String Name="Name">atomname S1 S2</String>
+ <String Name="Text">atomname S1 S2</String>
<Bool Name="Dynamic">false</Bool>
</ParsedSelection>
</ParsedSelections>
<String Name="Text">resindex 1 4</String>
<Bool Name="Dynamic">false</Bool>
</ParsedSelection>
+ <ParsedSelection Name="Selection2">
+ <String Name="Input">residue 1 3</String>
+ <String Name="Name">residue 1 3</String>
+ <String Name="Text">residue 1 3</String>
+ <Bool Name="Dynamic">false</Bool>
+ </ParsedSelection>
</ParsedSelections>
<CompiledSelections Name="Compiled">
<Selection Name="Selection1">
<Int>11</Int>
</Sequence>
</Selection>
+ <Selection Name="Selection2">
+ <Sequence Name="Atoms">
+ <Int Name="Length">6</Int>
+ <Int>0</Int>
+ <Int>1</Int>
+ <Int>2</Int>
+ <Int>6</Int>
+ <Int>7</Int>
+ <Int>8</Int>
+ </Sequence>
+ </Selection>
</CompiledSelections>
</ReferenceData>
<Bool Name="Dynamic">false</Bool>
</ParsedSelection>
<ParsedSelection Name="Selection2">
- <String Name="Input">resnr 4 to 3</String>
- <String Name="Name">resnr 4 to 3</String>
- <String Name="Text">resnr 4 to 3</String>
+ <String Name="Input">resid 4 to 3</String>
+ <String Name="Name">resid 4 to 3</String>
+ <String Name="Text">resid 4 to 3</String>
<Bool Name="Dynamic">false</Bool>
</ParsedSelection>
</ParsedSelections>
{
static const char * const selections[] = {
"resnr 1 2 5",
- "resnr 4 to 3",
+ "resid 4 to 3",
NULL
};
runTest("simple.gro", selections);
{
static const char * const selections[] = {
"resindex 1 4",
+ "residue 1 3",
NULL
};
runTest("simple.pdb", selections);
{
static const char * const selections[] = {
"name CB",
- "name S1 S2",
+ "atomname S1 S2",
NULL
};
runTest("simple.gro", selections);