If the "whole" prefix was used on a position calculation that applied to
a static selection (e.g., "whole_res_com of name CA CB"), the block data
for the output positions was incorrect.
gmx_ana_poscalc_init_pos(gmx_ana_poscalc_t *pc, gmx_ana_pos_t *p)
{
gmx_ana_indexmap_init(&p->m, &pc->gmax, pc->coll->top, pc->itype);
- if (!(pc->flags & POS_DYNAMIC))
+ /* Only do the static optimization when there is no completion */
+ if (!(pc->flags & POS_DYNAMIC) && pc->b.nra == pc->gmax.isize)
{
gmx_ana_indexmap_set_static(&p->m, &pc->b);
}