Gromacs
5.1.5
|
#include "gmxpre.h"
#include "gromacs/legacyheaders/macros.h"
#include "gromacs/math/vec.h"
#include "gromacs/selection/position.h"
#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/smalloc.h"
#include "gromacs/utility/stringutil.h"
#include "selmethod.h"
Implements the permute
selection modifier.
Classes | |
struct | t_methoddata_permute |
Data structure for the permute selection modifier. More... | |
Functions | |
static void * | init_data_permute (int npar, gmx_ana_selparam_t *param) |
Allocates data for the permute selection modifier. More... | |
static void | init_permute (t_topology *top, int npar, gmx_ana_selparam_t *param, void *data) |
Initializes data for the permute selection modifier. More... | |
static void | init_output_permute (t_topology *top, gmx_ana_selvalue_t *out, void *data) |
Initializes output for the permute selection modifier. More... | |
static void | free_data_permute (void *data) |
Frees the memory allocated for the permute selection modifier. More... | |
static void | evaluate_permute (t_topology *top, t_trxframe *fr, t_pbc *pbc, gmx_ana_pos_t *p, gmx_ana_selvalue_t *out, void *data) |
Evaluates the permute selection modifier. More... | |
Variables | |
static gmx_ana_selparam_t | smparams_permute [] |
Parameters for the permute selection modifier. More... | |
static const char *const | help_permute [] |
Help text for the permute selection modifier. More... | |
gmx_ana_selmethod_t | sm_permute |
Selection method data for the permute modifier. More... | |
|
static |
Evaluates the permute
selection modifier.
[in] | top | Not used. |
[in] | fr | Not used. |
[in] | pbc | Not used. |
[in] | p | Positions to permute (should point to data->p ). |
[out] | out | Output data structure (out->u.p is used). |
[in] | data | Should point to a t_methoddata_permute . |
p
could be permuted, -1 on error.Returns -1 if the size of p
is not divisible by the number of elements in the permutation.
|
static |
Frees the memory allocated for the permute
selection modifier.
data | Data to free (should point to a t_methoddata_permute ). |
Frees the memory allocated for t_methoddata_permute
.
|
static |
Allocates data for the permute
selection modifier.
[in] | npar | Not used (should be 2). |
[in,out] | param | Method parameters (should point to a copy of smparams_permute). |
t_methoddata_permute
).Allocates memory for a t_methoddata_permute
structure.
|
static |
Initializes output for the permute
selection modifier.
[in] | top | Topology data structure. |
[in,out] | out | Pointer to output data structure. |
[in,out] | data | Should point to t_methoddata_permute . |
|
static |
Initializes data for the permute
selection modifier.
[in] | top | Not used. |
[in] | npar | Not used (should be 2). |
[in] | param | Method parameters (should point to smparams_permute). |
[in] | data | Should point to a t_methoddata_permute . |
|
static |
Help text for the permute
selection modifier.
gmx_ana_selmethod_t sm_permute |
Selection method data for the permute
modifier.
|
static |