}
}
- printf("Merged two groups with OR: %u %u -> %u\n", nr1, nr2, *nr);
+ printf("Merged two groups with OR: %d %d -> %d\n", nr1, nr2, *nr);
}
return *nr;
}
}
- printf("Merged two groups with AND: %u %u -> %u\n", nr1, nr2, *nr);
+ printf("Merged two groups with AND: %d %d -> %d\n", nr1, nr2, *nr);
return *nr;
}
index[*nr] = i;
(*nr)++;
}
- printf("Found %u atom%s in range %u-%d\n", *nr, (*nr == 1) ? "" : "s", n1, up);
+ printf("Found %d atom%s in range %d-%d\n", *nr, (*nr == 1) ? "" : "s", n1, up);
if (n1 == up)
{
- sprintf(buf, "a_%u", n1);
+ sprintf(buf, "a_%d", n1);
}
else
{
- sprintf(buf, "a_%u-%d", n1, up);
+ sprintf(buf, "a_%d-%d", n1, up);
}
strcpy(gname, buf);
}
}
}
}
- printf("Found %u atom%s with res.nr. in range %u-%d\n",
+ printf("Found %d atom%s with res.nr. in range %d-%d\n",
*nr, (*nr == 1) ? "" : "s", n1, up);
if (n1 == up)
{
- sprintf(buf, "r_%u", n1);
+ sprintf(buf, "r_%d", n1);
}
else
{
- sprintf(buf, "r_%u-%d", n1, up);
+ sprintf(buf, "r_%d-%d", n1, up);
}
strcpy(gname, buf);
}
}
}
}
- printf("Found %u atom%s with resind.+1 in range %u-%d\n",
+ printf("Found %d atom%s with resind.+1 in range %d-%d\n",
*nr, (*nr == 1) ? "" : "s", n1, up);
if (n1 == up)
{
- sprintf(buf, "r_%u", n1);
+ sprintf(buf, "r_%d", n1);
}
else
{
- sprintf(buf, "r_%u-%d", n1, up);
+ sprintf(buf, "r_%d-%d", n1, up);
}
strcpy(gname, buf);
}
}
}
}
- printf("Found %u atom%s in %d residues from group %s\n",
+ printf("Found %d atom%s in %d residues from group %s\n",
*nr, (*nr == 1) ? "" : "s", j1-j0, gname);
return *nr;
}
(*nr)++;
}
}
- printf("Found %u atom%s with chain identifier%s",
+ printf("Found %d atom%s with chain identifier%s",
*nr, (*nr == 1) ? "" : "s", (n_names == 1) ? "" : "s");
for (j = 0; (j < n_names); j++)
{
(*nr)++;
}
}
- printf("Found %u atoms with %s%s",
+ printf("Found %d atoms with %s%s",
*nr, bType ? "type" : "name", (n_names == 1) ? "" : "s");
for (j = 0; (j < n_names); j++)
{
(*nr)++;
}
}
- printf("Found %u atoms with residue name%s", *nr, (n_names == 1) ? "" : "s");
+ printf("Found %d atoms with residue name%s", *nr, (n_names == 1) ? "" : "s");
for (j = 0; (j < n_names); j++)
{
printf(" %s", names[j]);
srenew(*gn, block->nr);
if (bAtom)
{
- sprintf(buf, "%s_%s_%u", (*gn)[sel_nr], *atoms->atomname[a], a+1);
+ sprintf(buf, "%s_%s_%d", (*gn)[sel_nr], *atoms->atomname[a], a+1);
}
else
{
}
for (j = 0; j < nchain; j++)
{
- printf("%d:%6u atoms (%u to %u)\n",
+ printf("%d:%6d atoms (%d to %d)\n",
j+1, end[j]-start[j]+1, start[j]+1, end[j]+1);
}
gname[i] = gname[i-1];
}
gname[0] = '!';
- printf("Complemented group: %u atoms\n", *nr);
+ printf("Complemented group: %d atoms\n", *nr);
}
return bRet;
}
for (i = i0; i < i1; i++)
{
- printf("%3d %-20s: %5u atoms\n", i, (*gn)[i],
+ printf("%3d %-20s: %5d atoms\n", i, (*gn)[i],
block->index[i+1]-block->index[i]);
}
newgroup = NOTSET;
static void do_pullgrp(t_fileio *fio, t_pullgrp *pgrp, gmx_bool bRead,
int file_version)
{
- gmx_bool bDum = TRUE;
int i;
gmx_fio_do_int(fio, pgrp->nat);
{
snew(pgrp->ind, pgrp->nat);
}
- bDum = gmx_fio_ndo_int(fio, pgrp->ind, pgrp->nat);
+ gmx_fio_ndo_int(fio, pgrp->ind, pgrp->nat);
gmx_fio_do_int(fio, pgrp->nweight);
if (bRead)
{
snew(pgrp->weight, pgrp->nweight);
}
- bDum = gmx_fio_ndo_real(fio, pgrp->weight, pgrp->nweight);
+ gmx_fio_ndo_real(fio, pgrp->weight, pgrp->nweight);
gmx_fio_do_int(fio, pgrp->pbcatom);
gmx_fio_do_rvec(fio, pgrp->vec);
gmx_fio_do_rvec(fio, pgrp->init);
/* i is used in the ndo_double macro*/
int i;
real fv;
- gmx_bool bDum = TRUE;
real rdum;
int n_lambda = fepvals->n_lambda;
{
snew(expand->init_lambda_weights, n_lambda);
}
- bDum = gmx_fio_ndo_real(fio, expand->init_lambda_weights, n_lambda);
+ gmx_fio_ndo_real(fio, expand->init_lambda_weights, n_lambda);
gmx_fio_do_gmx_bool(fio, expand->bInit_weights);
}
static void do_simtempvals(t_fileio *fio, t_simtemp *simtemp, int n_lambda, gmx_bool bRead,
int file_version)
{
- gmx_bool bDum = TRUE;
-
if (file_version >= 79)
{
gmx_fio_do_int(fio, simtemp->eSimTempScale);
{
snew(simtemp->temperatures, n_lambda);
}
- bDum = gmx_fio_ndo_real(fio, simtemp->temperatures, n_lambda);
+ gmx_fio_ndo_real(fio, simtemp->temperatures, n_lambda);
}
}
}
/* i is defined in the ndo_double macro; use g to iterate. */
int i, g;
real fv;
- gmx_bool bDum = TRUE;
real rdum;
/* free energy values */
{
snew(fepvals->all_lambda[g], fepvals->n_lambda);
}
- bDum = gmx_fio_ndo_double(fio, fepvals->all_lambda[g], fepvals->n_lambda);
- bDum = gmx_fio_ndo_int(fio, fepvals->separate_dvdl, efptNR);
+ gmx_fio_ndo_double(fio, fepvals->all_lambda[g], fepvals->n_lambda);
+ gmx_fio_ndo_int(fio, fepvals->separate_dvdl, efptNR);
}
else if (fepvals->init_lambda >= 0)
{
}
}
}
- bDum = gmx_fio_ndo_double(fio, fepvals->all_lambda[efptFEP],
- fepvals->n_lambda);
+ gmx_fio_ndo_double(fio, fepvals->all_lambda[efptFEP],
+ fepvals->n_lambda);
if (fepvals->init_lambda >= 0)
{
int g, h;
static void do_rotgrp(t_fileio *fio, t_rotgrp *rotg, gmx_bool bRead, int file_version)
{
- gmx_bool bDum = TRUE;
int i;
gmx_fio_do_int(fio, rotg->eType);
int file_version, real *fudgeQQ)
{
int i, j, k, *tmp, idum = 0;
- gmx_bool bDum = TRUE;
real rdum, bd_temp;
rvec vdum;
gmx_bool bSimAnn;
}
if (ir->adress->n_tf_grps > 0)
{
- bDum = gmx_fio_ndo_int(fio, ir->adress->tf_table_index, ir->adress->n_tf_grps);
+ gmx_fio_ndo_int(fio, ir->adress->tf_table_index, ir->adress->n_tf_grps);
}
if (bRead)
{
}
if (ir->adress->n_energy_grps > 0)
{
- bDum = gmx_fio_ndo_int(fio, ir->adress->group_explicit, ir->adress->n_energy_grps);
+ gmx_fio_ndo_int(fio, ir->adress->group_explicit, ir->adress->n_energy_grps);
}
}
}
if (bRead && file_version < 13)
{
snew(tmp, ir->opts.ngtc);
- bDum = gmx_fio_ndo_int(fio, tmp, ir->opts.ngtc);
+ gmx_fio_ndo_int(fio, tmp, ir->opts.ngtc);
for (i = 0; i < ir->opts.ngtc; i++)
{
ir->opts.nrdf[i] = tmp[i];
}
else
{
- bDum = gmx_fio_ndo_real(fio, ir->opts.nrdf, ir->opts.ngtc);
+ gmx_fio_ndo_real(fio, ir->opts.nrdf, ir->opts.ngtc);
}
- bDum = gmx_fio_ndo_real(fio, ir->opts.ref_t, ir->opts.ngtc);
- bDum = gmx_fio_ndo_real(fio, ir->opts.tau_t, ir->opts.ngtc);
+ gmx_fio_ndo_real(fio, ir->opts.ref_t, ir->opts.ngtc);
+ gmx_fio_ndo_real(fio, ir->opts.tau_t, ir->opts.ngtc);
if (file_version < 33 && ir->eI == eiBD)
{
for (i = 0; i < ir->opts.ngtc; i++)
}
if (ir->opts.ngfrz > 0)
{
- bDum = gmx_fio_ndo_ivec(fio, ir->opts.nFreeze, ir->opts.ngfrz);
+ gmx_fio_ndo_ivec(fio, ir->opts.nFreeze, ir->opts.ngfrz);
}
if (ir->opts.ngacc > 0)
{
}
if (file_version >= 12)
{
- bDum = gmx_fio_ndo_int(fio, ir->opts.egp_flags,
- ir->opts.ngener*ir->opts.ngener);
+ gmx_fio_ndo_int(fio, ir->opts.egp_flags,
+ ir->opts.ngener*ir->opts.ngener);
}
if (bRead && file_version < 26)
{
/* file version 26 or later */
/* First read the lists with annealing and npoints for each group */
- bDum = gmx_fio_ndo_int(fio, ir->opts.annealing, ir->opts.ngtc);
- bDum = gmx_fio_ndo_int(fio, ir->opts.anneal_npoints, ir->opts.ngtc);
+ gmx_fio_ndo_int(fio, ir->opts.annealing, ir->opts.ngtc);
+ gmx_fio_ndo_int(fio, ir->opts.anneal_npoints, ir->opts.ngtc);
for (j = 0; j < (ir->opts.ngtc); j++)
{
k = ir->opts.anneal_npoints[j];
snew(ir->opts.anneal_time[j], k);
snew(ir->opts.anneal_temp[j], k);
}
- bDum = gmx_fio_ndo_real(fio, ir->opts.anneal_time[j], k);
- bDum = gmx_fio_ndo_real(fio, ir->opts.anneal_temp[j], k);
+ gmx_fio_ndo_real(fio, ir->opts.anneal_time[j], k);
+ gmx_fio_ndo_real(fio, ir->opts.anneal_temp[j], k);
}
}
/* Walls */
snew(ir->et[j].a, ir->et[j].n);
snew(ir->et[j].phi, ir->et[j].n);
}
- bDum = gmx_fio_ndo_real(fio, ir->ex[j].a, ir->ex[j].n);
- bDum = gmx_fio_ndo_real(fio, ir->ex[j].phi, ir->ex[j].n);
- bDum = gmx_fio_ndo_real(fio, ir->et[j].a, ir->et[j].n);
- bDum = gmx_fio_ndo_real(fio, ir->et[j].phi, ir->et[j].n);
+ gmx_fio_ndo_real(fio, ir->ex[j].a, ir->ex[j].n);
+ gmx_fio_ndo_real(fio, ir->ex[j].phi, ir->ex[j].n);
+ gmx_fio_ndo_real(fio, ir->et[j].a, ir->et[j].n);
+ gmx_fio_ndo_real(fio, ir->et[j].phi, ir->et[j].n);
}
/* QMMM stuff */
}
if (ir->opts.ngQM > 0)
{
- bDum = gmx_fio_ndo_int(fio, ir->opts.QMmethod, ir->opts.ngQM);
- bDum = gmx_fio_ndo_int(fio, ir->opts.QMbasis, ir->opts.ngQM);
- bDum = gmx_fio_ndo_int(fio, ir->opts.QMcharge, ir->opts.ngQM);
- bDum = gmx_fio_ndo_int(fio, ir->opts.QMmult, ir->opts.ngQM);
- bDum = gmx_fio_ndo_gmx_bool(fio, ir->opts.bSH, ir->opts.ngQM);
- bDum = gmx_fio_ndo_int(fio, ir->opts.CASorbitals, ir->opts.ngQM);
- bDum = gmx_fio_ndo_int(fio, ir->opts.CASelectrons, ir->opts.ngQM);
- bDum = gmx_fio_ndo_real(fio, ir->opts.SAon, ir->opts.ngQM);
- bDum = gmx_fio_ndo_real(fio, ir->opts.SAoff, ir->opts.ngQM);
- bDum = gmx_fio_ndo_int(fio, ir->opts.SAsteps, ir->opts.ngQM);
- bDum = gmx_fio_ndo_gmx_bool(fio, ir->opts.bOPT, ir->opts.ngQM);
- bDum = gmx_fio_ndo_gmx_bool(fio, ir->opts.bTS, ir->opts.ngQM);
+ gmx_fio_ndo_int(fio, ir->opts.QMmethod, ir->opts.ngQM);
+ gmx_fio_ndo_int(fio, ir->opts.QMbasis, ir->opts.ngQM);
+ gmx_fio_ndo_int(fio, ir->opts.QMcharge, ir->opts.ngQM);
+ gmx_fio_ndo_int(fio, ir->opts.QMmult, ir->opts.ngQM);
+ gmx_fio_ndo_gmx_bool(fio, ir->opts.bSH, ir->opts.ngQM);
+ gmx_fio_ndo_int(fio, ir->opts.CASorbitals, ir->opts.ngQM);
+ gmx_fio_ndo_int(fio, ir->opts.CASelectrons, ir->opts.ngQM);
+ gmx_fio_ndo_real(fio, ir->opts.SAon, ir->opts.ngQM);
+ gmx_fio_ndo_real(fio, ir->opts.SAoff, ir->opts.ngQM);
+ gmx_fio_ndo_int(fio, ir->opts.SAsteps, ir->opts.ngQM);
+ gmx_fio_ndo_gmx_bool(fio, ir->opts.bOPT, ir->opts.ngQM);
+ gmx_fio_ndo_gmx_bool(fio, ir->opts.bTS, ir->opts.ngQM);
}
/* end of QMMM stuff */
}
gmx_bool bRead, int file_version)
{
int idum;
- gmx_bool bDum;
real rdum;
if (!bRead)
break;
case F_QUARTIC_ANGLES:
gmx_fio_do_real(fio, iparams->qangle.theta);
- bDum = gmx_fio_ndo_real(fio, iparams->qangle.c, 5);
+ gmx_fio_ndo_real(fio, iparams->qangle.c, 5);
break;
case F_BHAM:
gmx_fio_do_real(fio, iparams->bham.a);
gmx_fio_do_real(fio, iparams->fbposres.k);
break;
case F_RBDIHS:
- bDum = gmx_fio_ndo_real(fio, iparams->rbdihs.rbcA, NR_RBDIHS);
+ gmx_fio_ndo_real(fio, iparams->rbdihs.rbcA, NR_RBDIHS);
if (file_version >= 25)
{
- bDum = gmx_fio_ndo_real(fio, iparams->rbdihs.rbcB, NR_RBDIHS);
+ gmx_fio_ndo_real(fio, iparams->rbdihs.rbcB, NR_RBDIHS);
}
break;
case F_FOURDIHS:
/* Fourier dihedrals are internally represented
* as Ryckaert-Bellemans since those are faster to compute.
*/
- bDum = gmx_fio_ndo_real(fio, iparams->rbdihs.rbcA, NR_RBDIHS);
- bDum = gmx_fio_ndo_real(fio, iparams->rbdihs.rbcB, NR_RBDIHS);
+ gmx_fio_ndo_real(fio, iparams->rbdihs.rbcA, NR_RBDIHS);
+ gmx_fio_ndo_real(fio, iparams->rbdihs.rbcB, NR_RBDIHS);
break;
case F_CONSTR:
case F_CONSTRNC:
int ftype)
{
int i, k, idum;
- gmx_bool bDum = TRUE;
if (!bRead)
{
{
snew(ilist->iatoms, ilist->nr);
}
- bDum = gmx_fio_ndo_int(fio, ilist->iatoms, ilist->nr);
+ gmx_fio_ndo_int(fio, ilist->iatoms, ilist->nr);
if (!bRead)
{
gmx_fio_unset_comment(fio);
gmx_bool bRead, int file_version)
{
int idum, i, j;
- gmx_bool bDum = TRUE;
unsigned int k;
gmx_fio_do_int(fio, ffparams->atnr);
snew(ffparams->iparams, ffparams->ntypes);
}
/* Read/write all the function types */
- bDum = gmx_fio_ndo_int(fio, ffparams->functype, ffparams->ntypes);
+ gmx_fio_ndo_int(fio, ffparams->functype, ffparams->ntypes);
if (bRead && debug)
{
pr_ivec(debug, 0, "functype", ffparams->functype, ffparams->ntypes, TRUE);
int file_version)
{
int i, j, renum[F_NRE];
- gmx_bool bDum = TRUE, bClear;
+ gmx_bool bClear;
unsigned int k;
for (j = 0; (j < F_NRE); j++)
static void do_block(t_fileio *fio, t_block *block, gmx_bool bRead, int file_version)
{
int i, idum, dum_nra, *dum_a;
- gmx_bool bDum = TRUE;
if (file_version < 44)
{
block->nalloc_index = block->nr+1;
snew(block->index, block->nalloc_index);
}
- bDum = gmx_fio_ndo_int(fio, block->index, block->nr+1);
+ gmx_fio_ndo_int(fio, block->index, block->nr+1);
if (file_version < 51 && dum_nra > 0)
{
snew(dum_a, dum_nra);
- bDum = gmx_fio_ndo_int(fio, dum_a, dum_nra);
+ gmx_fio_ndo_int(fio, dum_a, dum_nra);
sfree(dum_a);
}
}
int file_version)
{
int i, idum;
- gmx_bool bDum = TRUE;
if (file_version < 44)
{
block->nalloc_a = block->nra;
snew(block->a, block->nalloc_a);
}
- bDum = gmx_fio_ndo_int(fio, block->index, block->nr+1);
- bDum = gmx_fio_ndo_int(fio, block->a, block->nra);
+ gmx_fio_ndo_int(fio, block->index, block->nr+1);
+ gmx_fio_ndo_int(fio, block->a, block->nra);
}
static void do_atom(t_fileio *fio, t_atom *atom, int ngrp, gmx_bool bRead,
int file_version)
{
int i, j, myngrp;
- gmx_bool bDum = TRUE;
if (file_version < 23)
{
{
snew(grps[j].nm_ind, grps[j].nr);
}
- bDum = gmx_fio_ndo_int(fio, grps[j].nm_ind, grps[j].nr);
+ gmx_fio_ndo_int(fio, grps[j].nm_ind, grps[j].nr);
}
else
{
int file_version)
{
int g, n, i;
- gmx_bool bDum = TRUE;
do_grps(fio, egcNR, groups->grps, bRead, file_version);
gmx_fio_do_int(fio, groups->ngrpname);
{
snew(groups->grpnr[g], groups->ngrpnr[g]);
}
- bDum = gmx_fio_ndo_uchar(fio, groups->grpnr[g], groups->ngrpnr[g]);
+ gmx_fio_ndo_uchar(fio, groups->grpnr[g], groups->ngrpnr[g]);
}
}
}
t_symtab *symtab, int file_version)
{
int i, j;
- gmx_bool bDum = TRUE;
if (file_version > 25)
{
snew(atomtypes->gb_radius, j);
snew(atomtypes->S_hct, j);
}
- bDum = gmx_fio_ndo_real(fio, atomtypes->radius, j);
- bDum = gmx_fio_ndo_real(fio, atomtypes->vol, j);
- bDum = gmx_fio_ndo_real(fio, atomtypes->surftens, j);
+ gmx_fio_ndo_real(fio, atomtypes->radius, j);
+ gmx_fio_ndo_real(fio, atomtypes->vol, j);
+ gmx_fio_ndo_real(fio, atomtypes->surftens, j);
if (file_version >= 40)
{
- bDum = gmx_fio_ndo_int(fio, atomtypes->atomnumber, j);
+ gmx_fio_ndo_int(fio, atomtypes->atomnumber, j);
}
if (file_version >= 60)
{
- bDum = gmx_fio_ndo_real(fio, atomtypes->gb_radius, j);
- bDum = gmx_fio_ndo_real(fio, atomtypes->S_hct, j);
+ gmx_fio_ndo_real(fio, atomtypes->gb_radius, j);
+ gmx_fio_ndo_real(fio, atomtypes->S_hct, j);
}
}
else
t_tpxheader tpx;
t_inputrec dum_ir;
gmx_mtop_t dum_top;
- gmx_bool TopOnlyOK, bDum = TRUE;
+ gmx_bool TopOnlyOK;
int file_version, file_generation;
int i;
rvec *xptr, *vptr;
snew(dumv, state->ngtc);
if (file_version < 69)
{
- bDum = gmx_fio_ndo_real(fio, dumv, state->ngtc);
+ gmx_fio_ndo_real(fio, dumv, state->ngtc);
}
/* These used to be the Berendsen tcoupl_lambda's */
- bDum = gmx_fio_ndo_real(fio, dumv, state->ngtc);
+ gmx_fio_ndo_real(fio, dumv, state->ngtc);
sfree(dumv);
}