pos->v = NULL;
pos->f = NULL;
gmx_ana_indexmap_clear(&pos->m);
- pos->g = NULL;
+ pos->g = NULL;
pos->nalloc_x = 0;
}
void
gmx_ana_pos_deinit(gmx_ana_pos_t *pos)
{
- pos->nr = 0;
+ pos->nr = 0;
sfree(pos->x); pos->x = NULL;
sfree(pos->v); pos->v = NULL;
sfree(pos->f); pos->f = NULL;
- pos->nalloc_x = 0;
+ pos->nalloc_x = 0;
gmx_ana_indexmap_deinit(&pos->m);
}
void
gmx_ana_pos_empty_init(gmx_ana_pos_t *pos)
{
- pos->nr = 0;
- pos->m.nr = 0;
+ pos->nr = 0;
+ pos->m.nr = 0;
pos->m.mapb.nr = 0;
- pos->m.b.nr = 0;
- pos->m.b.nra = 0;
+ pos->m.b.nr = 0;
+ pos->m.b.nra = 0;
/* This should not really be necessary, but do it for safety... */
pos->m.mapb.index[0] = 0;
- pos->m.b.index[0] = 0;
+ pos->m.b.index[0] = 0;
/* This function should only be used to construct all the possible
* positions, so the result should always be static. */
- pos->m.bStatic = true;
+ pos->m.bStatic = true;
pos->m.bMapStatic = true;
}
void
gmx_ana_pos_empty(gmx_ana_pos_t *pos)
{
- pos->nr = 0;
- pos->m.nr = 0;
+ pos->nr = 0;
+ pos->m.nr = 0;
pos->m.mapb.nr = 0;
/* This should not really be necessary, but do it for safety... */
pos->m.mapb.index[0] = 0;
* should be false. This makes it possible to update the flags in
* gmx_ana_pos_append(), and just make a simple check in
* gmx_ana_pos_append_finish(). */
- pos->m.bStatic = true;
+ pos->m.bStatic = true;
pos->m.bMapStatic = true;
}
dest->m.mapb.index[j+1] = g->isize;
dest->m.b.index[j+1] = g->isize;
dest->nr++;
- dest->m.nr = dest->nr;
+ dest->m.nr = dest->nr;
dest->m.mapb.nr = dest->nr;
- dest->m.b.nr = dest->nr;
+ dest->m.b.nr = dest->nr;
}
/*!
if (refid < 0)
{
dest->m.refid[j] = -1;
- dest->m.bStatic = false;
+ dest->m.bStatic = false;
/* If we are using masks, there is no need to alter the
* mapid field. */
}
{
if (refid != j)
{
- dest->m.bStatic = false;
+ dest->m.bStatic = false;
dest->m.bMapStatic = false;
}
dest->m.refid[j] = refid;
}
dest->m.mapb.index[j+1] = g->isize;
dest->nr++;
- dest->m.nr = dest->nr;
+ dest->m.nr = dest->nr;
dest->m.mapb.nr = dest->nr;
}
}
{
if (pos->m.nr != pos->m.b.nr)
{
- pos->m.bStatic = false;
+ pos->m.bStatic = false;
pos->m.bMapStatic = false;
}
}