gmxlib: clean up -Wunused-parameter warnings
authorAlexey Shvetsov <alexxy@omrb.pnpi.spb.ru>
Sat, 29 Jun 2013 21:11:09 +0000 (01:11 +0400)
committerAlexey Shvetsov <alexxy@omrb.pnpi.spb.ru>
Thu, 18 Jul 2013 09:49:51 +0000 (13:49 +0400)
Clean up (most) of unused params

Change-Id: Ibbe8d775ca1c37338f968d124d773808a1784eae
Signed-off-by: Alexey Shvetsov <alexxy@omrb.pnpi.spb.ru>
104 files changed:
src/gromacs/gmxana/anadih.c
src/gromacs/gmxana/gmx_anaeig.c
src/gromacs/gmxana/gmx_bond.c
src/gromacs/gmxana/gmx_bundle.c
src/gromacs/gmxana/gmx_cluster.c
src/gromacs/gmxana/gmx_covar.c
src/gromacs/gmxana/gmx_current.c
src/gromacs/gmxana/gmx_density.c
src/gromacs/gmxana/gmx_densmap.c
src/gromacs/gmxana/gmx_densorder.c
src/gromacs/gmxana/gmx_dipoles.c
src/gromacs/gmxana/gmx_disre.c
src/gromacs/gmxana/gmx_dist.c
src/gromacs/gmxana/gmx_do_dssp.c
src/gromacs/gmxana/gmx_filter.c
src/gromacs/gmxana/gmx_genconf.c
src/gromacs/gmxana/gmx_gyrate.c
src/gromacs/gmxana/gmx_h2order.c
src/gromacs/gmxana/gmx_hbond.c
src/gromacs/gmxana/gmx_helix.c
src/gromacs/gmxana/gmx_helixorient.c
src/gromacs/gmxana/gmx_hydorder.c
src/gromacs/gmxana/gmx_mdmat.c
src/gromacs/gmxana/gmx_mindist.c
src/gromacs/gmxana/gmx_msd.c
src/gromacs/gmxana/gmx_order.c
src/gromacs/gmxana/gmx_polystat.c
src/gromacs/gmxana/gmx_potential.c
src/gromacs/gmxana/gmx_principal.c
src/gromacs/gmxana/gmx_rdf.c
src/gromacs/gmxana/gmx_rms.c
src/gromacs/gmxana/gmx_rmsdist.c
src/gromacs/gmxana/gmx_rmsf.c
src/gromacs/gmxana/gmx_rotacf.c
src/gromacs/gmxana/gmx_rotmat.c
src/gromacs/gmxana/gmx_saltbr.c
src/gromacs/gmxana/gmx_sans.c
src/gromacs/gmxana/gmx_sas.c
src/gromacs/gmxana/gmx_sgangle.c
src/gromacs/gmxana/gmx_sorient.c
src/gromacs/gmxana/gmx_spatial.c
src/gromacs/gmxana/gmx_spol.c
src/gromacs/gmxana/gmx_traj.c
src/gromacs/gmxana/gmx_trjconv.c
src/gromacs/gmxana/gmx_trjorder.c
src/gromacs/gmxana/gmx_vanhove.c
src/gromacs/gmxana/gmx_xpm2ps.c
src/gromacs/gmxlib/bondfree.c
src/gromacs/gmxlib/chargegroup.c
src/gromacs/gmxlib/checkpoint.c
src/gromacs/gmxlib/disre.c
src/gromacs/gmxlib/ewald_util.c
src/gromacs/gmxlib/gmx_detect_hardware.c
src/gromacs/gmxlib/gmx_omp_nthreads.c
src/gromacs/gmxlib/gmx_thread_affinity.c
src/gromacs/gmxlib/gmxfio.c
src/gromacs/gmxlib/gmxfio_asc.c
src/gromacs/gmxlib/gmxfio_bin.c
src/gromacs/gmxlib/gmxfio_int.h
src/gromacs/gmxlib/gmxfio_xdr.c
src/gromacs/gmxlib/main.c
src/gromacs/gmxlib/mshift.c
src/gromacs/gmxlib/mtop_util.c
src/gromacs/gmxlib/network.c
src/gromacs/gmxlib/nrama.c
src/gromacs/gmxlib/nrnb.c
src/gromacs/gmxlib/orires.c
src/gromacs/gmxlib/random.c
src/gromacs/gmxlib/readinp.c
src/gromacs/gmxlib/rmpbc.c
src/gromacs/gmxlib/sfactor.c
src/gromacs/gmxlib/shift_util.c
src/gromacs/gmxlib/smalloc.c
src/gromacs/gmxlib/splitter.c
src/gromacs/gmxlib/statutil.cpp
src/gromacs/gmxlib/symtab.c
src/gromacs/gmxlib/tpxio.c
src/gromacs/gmxlib/trnio.c
src/gromacs/gmxlib/trxio.c
src/gromacs/gmxlib/txtdump.c
src/gromacs/gmxlib/vmdio.c
src/gromacs/gmxlib/vmdio.h
src/gromacs/gmxlib/xdrd.c
src/gromacs/gmxlib/xtcio.c
src/gromacs/gmxpreprocess/readir.c
src/gromacs/legacyheaders/coulomb.h
src/gromacs/legacyheaders/gmx_thread_affinity.h
src/gromacs/legacyheaders/gpu_utils.h
src/gromacs/legacyheaders/nrnb.h
src/gromacs/legacyheaders/random.h
src/gromacs/legacyheaders/readinp.h
src/gromacs/legacyheaders/rmpbc.h
src/gromacs/legacyheaders/sfactor.h
src/gromacs/legacyheaders/statutil.h
src/gromacs/legacyheaders/xdrf.h
src/gromacs/mdlib/ewald.c
src/gromacs/mdlib/force.c
src/gromacs/mdlib/forcerec.c
src/gromacs/mdlib/sim_util.c
src/gromacs/mdlib/tpi.c
src/gromacs/trajectoryanalysis/runnercommon.cpp
src/programs/mdrun/gctio.c
src/programs/mdrun/membed.c
src/programs/mdrun/runner.c

index fdce1a092f5fc4eae2bd5fa379efeb3db1b4e6d5..667cb216196f25576ec7f223d2a6dba1f98b1836 100644 (file)
@@ -992,7 +992,7 @@ void read_ang_dih(const char *trj_fn,
         /* Increment loop counter */
         teller++;
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
     close_trj(status);
 
     sfree(x);
index 220d156508aa279e5d90b96e894fc00a324fce1b..599a1db62a2e2f6aaaca6c21cf781c1adc4f0614 100644 (file)
@@ -554,7 +554,7 @@ static void project(const char *trajfile, t_topology *top, int ePBC, matrix topb
 
         if (top)
         {
-            gpbc = gmx_rmpbc_init(&top->idef, ePBC, nat, box);
+            gpbc = gmx_rmpbc_init(&top->idef, ePBC, nat);
         }
 
         for (i = 0; i < nat; i++)
@@ -623,7 +623,7 @@ static void project(const char *trajfile, t_topology *top, int ePBC, matrix topb
             }
             nfr++;
         }
-        while (read_next_x(oenv, status, &t, nat, xread, box));
+        while (read_next_x(oenv, status, &t, xread, box));
         close_trx(status);
         sfree(x);
         if (filterfile)
@@ -1243,7 +1243,7 @@ int gmx_anaeig(int argc, char *argv[])
         bTop = read_tps_conf(ftp2fn(efTPS, NFILE, fnm),
                              title, &top, &ePBC, &xtop, NULL, topbox, bM);
         atoms = &top.atoms;
-        gpbc  = gmx_rmpbc_init(&top.idef, ePBC, atoms->nr, topbox);
+        gpbc  = gmx_rmpbc_init(&top.idef, ePBC, atoms->nr);
         gmx_rmpbc(gpbc, atoms->nr, topbox, xtop);
         /* Fitting is only required for the projection */
         if (bProj && bFit1)
index ff27615106e11fb0a463c30f6a8d991a3ba61c94..02160f6bdb4c8f25985da7161bd18816636aeb4a 100644 (file)
@@ -204,7 +204,7 @@ static void do_bonds(FILE *log, const char *fn, const char *fbond,
             fprintf(outd, "\n");
         }
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
     close_trj(status);
 
     if (fdist)
index 6ecd5cf3887cdd351295c7f626d56f9c3afbeabe..46b4c3fdb8ec22e7953c1444b84d889d5e633926 100644 (file)
@@ -346,7 +346,7 @@ int gmx_bundle(int argc, char *argv[])
     }
 
     read_first_frame(oenv, &status, ftp2fn(efTRX, NFILE, fnm), &fr, TRX_NEED_X);
-    gpbc = gmx_rmpbc_init(&top.idef, ePBC, fr.natoms, fr.box);
+    gpbc = gmx_rmpbc_init(&top.idef, ePBC, fr.natoms);
 
     do
     {
index dd4b940ec592f83588567cdd3d4ce1bf2f727234..d4e4af2bb27828474bdf7867e8840dca438888b9 100644 (file)
@@ -770,7 +770,7 @@ rvec **read_whole_trj(const char *fn, int isize, atom_id index[], int skip,
         }
         i++;
     }
-    while (read_next_x(oenv, status, &t, natom, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
     fprintf(stderr, "Allocated %lu bytes for frames\n",
             (unsigned long) (max_nf*isize*sizeof(**xx)));
     fprintf(stderr, "Read %d frames from trajectory %s\n", i0, fn);
@@ -1552,7 +1552,7 @@ int gmx_cluster(int argc, char *argv[])
                       TRUE);
         if (bPBC)
         {
-            gpbc = gmx_rmpbc_init(&top.idef, ePBC, top.atoms.nr, box);
+            gpbc = gmx_rmpbc_init(&top.idef, ePBC, top.atoms.nr);
         }
 
         fprintf(stderr, "\nSelect group for least squares fit%s:\n",
index a8c1b088b34ade04333f963e824b4581a3a53094..956fc2fb397fb7a425baf9394396813034482e7e 100644 (file)
@@ -257,7 +257,7 @@ int gmx_covar(int argc, char *argv[])
     /* Prepare reference frame */
     if (bPBC)
     {
-        gpbc = gmx_rmpbc_init(&top.idef, ePBC, atoms->nr, box);
+        gpbc = gmx_rmpbc_init(&top.idef, ePBC, atoms->nr);
         gmx_rmpbc(gpbc, atoms->nr, box, xref);
     }
     if (bFit)
@@ -299,7 +299,7 @@ int gmx_covar(int argc, char *argv[])
             rvec_inc(xav[i], xread[index[i]]);
         }
     }
-    while (read_next_x(oenv, status, &t, nat, xread, box));
+    while (read_next_x(oenv, status, &t, xread, box));
     close_trj(status);
 
     inv_nframes = 1.0/nframes0;
@@ -365,7 +365,7 @@ int gmx_covar(int argc, char *argv[])
             }
         }
     }
-    while (read_next_x(oenv, status, &t, nat, xread, box) &&
+    while (read_next_x(oenv, status, &t, xread, box) &&
            (bRef || nframes < nframes0));
     close_trj(status);
     gmx_rmpbc_done(gpbc);
index de82a7db1dd9c903e31489fc72c674ef02f30149..30d3fe91d200347eb9463af13ff30543c6171dbd 100644 (file)
@@ -446,7 +446,7 @@ static void dielectric(FILE *fmj, FILE *fmd, FILE *outf, FILE *fcur, FILE *mcor,
     clear_rvec(mjd_tmp);
     clear_rvec(mdvec);
     clear_rvec(tmp);
-    gpbc = gmx_rmpbc_init(&top.idef, ePBC, fr.natoms, fr.box);
+    gpbc = gmx_rmpbc_init(&top.idef, ePBC, fr.natoms);
 
     do
     {
index fa3ad0940f789472d51e446ef9cfbcb62613e8f6..8943185b69989e6fdd38c98ef73dc65a5da2ffc9 100644 (file)
@@ -200,7 +200,7 @@ void calc_electron_density(const char *fn, atom_id **index, int gnx[],
         snew((*slDensity)[i], *nslices);
     }
 
-    gpbc = gmx_rmpbc_init(&top->idef, ePBC, top->atoms.nr, box);
+    gpbc = gmx_rmpbc_init(&top->idef, ePBC, top->atoms.nr);
     /*********** Start processing trajectory ***********/
     do
     {
@@ -254,7 +254,7 @@ void calc_electron_density(const char *fn, atom_id **index, int gnx[],
         }
         nr_frames++;
     }
-    while (read_next_x(oenv, status, &t, natoms, x0, box));
+    while (read_next_x(oenv, status, &t, x0, box));
     gmx_rmpbc_done(gpbc);
 
     /*********** done with status file **********/
@@ -321,7 +321,7 @@ void calc_density(const char *fn, atom_id **index, int gnx[],
         snew((*slDensity)[i], *nslices);
     }
 
-    gpbc = gmx_rmpbc_init(&top->idef, ePBC, top->atoms.nr, box);
+    gpbc = gmx_rmpbc_init(&top->idef, ePBC, top->atoms.nr);
     /*********** Start processing trajectory ***********/
     do
     {
@@ -357,7 +357,7 @@ void calc_density(const char *fn, atom_id **index, int gnx[],
         }
         nr_frames++;
     }
-    while (read_next_x(oenv, status, &t, natoms, x0, box));
+    while (read_next_x(oenv, status, &t, x0, box));
     gmx_rmpbc_done(gpbc);
 
     /*********** done with status file **********/
index 5d1cbc3ae03de8f347b5712fd695beef790cc3bb..940099f31c623a48a38084d4e8595d4284d9bb41 100644 (file)
@@ -364,7 +364,7 @@ int gmx_densmap(int argc, char *argv[])
         }
         nfr++;
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
     close_trj(status);
 
     /* normalize gridpoints */
index fee0f4915d561a412fe1a759be3e35de42c74796..a7d7286598a7d9bb8a038a0f60483a561dd99bdb 100644 (file)
@@ -171,7 +171,7 @@ static void density_in_time (const char *fn, atom_id **index, int gnx[], real bw
     /****Start trajectory processing***/
 
     /*Initialize Densdevel and PBC-remove*/
-    gpbc = gmx_rmpbc_init(&top->idef, ePBC, top->atoms.nr, box);
+    gpbc = gmx_rmpbc_init(&top->idef, ePBC, top->atoms.nr);
 
     *Densdevel = NULL;
 
@@ -259,7 +259,7 @@ static void density_in_time (const char *fn, atom_id **index, int gnx[], real bw
         }
 
     }
-    while (read_next_x(oenv, status, &t, natoms, x0, box));
+    while (read_next_x(oenv, status, &t, x0, box));
 
 
     /*Free memory we no longer need and exit.*/
index b4fc0d7a023608987f666b714c82f14b9e3f9422..ce92da2b90ec015966b794a72ef2b3f45b3d6fb4 100644 (file)
@@ -1013,7 +1013,7 @@ static void do_dip(t_topology *top, int ePBC, real volume,
 
         gkrbin = mk_gkrbin(rcut, rcmax, bPhi, ndegrees);
     }
-    gpbc = gmx_rmpbc_init(&top->idef, ePBC, natom, box);
+    gpbc = gmx_rmpbc_init(&top->idef, ePBC, natom);
 
     /* Start while loop over frames */
     t1     = t0 = t;
@@ -1314,7 +1314,7 @@ static void do_dip(t_topology *top, int ePBC, real volume,
         }
         else
         {
-            bCont = read_next_x(oenv, status, &t, natom, x, box);
+            bCont = read_next_x(oenv, status, &t, x, box);
         }
         timecheck = check_times(t);
     }
index 87bf8639e446e33063f2bfd93cbc79727f7da5a1..a88ec2d8dfa6db0781dc1326cd6143af9eda2fd1 100644 (file)
@@ -832,7 +832,7 @@ int gmx_disre(int argc, char *argv[])
     init_nrnb(&nrnb);
     if (ir.ePBC != epbcNONE)
     {
-        gpbc = gmx_rmpbc_init(&top->idef, ir.ePBC, natoms, box);
+        gpbc = gmx_rmpbc_init(&top->idef, ir.ePBC, natoms);
     }
 
     j = 0;
@@ -901,7 +901,7 @@ int gmx_disre(int argc, char *argv[])
         }
         j++;
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
     close_trj(status);
     if (ir.ePBC != epbcNONE)
     {
index 75098a192606a8bf748e6f8673df03d82b99e1bc..8d10b3da72f56ce585bfe9668cf089659a60f50f 100644 (file)
@@ -207,7 +207,7 @@ int gmx_dist(int argc, char *argv[])
         pbc = NULL;
     }
 
-    gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms, box);
+    gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms);
     do
     {
         /* initialisation for correct distance calculations */
@@ -303,7 +303,7 @@ int gmx_dist(int argc, char *argv[])
 
         teller++;
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
     gmx_rmpbc_done(gpbc);
 
     if (!bCutoff)
index 8d22f98758fb380dbafd8382ab3ec228af801cd6..7e76870a5640f1b6d97378e25272410becc98167 100644 (file)
@@ -639,7 +639,7 @@ int gmx_do_dssp(int argc, char *argv[])
     accr  = NULL;
     naccr = 0;
 
-    gpbc = gmx_rmpbc_init(&top.idef, ePBC, natoms, box);
+    gpbc = gmx_rmpbc_init(&top.idef, ePBC, natoms);
     do
     {
         t = output_env_conv_time(oenv, t);
@@ -683,7 +683,7 @@ int gmx_do_dssp(int argc, char *argv[])
         remove(pdbfile);
         nframe++;
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
     fprintf(stderr, "\n");
     close_trj(status);
     if (fTArea)
index 8044e6a96ea626b8fcc19881d4bdd7337092e877..5ff99c301a84900cd17943f670a01dd10274fde9 100644 (file)
@@ -140,7 +140,7 @@ int gmx_filter(int argc, char *argv[])
                              &xtop, NULL, topbox, TRUE);
         if (bTop)
         {
-            gpbc = gmx_rmpbc_init(&top.idef, ePBC, top.atoms.nr, topbox);
+            gpbc = gmx_rmpbc_init(&top.idef, ePBC, top.atoms.nr);
             gmx_rmpbc(gpbc, top.atoms.nr, topbox, xtop);
         }
     }
@@ -340,7 +340,7 @@ int gmx_filter(int argc, char *argv[])
         x[nffr - 1] = ptr;
         fr++;
     }
-    while (read_next_x(oenv, in, &(t[nffr - 1]), nat, x[nffr - 1], box[nffr - 1]));
+    while (read_next_x(oenv, in, &(t[nffr - 1]), x[nffr - 1], box[nffr - 1]));
 
     if (bTop)
     {
index 576c11050dbbcd74eceb8a98877885e5d4af57b5..7fc9722bcf149620c8ffe3828e4636eca2740085 100644 (file)
@@ -311,7 +311,7 @@ int gmx_genconf(int argc, char *argv[])
                 }
                 if (bTRX)
                 {
-                    if (!read_next_x(oenv, status, &t, natoms, xx, boxx) &&
+                    if (!read_next_x(oenv, status, &t, xx, boxx) &&
                         ((i+1)*(j+1)*(k+1) < vol))
                     {
                         gmx_fatal(FARGS, "Not enough frames in trajectory");
index cccee82376acfb373aa780c839990bff6ca9b948..26f7904ef2219160d698d87b270252e1cf179ab0 100644 (file)
@@ -307,7 +307,7 @@ int gmx_gyrate(int argc, char *argv[])
     }
     if (nz == 0)
     {
-        gpbc = gmx_rmpbc_init(&top.idef, ePBC, natoms, box);
+        gpbc = gmx_rmpbc_init(&top.idef, ePBC, natoms);
     }
     do
     {
@@ -367,7 +367,7 @@ int gmx_gyrate(int argc, char *argv[])
         }
         j++;
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
     close_trj(status);
     if (nz == 0)
     {
index f4885946b1c1db6a515c4ece009163321f1094a3..0d2ac426b2e32918eda5afd9286e3486d70ff662 100644 (file)
@@ -125,7 +125,7 @@ void calc_h2order(const char *fn, atom_id index[], int ngx, rvec **slDipole,
 
     teller = 0;
 
-    gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms, box);
+    gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms);
     /*********** Start processing trajectory ***********/
     do
     {
@@ -205,7 +205,7 @@ void calc_h2order(const char *fn, atom_id index[], int ngx, rvec **slDipole,
         }
 
     }
-    while (read_next_x(oenv, status, &t, natoms, x0, box));
+    while (read_next_x(oenv, status, &t, x0, box));
     /*********** done with status file **********/
 
     fprintf(stderr, "\nRead trajectory. Printing parameters to file\n");
index 8c9cd720b9078f3b2bbc920a9b747d3e90a20b14..0ef1d7c790e9a6136b0eff38e35bccf047fabe3d 100644 (file)
@@ -4530,7 +4530,7 @@ int gmx_hbond(int argc, char *argv[])
 
 #pragma omp single
             {
-                trrStatus = (read_next_x(oenv, status, &t, natoms, x, box));
+                trrStatus = (read_next_x(oenv, status, &t, x, box));
                 nframes++;
             }
 
index 883ff82b7fdf9e243fb368f8396405d1f914bea6..fd56396552994b343d77f209a39fae8fd5f108d0 100644 (file)
@@ -269,7 +269,7 @@ int gmx_helix(int argc, char *argv[])
         pr_bb(stdout, nres, bb);
     }
 
-    gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms, box);
+    gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms);
 
     snew(xav, natoms);
     teller = 0;
@@ -326,7 +326,7 @@ int gmx_helix(int argc, char *argv[])
             }
         }
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
     fprintf(stderr, "\n");
 
     gmx_rmpbc_done(gpbc);
index bcb4607edbf37084e130fd4b83f7aca7e9539ae3..dcbbb93a903752308e2c4501fce57cfcbafe81d6 100644 (file)
@@ -250,7 +250,7 @@ int gmx_helixorient(int argc, char *argv[])
     unitaxes[1][1] = 1;
     unitaxes[2][2] = 1;
 
-    gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms, box);
+    gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms);
 
     do
     {
@@ -502,7 +502,7 @@ int gmx_helixorient(int argc, char *argv[])
 
         teller++;
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
 
     gmx_rmpbc_done(gpbc);
 
index e742d16182bc348c724be3b074cdf91cd744cab8..e8c081d3fc51d83fdf7a004ed7048d49f87fdc28 100644 (file)
@@ -131,8 +131,8 @@ static void find_tetra_order_grid(t_topology top, int ePBC,
     snew(skmol, maxidx);
 
     /* Must init pbc every step because of pressure coupling */
-    set_pbc(&pbc,ePBC,box);
-    gpbc = gmx_rmpbc_init(&top.idef, ePBC, natoms, box);
+    set_pbc(&pbc, ePBC, box);
+    gpbc = gmx_rmpbc_init(&top.idef, ePBC, natoms);
     gmx_rmpbc(gpbc, natoms, box, x);
 
     *sgmean = 0.0;
@@ -391,7 +391,7 @@ static void calc_tetra_order_interface(const char *fnNDX, const char *fnTPS, con
         }
 
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
     close_trj(status);
 
     sfree(grpname);
index 6aa3f662f9fdab6b29bf9b60b408bac1d4c8b153..d7d86f00c6a0167bdbab085130dc67b9d44ff363 100644 (file)
@@ -303,7 +303,7 @@ int gmx_mdmat(int argc, char *argv[])
     rlo.r = 1.0, rlo.g = 1.0, rlo.b = 1.0;
     rhi.r = 0.0, rhi.g = 0.0, rhi.b = 0.0;
 
-    gpbc = gmx_rmpbc_init(&top.idef, ePBC, trxnat, box);
+    gpbc = gmx_rmpbc_init(&top.idef, ePBC, trxnat);
 
     if (bFrames)
     {
@@ -338,7 +338,7 @@ int gmx_mdmat(int argc, char *argv[])
                       nres, nres, resnr, resnr, mdmat, 0, truncate, rlo, rhi, &nlevels);
         }
     }
-    while (read_next_x(oenv, status, &t, trxnat, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
     fprintf(stderr, "\n");
     close_trj(status);
     gmx_rmpbc_done(gpbc);
index 2d5543f26135352ffbcbd01b188054705ce6d59c..4f51a8a2e0a03441ffc2ddd38990450acfb51407 100644 (file)
@@ -149,7 +149,7 @@ static void periodic_mindist_plot(const char *trxfn, const char *outfn,
 
     if (NULL != top)
     {
-        gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms, box);
+        gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms);
     }
 
     bFirst = TRUE;
@@ -176,7 +176,7 @@ static void periodic_mindist_plot(const char *trxfn, const char *outfn,
                 output_env_conv_time(oenv, t), rmin, rmax, norm(box[0]), norm(box[1]), norm(box[2]));
         bFirst = FALSE;
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
 
     if (NULL != top)
     {
@@ -529,7 +529,7 @@ void dist_plot(const char *fn, const char *afile, const char *dfile,
             fprintf(respertime, "\n");
         }
     }
-    while (read_next_x(oenv, status, &t, natoms, x0, box));
+    while (read_next_x(oenv, status, &t, x0, box));
 
     close_trj(status);
     ffclose(dist);
index 8718b180d84b16da99c4d76efd15e00981e6851d..22126a69a2459d688713d2794d7e65cb915da0d8 100644 (file)
@@ -690,7 +690,7 @@ int corr_loop(t_corr *curr, const char *fn, t_topology *top, int ePBC,
 
     if (bMol)
     {
-        gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms, box);
+        gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms);
     }
 
     /* the loop over all frames */
@@ -821,7 +821,7 @@ int corr_loop(t_corr *curr, const char *fn, t_topology *top, int ePBC,
 
         curr->nframes++;
     }
-    while (read_next_x(oenv, status, &t, natoms, x[cur], box));
+    while (read_next_x(oenv, status, &t, x[cur], box));
     fprintf(stderr, "\nUsed %d restart points spaced %g %s over %g %s\n\n",
             curr->nrestart,
             output_env_conv_time(oenv, dt), output_env_get_time_unit(oenv),
index 1ff165a2f1a0fd6144e3656a83eacc6a649c0b37..982a0ac6bb2420ac4ef4a85c2df2facbbc122c11 100644 (file)
@@ -301,7 +301,7 @@ static void calc_tetra_order_parm(const char *fnNDX, const char *fnTPS,
                     oenv);
 
     /* loop over frames */
-    gpbc    = gmx_rmpbc_init(&top.idef, ePBC, natoms, box);
+    gpbc    = gmx_rmpbc_init(&top.idef, ePBC, natoms);
     nframes = 0;
     do
     {
@@ -316,7 +316,7 @@ static void calc_tetra_order_parm(const char *fnNDX, const char *fnTPS,
         fprintf(fpsk, "%f %f\n", t, sk);
         nframes++;
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
     close_trj(status);
     gmx_rmpbc_done(gpbc);
 
@@ -488,7 +488,7 @@ void calc_order(const char *fn, atom_id *index, atom_id *a, rvec **order,
 
     teller = 0;
 
-    gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms, box);
+    gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms);
     /*********** Start processing trajectory ***********/
     do
     {
@@ -702,7 +702,7 @@ void calc_order(const char *fn, atom_id *index, atom_id *a, rvec **order,
         nr_frames++;
 
     }
-    while (read_next_x(oenv, status, &t, natoms, x0, box));
+    while (read_next_x(oenv, status, &t, x0, box));
     /*********** done with status file **********/
 
     fprintf(stderr, "\nRead trajectory. Printing parameters to file\n");
index 0c80bcf48343019b4d3e28c3ab1d5a77f71cc30d..53bd7253c2262a6d81677195b3384ebecd59ad70 100644 (file)
@@ -283,7 +283,7 @@ int gmx_polystat(int argc, char *argv[])
     sum_gyro_tot = 0;
     sum_pers_tot = 0;
 
-    gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms, box);
+    gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms);
 
     do
     {
@@ -456,7 +456,7 @@ int gmx_polystat(int argc, char *argv[])
 
         frame++;
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
 
     gmx_rmpbc_done(gpbc);
 
index 0f46d45dcfd7b56b7f69f2df203d231ac7df0e80..86e1521f308cd46b875d6fd37b9507a351364c04 100644 (file)
@@ -161,7 +161,7 @@ void calc_potential(const char *fn, atom_id **index, int gnx[],
     }
 
 
-    gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms, box);
+    gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms);
 
     /*********** Start processing trajectory ***********/
     do
@@ -221,7 +221,7 @@ void calc_potential(const char *fn, atom_id **index, int gnx[],
         }
         nr_frames++;
     }
-    while (read_next_x(oenv, status, &t, natoms, x0, box));
+    while (read_next_x(oenv, status, &t, x0, box));
 
     gmx_rmpbc_done(gpbc);
 
index bb3ca306e73113c23ff4d9163eb7929d5cebce71..ef7de282caef57dca98e271be874ce30bb55e4e2 100644 (file)
@@ -130,7 +130,7 @@ int gmx_principal(int argc, char *argv[])
 
     natoms = read_first_x(oenv, &status, ftp2fn(efTRX, NFILE, fnm), &t, &x, box);
 
-    gpbc = gmx_rmpbc_init(&top.idef, ePBC, natoms, box);
+    gpbc = gmx_rmpbc_init(&top.idef, ePBC, natoms);
 
     do
     {
@@ -143,7 +143,7 @@ int gmx_principal(int argc, char *argv[])
         fprintf(axis3, "%15.10f     %15.10f  %15.10f  %15.10f\n", t, axes[XX][ZZ], axes[YY][ZZ], axes[ZZ][ZZ]);
         fprintf(fmoi,  "%15.10f     %15.10f  %15.10f  %15.10f\n", t, moi[XX], moi[YY], moi[ZZ]);
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
 
     gmx_rmpbc_done(gpbc);
 
index 3eaa3aef8fee54afd397a3caead2ba8046031637..eaeb9297130ae8642787a1fe1e651406b76458ce 100644 (file)
@@ -430,7 +430,7 @@ static void do_rdf(const char *fnNDX, const char *fnTPS, const char *fnTRX,
     invvol_sum = 0;
     if (bPBC && (NULL != top))
     {
-        gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms, box);
+        gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms);
     }
 
     do
@@ -613,7 +613,7 @@ static void do_rdf(const char *fnNDX, const char *fnTPS, const char *fnTRX,
         }
         nframes++;
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
     fprintf(stderr, "\n");
 
     if (bPBC && (NULL != top))
index d24d171e65452a62ac358c459be19ab5d0ab2e1e..6bad1e6dc847a38d53e2588ad47c16b7d1bb09d5 100644 (file)
@@ -462,7 +462,7 @@ int gmx_rms(int argc, char *argv[])
     /* Prepare reference frame */
     if (bPBC)
     {
-        gpbc = gmx_rmpbc_init(&top.idef, ePBC, top.atoms.nr, box);
+        gpbc = gmx_rmpbc_init(&top.idef, ePBC, top.atoms.nr);
         gmx_rmpbc(gpbc, top.atoms.nr, box, xp);
     }
     if (bReset)
@@ -712,7 +712,7 @@ int gmx_rms(int argc, char *argv[])
             }
         }
     }
-    while (read_next_x(oenv, status, &t, natoms_trx, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
     close_trj(status);
 
     if (bFile2)
@@ -780,7 +780,7 @@ int gmx_rms(int argc, char *argv[])
                 srenew(time2, maxframe2);
             }
         }
-        while (read_next_x(oenv, status, &t, natoms_trx2, x, box));
+        while (read_next_x(oenv, status, &t, x, box));
         close_trj(status);
     }
     else
index 5e91fe8c0093a8f9d6e56cae2e70e7ab36679fcb..19cf1d1d84deda305029e31f9dda729fabce340e 100644 (file)
@@ -791,7 +791,7 @@ int gmx_rmsdist (int argc, char *argv[])
         rmsnow = rms_diff(isize, d, d_r);
         fprintf(fp, "%g  %g\n", t, rmsnow);
     }
-    while (read_next_x(oenv, status, &t, natom, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
     fprintf(stderr, "\n");
 
     ffclose(fp);
index 2f69e72dbcd04aaf8d21c7165f4b24dde8f52054..137bb55e4d989dbce08596c93ef38909d26f9714 100644 (file)
@@ -341,7 +341,7 @@ int gmx_rmsf(int argc, char *argv[])
 
     if (bFit)
     {
-        gpbc = gmx_rmpbc_init(&top.idef, ePBC, natom, box);
+        gpbc = gmx_rmpbc_init(&top.idef, ePBC, natom);
     }
 
     /* Now read the trj again to compute fluctuations */
@@ -389,7 +389,7 @@ int gmx_rmsf(int argc, char *argv[])
         count += 1.0;
         teller++;
     }
-    while (read_next_x(oenv, status, &t, natom, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
     close_trj(status);
 
     if (bFit)
index deac58817d326cd7fa32c40401c573933205a5aa..bd7120e7d6dd6d6a8b602db48f3d7943f214befd 100644 (file)
@@ -149,7 +149,7 @@ int gmx_rotacf(int argc, char *argv[])
     natoms = read_first_x(oenv, &status, ftp2fn(efTRX, NFILE, fnm), &t, &x, box);
     snew(x_s, natoms);
 
-    gpbc = gmx_rmpbc_init(&(top->idef), ePBC, natoms, box);
+    gpbc = gmx_rmpbc_init(&(top->idef), ePBC, natoms);
 
     /* Start the loop over frames */
     t1      = t0 = t;
@@ -204,7 +204,7 @@ int gmx_rotacf(int argc, char *argv[])
         /* Increment loop counter */
         teller++;
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
     close_trj(status);
     fprintf(stderr, "\nDone with trajectory\n");
 
index 220349afc86289b3bcd2f2b9759a2e4678af064c..36223d09757120e0e6af076e45114452db613de9 100644 (file)
@@ -90,7 +90,7 @@ static void get_refx(output_env_t oenv, const char *trxfn, int nfitdim, int skip
         w_rls[a]  = (bMW ? top->atoms.atom[index[a]].m : 1.0);
         tot_mass += w_rls[a];
     }
-    gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms, box);
+    gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms);
 
     do
     {
@@ -112,7 +112,7 @@ static void get_refx(output_env_t oenv, const char *trxfn, int nfitdim, int skip
         }
         nfr_all++;
     }
-    while (read_next_x(oenv, status, &ti[nfr], natoms, x, box));
+    while (read_next_x(oenv, status, &ti[nfr], x, box));
     close_trj(status);
     sfree(x);
 
@@ -248,7 +248,7 @@ int gmx_rotmat(int argc, char *argv[])
 
     read_tps_conf(ftp2fn(efTPS, NFILE, fnm), title, &top, &ePBC, &x_ref, NULL, box, bMW);
 
-    gpbc = gmx_rmpbc_init(&top.idef, ePBC, top.atoms.nr, box);
+    gpbc = gmx_rmpbc_init(&top.idef, ePBC, top.atoms.nr);
 
     gmx_rmpbc(gpbc, top.atoms.nr, box, x_ref);
 
@@ -301,7 +301,7 @@ int gmx_rotmat(int argc, char *argv[])
                 R[YY][XX], R[YY][YY], R[YY][ZZ],
                 R[ZZ][XX], R[ZZ][YY], R[ZZ][ZZ]);
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
 
     gmx_rmpbc_done(gpbc);
 
index 497378e652d83ba461746e67e43dfd7414d7367a..987d4876baae97eebee97d0da6f9a4d48785ac46 100644 (file)
@@ -222,7 +222,7 @@ int gmx_saltbr(int argc, char *argv[])
 
         teller++;
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
     fprintf(stderr, "\n");
     close_trj(status);
 
index 368d1bf10a20c2960a71b1c59ea9ad6923d853cc..a4749dfbbaef71bca8df467954970d0264dd67f9 100644 (file)
@@ -234,7 +234,7 @@ int gmx_sans(int argc, char *argv[])
     /* Prepare reference frame */
     if (bPBC)
     {
-        gpbc = gmx_rmpbc_init(&top->idef, ePBC, top->atoms.nr, box);
+        gpbc = gmx_rmpbc_init(&top->idef, ePBC, top->atoms.nr);
         gmx_rmpbc(gpbc, top->atoms.nr, box, x);
     }
 
@@ -339,7 +339,7 @@ int gmx_sans(int argc, char *argv[])
         sfree(sqframecurrent->s);
         sfree(sqframecurrent);
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
     close_trj(status);
 
     /* normalize histo */
index 35a6509cac55c76205a79a330c06e83d07986e19..23b0c9211a96ff95193ae33b63d33de8d90f17b0 100644 (file)
@@ -468,7 +468,7 @@ void sas_plot(int nfile, t_filenm fnm[], real solsize, int ndots,
 
     if (bPBC)
     {
-        gpbc = gmx_rmpbc_init(&top.idef, ePBC, natoms, box);
+        gpbc = gmx_rmpbc_init(&top.idef, ePBC, natoms);
     }
 
     nfr = 0;
@@ -585,7 +585,7 @@ void sas_plot(int nfile, t_filenm fnm[], real solsize, int ndots,
         }
         nfr++;
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
 
     if (bPBC)
     {
index 50d01c9b2bd59980aed4abbe2dd76b8395beae51..d4a0453c4a48bbf9ba791c30d870c8557a23f90e 100644 (file)
@@ -213,11 +213,11 @@ void sgangle_plot(const char *fn, const char *afile, const char *dfile,
         distance2;        /* same for second of two atoms */
     t_trxstatus *status;
     int          natoms, teller = 0;
-    rvec        *x0;       /* coordinates, and coordinates corrected for pb */
+    rvec        *x0;                                            /* coordinates, and coordinates corrected for pb */
     matrix       box;
-    char         buf[256]; /* for xvgr title */
-    gmx_rmpbc_t  gpbc = NULL;
-    const char*  aleg[2] = { "cos(Angle)", "Angle (degrees)" };     /* legends for sg_angle output file */
+    char         buf[256];                                      /* for xvgr title */
+    gmx_rmpbc_t  gpbc    = NULL;
+    const char*  aleg[2] = { "cos(Angle)", "Angle (degrees)" }; /* legends for sg_angle output file */
 
     if ((natoms = read_first_x(oenv, &status, fn, &t, &x0, box)) == 0)
     {
@@ -246,7 +246,7 @@ void sgangle_plot(const char *fn, const char *afile, const char *dfile,
         sg_distance2 = xvgropen(d2file, buf, "Time (ps", "Distance (nm)", oenv);
     }
 
-    gpbc = gmx_rmpbc_init(&(top->idef), ePBC, natoms, box);
+    gpbc = gmx_rmpbc_init(&(top->idef), ePBC, natoms);
 
     do
     {
@@ -272,7 +272,7 @@ void sgangle_plot(const char *fn, const char *afile, const char *dfile,
         }
 
     }
-    while (read_next_x(oenv, status, &t, natoms, x0, box));
+    while (read_next_x(oenv, status, &t, x0, box));
 
     gmx_rmpbc_done(gpbc);
 
@@ -449,7 +449,7 @@ void sgangle_plot_single(const char *fn, const char *afile, const char *dfile,
     }
 
     snew(xzero, natoms);
-    gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms, box);
+    gpbc = gmx_rmpbc_init(&top->idef, ePBC, natoms);
 
     do
     {
@@ -484,7 +484,7 @@ void sgangle_plot_single(const char *fn, const char *afile, const char *dfile,
         }
 
     }
-    while (read_next_x(oenv, status, &t, natoms, x0, box));
+    while (read_next_x(oenv, status, &t, x0, box));
     gmx_rmpbc_done(gpbc);
 
     fprintf(stderr, "\n");
index aefb2380dc2716f7f5c6d0a5769bcf558f947b0c..d9382884363bc36ef47da1c9e6bf3c73870299a8 100644 (file)
@@ -269,7 +269,7 @@ int gmx_sorient(int argc, char *argv[])
     if (bTPS)
     {
         /* make molecules whole again */
-        gpbc = gmx_rmpbc_init(&top.idef, ePBC, natoms, box);
+        gpbc = gmx_rmpbc_init(&top.idef, ePBC, natoms);
     }
     /* start analysis of trajectory */
     do
@@ -355,7 +355,7 @@ int gmx_sorient(int argc, char *argv[])
         nf++;
 
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
 
     /* clean up */
     sfree(x);
index 7f8c7e9401f74181a08a4efefbdc2c554baba4eb..126942e29cb80fd19188eabab7a24054d0fa89e5 100644 (file)
@@ -244,7 +244,7 @@ int gmx_spatial(int argc, char *argv[])
 
     if (bPBC)
     {
-        gpbc = gmx_rmpbc_init(&top.idef, ePBC, natoms, box);
+        gpbc = gmx_rmpbc_init(&top.idef, ePBC, natoms);
     }
     /* This is the main loop over frames */
     do
index abccd8de06631f13c0930bb180b6aa82e081f00e..5de9e866b0186f45399a6d6942d81f5103aec937 100644 (file)
@@ -262,7 +262,7 @@ int gmx_spol(int argc, char *argv[])
     molindex = top->mols.index;
     atom     = top->atoms.atom;
 
-    gpbc = gmx_rmpbc_init(&top->idef, ir->ePBC, natoms, box);
+    gpbc = gmx_rmpbc_init(&top->idef, ir->ePBC, natoms);
 
     /* start analysis of trajectory */
     do
@@ -342,7 +342,7 @@ int gmx_spol(int argc, char *argv[])
         nf++;
 
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
 
     gmx_rmpbc_done(gpbc);
 
index 05c82fe0e690caa149b25e39708d21d393b1ea75..3e85dc6561663456f97183bb9ccd397c8c6ecf83 100644 (file)
@@ -917,7 +917,7 @@ int gmx_traj(int argc, char *argv[])
 
     if (bCom && bPBC)
     {
-        gpbc = gmx_rmpbc_init(&top.idef, ePBC, fr.natoms, fr.box);
+        gpbc = gmx_rmpbc_init(&top.idef, ePBC, fr.natoms);
     }
 
     do
index 3313a9a8f82cbe8327f762d19a9cb2b28c819f25..ab64f46b1a1b8abdfce56982db3c8dc27afa0294 100644 (file)
@@ -1077,7 +1077,7 @@ int gmx_trjconv(int argc, char *argv[])
             }
             if (bRmPBC)
             {
-                gpbc = gmx_rmpbc_init(&top.idef, ePBC, top.atoms.nr, top_box);
+                gpbc = gmx_rmpbc_init(&top.idef, ePBC, top.atoms.nr);
             }
         }
 
index fd893f75f8ff8a169f064896271d48f42ea34502..abc68bd1e14d8957e5726f8b0e4568731048c6a3 100644 (file)
@@ -234,7 +234,7 @@ int gmx_trjorder(int argc, char *argv[])
         }
         out = open_trx(opt2fn("-o", NFILE, fnm), "w");
     }
-    gpbc = gmx_rmpbc_init(&top.idef, ePBC, natoms, box);
+    gpbc = gmx_rmpbc_init(&top.idef, ePBC, natoms);
     do
     {
         gmx_rmpbc(gpbc, natoms, box, x);
@@ -363,7 +363,7 @@ int gmx_trjorder(int argc, char *argv[])
             write_trx(out, natoms, swi, &top.atoms, 0, t, box, x, NULL, NULL);
         }
     }
-    while (read_next_x(oenv, status, &t, natoms, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
     close_trj(status);
     if (out)
     {
index 0468c72cc5dea74689d0afce3afc9d42798f0689..f42c141eceeb69bfd736a0dc0818a40ff426b1e0 100644 (file)
@@ -209,7 +209,7 @@ int gmx_vanhove(int argc, char *argv[])
 
         nfr++;
     }
-    while (read_next_x(oenv, status, &t, natom, x, box));
+    while (read_next_x(oenv, status, &t, x, box));
 
     /* clean up */
     sfree(x);
index cecb3f31412691d3883106b8abc7dff513469345..2b8a07d0d7efee7c3f70c2b058f27ac394735c60 100644 (file)
@@ -117,7 +117,7 @@ void get_params(const char *mpin, const char *mpout, t_psrec *psr)
 
     if (mpin != NULL)
     {
-        inp = read_inpfile(mpin, &ninp, NULL, wi);
+        inp = read_inpfile(mpin, &ninp, wi);
     }
     else
     {
index 1aa794714c8c429139034e29112875be291bc72c..230ccea7ac5fa2779ae8d87445c98e5d2a5afe17 100644 (file)
@@ -256,8 +256,8 @@ real morse_bonds(int nbonds,
                  const rvec x[], rvec f[], rvec fshift[],
                  const t_pbc *pbc, const t_graph *g,
                  real lambda, real *dvdlambda,
-                 const t_mdatoms *md, t_fcdata *fcd,
-                 int *global_atom_index)
+                 const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
+                 int gmx_unused *global_atom_index)
 {
     const real one = 1.0;
     const real two = 2.0;
@@ -329,9 +329,9 @@ real cubic_bonds(int nbonds,
                  const t_iatom forceatoms[], const t_iparams forceparams[],
                  const rvec x[], rvec f[], rvec fshift[],
                  const t_pbc *pbc, const t_graph *g,
-                 real lambda, real *dvdlambda,
-                 const t_mdatoms *md, t_fcdata *fcd,
-                 int *global_atom_index)
+                 real gmx_unused lambda, real gmx_unused *dvdlambda,
+                 const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
+                 int gmx_unused *global_atom_index)
 {
     const real three = 3.0;
     const real two   = 2.0;
@@ -391,8 +391,8 @@ real FENE_bonds(int nbonds,
                 const t_iatom forceatoms[], const t_iparams forceparams[],
                 const rvec x[], rvec f[], rvec fshift[],
                 const t_pbc *pbc, const t_graph *g,
-                real lambda, real *dvdlambda,
-                const t_mdatoms *md, t_fcdata *fcd,
+                real gmx_unused lambda, real gmx_unused *dvdlambda,
+                const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
                 int *global_atom_index)
 {
     const real half = 0.5;
@@ -488,8 +488,8 @@ real bonds(int nbonds,
            const rvec x[], rvec f[], rvec fshift[],
            const t_pbc *pbc, const t_graph *g,
            real lambda, real *dvdlambda,
-           const t_mdatoms *md, t_fcdata *fcd,
-           int *global_atom_index)
+           const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
+           int gmx_unused *global_atom_index)
 {
     int  i, m, ki, ai, aj, type;
     real dr, dr2, fbond, vbond, fij, vtot;
@@ -550,8 +550,8 @@ real restraint_bonds(int nbonds,
                      const rvec x[], rvec f[], rvec fshift[],
                      const t_pbc *pbc, const t_graph *g,
                      real lambda, real *dvdlambda,
-                     const t_mdatoms *md, t_fcdata *fcd,
-                     int *global_atom_index)
+                     const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
+                     int gmx_unused *global_atom_index)
 {
     int  i, m, ki, ai, aj, type;
     real dr, dr2, fbond, vbond, fij, vtot;
@@ -652,8 +652,8 @@ real polarize(int nbonds,
               const rvec x[], rvec f[], rvec fshift[],
               const t_pbc *pbc, const t_graph *g,
               real lambda, real *dvdlambda,
-              const t_mdatoms *md, t_fcdata *fcd,
-              int *global_atom_index)
+              const t_mdatoms *md, t_fcdata gmx_unused *fcd,
+              int gmx_unused *global_atom_index)
 {
     int  i, m, ki, ai, aj, type;
     real dr, dr2, fbond, vbond, fij, vtot, ksh;
@@ -708,8 +708,8 @@ real anharm_polarize(int nbonds,
                      const rvec x[], rvec f[], rvec fshift[],
                      const t_pbc *pbc, const t_graph *g,
                      real lambda, real *dvdlambda,
-                     const t_mdatoms *md, t_fcdata *fcd,
-                     int *global_atom_index)
+                     const t_mdatoms *md, t_fcdata gmx_unused *fcd,
+                     int gmx_unused *global_atom_index)
 {
     int  i, m, ki, ai, aj, type;
     real dr, dr2, fbond, vbond, fij, vtot, ksh, khyp, drcut, ddr, ddr3;
@@ -770,11 +770,11 @@ real anharm_polarize(int nbonds,
 
 real water_pol(int nbonds,
                const t_iatom forceatoms[], const t_iparams forceparams[],
-               const rvec x[], rvec f[], rvec fshift[],
-               const t_pbc *pbc, const t_graph *g,
-               real lambda, real *dvdlambda,
-               const t_mdatoms *md, t_fcdata *fcd,
-               int *global_atom_index)
+               const rvec x[], rvec f[], rvec gmx_unused fshift[],
+               const t_pbc gmx_unused *pbc, const t_graph gmx_unused *g,
+               real gmx_unused lambda, real gmx_unused *dvdlambda,
+               const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
+               int gmx_unused *global_atom_index)
 {
     /* This routine implements anisotropic polarizibility for water, through
      * a shell connected to a dummy with spring constant that differ in the
@@ -945,10 +945,10 @@ static real do_1_thole(const rvec xi, const rvec xj, rvec fi, rvec fj,
 real thole_pol(int nbonds,
                const t_iatom forceatoms[], const t_iparams forceparams[],
                const rvec x[], rvec f[], rvec fshift[],
-               const t_pbc *pbc, const t_graph *g,
-               real lambda, real *dvdlambda,
-               const t_mdatoms *md, t_fcdata *fcd,
-               int *global_atom_index)
+               const t_pbc *pbc, const t_graph gmx_unused *g,
+               real gmx_unused lambda, real gmx_unused *dvdlambda,
+               const t_mdatoms *md, t_fcdata gmx_unused *fcd,
+               int gmx_unused *global_atom_index)
 {
     /* Interaction between two pairs of particles with opposite charge */
     int  i, type, a1, da1, a2, da2;
@@ -1000,8 +1000,8 @@ real angles(int nbonds,
             const rvec x[], rvec f[], rvec fshift[],
             const t_pbc *pbc, const t_graph *g,
             real lambda, real *dvdlambda,
-            const t_mdatoms *md, t_fcdata *fcd,
-            int *global_atom_index)
+            const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
+            int gmx_unused *global_atom_index)
 {
     int  i, ai, aj, ak, t1, t2, type;
     rvec r_ij, r_kj;
@@ -1091,10 +1091,10 @@ static gmx_inline void
 angles_noener_simd(int nbonds,
                    const t_iatom forceatoms[], const t_iparams forceparams[],
                    const rvec x[], rvec f[],
-                   const t_pbc *pbc, const t_graph *g,
-                   real lambda,
-                   const t_mdatoms *md, t_fcdata *fcd,
-                   int *global_atom_index)
+                   const t_pbc *pbc, const t_graph gmx_unused *g,
+                   real gmx_unused lambda,
+                   const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
+                   int gmx_unused *global_atom_index)
 {
 #define UNROLL GMX_SIMD_WIDTH_HERE
     const int      nfa1 = 4;
@@ -1123,7 +1123,7 @@ angles_noener_simd(int nbonds,
     dr    = gmx_simd_align_real(dr_array);
     f_buf = gmx_simd_align_real(f_buf_array);
 
-    set_pbc_simd(pbc,&pbc_simd);
+    set_pbc_simd(pbc, &pbc_simd);
 
     one_S = gmx_set1_pr(1.0);
 
@@ -1242,8 +1242,8 @@ real linear_angles(int nbonds,
                    const rvec x[], rvec f[], rvec fshift[],
                    const t_pbc *pbc, const t_graph *g,
                    real lambda, real *dvdlambda,
-                   const t_mdatoms *md, t_fcdata *fcd,
-                   int *global_atom_index)
+                   const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
+                   int gmx_unused *global_atom_index)
 {
     int  i, m, ai, aj, ak, t1, t2, type;
     rvec f_i, f_j, f_k;
@@ -1312,8 +1312,8 @@ real urey_bradley(int nbonds,
                   const rvec x[], rvec f[], rvec fshift[],
                   const t_pbc *pbc, const t_graph *g,
                   real lambda, real *dvdlambda,
-                  const t_mdatoms *md, t_fcdata *fcd,
-                  int *global_atom_index)
+                  const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
+                  int gmx_unused *global_atom_index)
 {
     int  i, m, ai, aj, ak, t1, t2, type, ki;
     rvec r_ij, r_kj, r_ik;
@@ -1426,9 +1426,9 @@ real quartic_angles(int nbonds,
                     const t_iatom forceatoms[], const t_iparams forceparams[],
                     const rvec x[], rvec f[], rvec fshift[],
                     const t_pbc *pbc, const t_graph *g,
-                    real lambda, real *dvdlambda,
-                    const t_mdatoms *md, t_fcdata *fcd,
-                    int *global_atom_index)
+                    real gmx_unused lambda, real gmx_unused *dvdlambda,
+                    const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
+                    int gmx_unused *global_atom_index)
 {
     int  i, j, ai, aj, ak, t1, t2, type;
     rvec r_ij, r_kj;
@@ -1882,8 +1882,8 @@ real pdihs(int nbonds,
            const rvec x[], rvec f[], rvec fshift[],
            const t_pbc *pbc, const t_graph *g,
            real lambda, real *dvdlambda,
-           const t_mdatoms *md, t_fcdata *fcd,
-           int *global_atom_index)
+           const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
+           int gmx_unused *global_atom_index)
 {
     int  i, type, ai, aj, ak, al;
     int  t1, t2, t3;
@@ -1941,10 +1941,10 @@ static void
 pdihs_noener(int nbonds,
              const t_iatom forceatoms[], const t_iparams forceparams[],
              const rvec x[], rvec f[],
-             const t_pbc *pbc, const t_graph *g,
+             const t_pbc gmx_unused *pbc, const t_graph gmx_unused *g,
              real lambda,
-             const t_mdatoms *md, t_fcdata *fcd,
-             int *global_atom_index)
+             const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
+             int gmx_unused *global_atom_index)
 {
     int  i, type, ai, aj, ak, al;
     int  t1, t2, t3;
@@ -1997,29 +1997,29 @@ static void
 pdihs_noener_simd(int nbonds,
                   const t_iatom forceatoms[], const t_iparams forceparams[],
                   const rvec x[], rvec f[],
-                  const t_pbc *pbc, const t_graph *g,
-                  real lambda,
-                  const t_mdatoms *md, t_fcdata *fcd,
-                  int *global_atom_index)
+                  const t_pbc *pbc, const t_graph gmx_unused *g,
+                  real gmx_unused lambda,
+                  const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
+                  int gmx_unused *global_atom_index)
 {
 #define UNROLL GMX_SIMD_WIDTH_HERE
-    const int      nfa1 = 5;
-    int            i, iu, s;
-    int            type, ai[UNROLL], aj[UNROLL], ak[UNROLL], al[UNROLL];
-    int            t1[UNROLL], t2[UNROLL], t3[UNROLL];
-    real           ddphi;
-    real           dr_array[3*DIM*UNROLL+UNROLL], *dr;
-    real           buf_array[7*UNROLL+UNROLL], *buf;
+    const int       nfa1 = 5;
+    int             i, iu, s;
+    int             type, ai[UNROLL], aj[UNROLL], ak[UNROLL], al[UNROLL];
+    int             t1[UNROLL], t2[UNROLL], t3[UNROLL];
+    real            ddphi;
+    real            dr_array[3*DIM*UNROLL+UNROLL], *dr;
+    real            buf_array[7*UNROLL+UNROLL], *buf;
     real           *cp, *phi0, *mult, *phi, *p, *q, *sf_i, *msf_l;
-    gmx_mm_pr      phi0_S, phi_S;
-    gmx_mm_pr      mx_S, my_S, mz_S;
-    gmx_mm_pr      nx_S, ny_S, nz_S;
-    gmx_mm_pr      nrkj_m2_S, nrkj_n2_S;
-    gmx_mm_pr      cp_S, mdphi_S, mult_S;
-    gmx_mm_pr      sin_S, cos_S;
-    gmx_mm_pr      mddphi_S;
-    gmx_mm_pr      sf_i_S, msf_l_S;
-    pbc_simd_t     pbc_simd;
+    gmx_mm_pr       phi0_S, phi_S;
+    gmx_mm_pr       mx_S, my_S, mz_S;
+    gmx_mm_pr       nx_S, ny_S, nz_S;
+    gmx_mm_pr       nrkj_m2_S, nrkj_n2_S;
+    gmx_mm_pr       cp_S, mdphi_S, mult_S;
+    gmx_mm_pr       sin_S, cos_S;
+    gmx_mm_pr       mddphi_S;
+    gmx_mm_pr       sf_i_S, msf_l_S;
+    pbc_simd_t      pbc_simd;
 
     /* Ensure SIMD register alignment */
     dr  = gmx_simd_align_real(dr_array);
@@ -2130,8 +2130,8 @@ real idihs(int nbonds,
            const rvec x[], rvec f[], rvec fshift[],
            const t_pbc *pbc, const t_graph *g,
            real lambda, real *dvdlambda,
-           const t_mdatoms *md, t_fcdata *fcd,
-           int *global_atom_index)
+           const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
+           int gmx_unused *global_atom_index)
 {
     int  i, type, ai, aj, ak, al;
     int  t1, t2, t3;
@@ -2563,8 +2563,8 @@ real angres(int nbonds,
             const rvec x[], rvec f[], rvec fshift[],
             const t_pbc *pbc, const t_graph *g,
             real lambda, real *dvdlambda,
-            const t_mdatoms *md, t_fcdata *fcd,
-            int *global_atom_index)
+            const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
+            int gmx_unused *global_atom_index)
 {
     return low_angres(nbonds, forceatoms, forceparams, x, f, fshift, pbc, g,
                       lambda, dvdlambda, FALSE);
@@ -2575,8 +2575,8 @@ real angresz(int nbonds,
              const rvec x[], rvec f[], rvec fshift[],
              const t_pbc *pbc, const t_graph *g,
              real lambda, real *dvdlambda,
-             const t_mdatoms *md, t_fcdata *fcd,
-             int *global_atom_index)
+             const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
+             int gmx_unused *global_atom_index)
 {
     return low_angres(nbonds, forceatoms, forceparams, x, f, fshift, pbc, g,
                       lambda, dvdlambda, TRUE);
@@ -2587,8 +2587,8 @@ real dihres(int nbonds,
             const rvec x[], rvec f[], rvec fshift[],
             const t_pbc *pbc, const t_graph *g,
             real lambda, real *dvdlambda,
-            const t_mdatoms *md, t_fcdata *fcd,
-            int *global_atom_index)
+            const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
+            int gmx_unused  *global_atom_index)
 {
     real vtot = 0;
     int  ai, aj, ak, al, i, k, type, t1, t2, t3;
@@ -2677,13 +2677,13 @@ real dihres(int nbonds,
 }
 
 
-real unimplemented(int nbonds,
-                   const t_iatom forceatoms[], const t_iparams forceparams[],
-                   const rvec x[], rvec f[], rvec fshift[],
-                   const t_pbc *pbc, const t_graph *g,
-                   real lambda, real *dvdlambda,
-                   const t_mdatoms *md, t_fcdata *fcd,
-                   int *global_atom_index)
+real unimplemented(int gmx_unused nbonds,
+                   const t_iatom gmx_unused forceatoms[], const t_iparams gmx_unused forceparams[],
+                   const rvec gmx_unused x[], rvec gmx_unused f[], rvec gmx_unused fshift[],
+                   const t_pbc gmx_unused *pbc, const t_graph  gmx_unused *g,
+                   real gmx_unused lambda, real gmx_unused *dvdlambda,
+                   const t_mdatoms  gmx_unused *md, t_fcdata gmx_unused *fcd,
+                   int gmx_unused *global_atom_index)
 {
     gmx_impl("*** you are using a not implemented function");
 
@@ -2695,8 +2695,8 @@ real rbdihs(int nbonds,
             const rvec x[], rvec f[], rvec fshift[],
             const t_pbc *pbc, const t_graph *g,
             real lambda, real *dvdlambda,
-            const t_mdatoms *md, t_fcdata *fcd,
-            int *global_atom_index)
+            const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
+            int gmx_unused *global_atom_index)
 {
     const real c0 = 0.0, c1 = 1.0, c2 = 2.0, c3 = 3.0, c4 = 4.0, c5 = 5.0;
     int        type, ai, aj, ak, al, i, j;
@@ -2838,9 +2838,9 @@ real cmap_dihs(int nbonds,
                const gmx_cmap_t *cmap_grid,
                const rvec x[], rvec f[], rvec fshift[],
                const t_pbc *pbc, const t_graph *g,
-               real lambda, real *dvdlambda,
-               const t_mdatoms *md, t_fcdata *fcd,
-               int *global_atom_index)
+               real gmx_unused lambda, real gmx_unused *dvdlambda,
+               const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
+               int  gmx_unused *global_atom_index)
 {
     int         i, j, k, n, idx;
     int         ai, aj, ak, al, am;
@@ -3278,8 +3278,8 @@ real g96bonds(int nbonds,
               const rvec x[], rvec f[], rvec fshift[],
               const t_pbc *pbc, const t_graph *g,
               real lambda, real *dvdlambda,
-              const t_mdatoms *md, t_fcdata *fcd,
-              int *global_atom_index)
+              const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
+              int gmx_unused *global_atom_index)
 {
     int  i, m, ki, ai, aj, type;
     real dr2, fbond, vbond, fij, vtot;
@@ -3348,8 +3348,8 @@ real g96angles(int nbonds,
                const rvec x[], rvec f[], rvec fshift[],
                const t_pbc *pbc, const t_graph *g,
                real lambda, real *dvdlambda,
-               const t_mdatoms *md, t_fcdata *fcd,
-               int *global_atom_index)
+               const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
+               int gmx_unused *global_atom_index)
 {
     int  i, ai, aj, ak, type, m, t1, t2;
     rvec r_ij, r_kj;
@@ -3419,9 +3419,9 @@ real cross_bond_bond(int nbonds,
                      const t_iatom forceatoms[], const t_iparams forceparams[],
                      const rvec x[], rvec f[], rvec fshift[],
                      const t_pbc *pbc, const t_graph *g,
-                     real lambda, real *dvdlambda,
-                     const t_mdatoms *md, t_fcdata *fcd,
-                     int *global_atom_index)
+                     real gmx_unused lambda, real gmx_unused *dvdlambda,
+                     const t_mdatoms gmx_unused *md, t_fcdata gmx_unused  *fcd,
+                     int gmx_unused *global_atom_index)
 {
     /* Potential from Lawrence and Skimmer, Chem. Phys. Lett. 372 (2003)
      * pp. 842-847
@@ -3493,9 +3493,9 @@ real cross_bond_angle(int nbonds,
                       const t_iatom forceatoms[], const t_iparams forceparams[],
                       const rvec x[], rvec f[], rvec fshift[],
                       const t_pbc *pbc, const t_graph *g,
-                      real lambda, real *dvdlambda,
-                      const t_mdatoms *md, t_fcdata *fcd,
-                      int *global_atom_index)
+                      real gmx_unused lambda, real gmx_unused *dvdlambda,
+                      const t_mdatoms gmx_unused *md, t_fcdata gmx_unused *fcd,
+                      int gmx_unused *global_atom_index)
 {
     /* Potential from Lawrence and Skimmer, Chem. Phys. Lett. 372 (2003)
      * pp. 842-847
@@ -3618,8 +3618,8 @@ real tab_bonds(int nbonds,
                const rvec x[], rvec f[], rvec fshift[],
                const t_pbc *pbc, const t_graph *g,
                real lambda, real *dvdlambda,
-               const t_mdatoms *md, t_fcdata *fcd,
-               int *global_atom_index)
+               const t_mdatoms gmx_unused *md, t_fcdata *fcd,
+               int gmx_unused  *global_atom_index)
 {
     int  i, m, ki, ai, aj, type, table;
     real dr, dr2, fbond, vbond, fij, vtot;
@@ -3682,8 +3682,8 @@ real tab_angles(int nbonds,
                 const rvec x[], rvec f[], rvec fshift[],
                 const t_pbc *pbc, const t_graph *g,
                 real lambda, real *dvdlambda,
-                const t_mdatoms *md, t_fcdata *fcd,
-                int *global_atom_index)
+                const t_mdatoms gmx_unused  *md, t_fcdata *fcd,
+                int gmx_unused *global_atom_index)
 {
     int  i, ai, aj, ak, t1, t2, type, table;
     rvec r_ij, r_kj;
@@ -3766,8 +3766,8 @@ real tab_dihs(int nbonds,
               const rvec x[], rvec f[], rvec fshift[],
               const t_pbc *pbc, const t_graph *g,
               real lambda, real *dvdlambda,
-              const t_mdatoms *md, t_fcdata *fcd,
-              int *global_atom_index)
+              const t_mdatoms gmx_unused *md, t_fcdata *fcd,
+              int gmx_unused *global_atom_index)
 {
     int  i, type, ai, aj, ak, al, table;
     int  t1, t2, t3;
@@ -4080,7 +4080,7 @@ static real calc_one_bond(FILE *fplog, int thread,
                           rvec x[], rvec f[], rvec fshift[],
                           t_forcerec *fr,
                           const t_pbc *pbc, const t_graph *g,
-                          gmx_enerdata_t *enerd, gmx_grppairener_t *grpp,
+                          gmx_enerdata_t gmx_unused *enerd, gmx_grppairener_t *grpp,
                           t_nrnb *nrnb,
                           real *lambda, real *dvdl,
                           const t_mdatoms *md, t_fcdata *fcd,
@@ -4198,13 +4198,13 @@ static real calc_one_bond(FILE *fplog, int thread,
    to reduce duplication.
  */
 
-static real calc_one_bond_foreign(FILE *fplog, int ftype, const t_idef *idef,
+static real calc_one_bond_foreign(FILE gmx_unused *fplog, int ftype, const t_idef *idef,
                                   rvec x[], rvec f[], t_forcerec *fr,
                                   const t_pbc *pbc, const t_graph *g,
                                   gmx_grppairener_t *grpp, t_nrnb *nrnb,
                                   real *lambda, real *dvdl,
                                   const t_mdatoms *md, t_fcdata *fcd,
-                                  int *global_atom_index, gmx_bool bPrintSepPot)
+                                  int *global_atom_index, gmx_bool gmx_unused bPrintSepPot)
 {
     int      ind, nat1, nbonds, efptFTYPE, nbonds_np;
     real     v = 0;
@@ -4277,7 +4277,7 @@ void calc_bonds(FILE *fplog, const gmx_multisim_t *ms,
                 real *lambda,
                 const t_mdatoms *md,
                 t_fcdata *fcd, int *global_atom_index,
-                t_atomtypes *atype, gmx_genborn_t *born,
+                t_atomtypes gmx_unused *atype, gmx_genborn_t gmx_unused *born,
                 int force_flags,
                 gmx_bool bPrintSepPot, gmx_large_int_t step)
 {
index b68a51532e40817f791fd3384d9ec22354b38359..4f0277d6cdb5a670a9c4cc9c1fe5f817642e0ee0 100644 (file)
@@ -145,7 +145,7 @@ void calc_chargegroup_radii(const gmx_mtop_t *mtop, rvec *x,
     *rcoul2 = sqrt(r2c2);
 }
 
-void calc_cgcm(FILE *fplog, int cg0, int cg1, t_block *cgs,
+void calc_cgcm(FILE gmx_unused *fplog, int cg0, int cg1, t_block *cgs,
                rvec pos[], rvec cg_cm[])
 {
     int      icg, k, k0, k1, d;
@@ -189,7 +189,7 @@ void calc_cgcm(FILE *fplog, int cg0, int cg1, t_block *cgs,
     }
 }
 
-void put_charge_groups_in_box(FILE *fplog, int cg0, int cg1,
+void put_charge_groups_in_box(FILE gmx_unused *fplog, int cg0, int cg1,
                               int ePBC, matrix box, t_block *cgs,
                               rvec pos[], rvec cg_cm[])
 
index 0e8876c0a7a3df734678fa0abec070aa12a37495..23aa493db585568c5808b5a6bcd952e3759bdaf9 100644 (file)
@@ -283,7 +283,7 @@ static void do_cpt_step_err(XDR *xd, const char *desc, gmx_large_int_t *i, FILE
     bool_t res = 0;
     char   buf[STEPSTRSIZE];
 
-    res = xdr_gmx_large_int(xd, i, "reading checkpoint file");
+    res = xdr_gmx_large_int(xd, i);
     if (res == 0)
     {
         cp_error();
@@ -309,7 +309,7 @@ static void do_cpt_double_err(XDR *xd, const char *desc, double *f, FILE *list)
     }
 }
 
-static void do_cpt_real_err(XDR *xd, const char *desc, real *f)
+static void do_cpt_real_err(XDR *xd, real *f)
 {
     bool_t res = 0;
 
@@ -332,7 +332,7 @@ static void do_cpt_n_rvecs_err(XDR *xd, const char *desc, int n, rvec f[], FILE
     {
         for (j = 0; j < DIM; j++)
         {
-            do_cpt_real_err(xd, desc, &f[i][j]);
+            do_cpt_real_err(xd, &f[i][j]);
         }
     }
 
@@ -949,7 +949,7 @@ static void do_cpt_header(XDR *xd, gmx_bool bRead, int *file_version,
     }
 }
 
-static int do_cpt_footer(XDR *xd, gmx_bool bRead, int file_version)
+static int do_cpt_footer(XDR *xd, int file_version)
 {
     bool_t res = 0;
     int    magic;
@@ -971,8 +971,7 @@ static int do_cpt_footer(XDR *xd, gmx_bool bRead, int file_version)
     return 0;
 }
 
-static int do_cpt_state(XDR *xd, gmx_bool bRead,
-                        int fflags, t_state *state,
+static int do_cpt_state(XDR *xd, int fflags, t_state *state,
                         gmx_bool bReadRNG, FILE *list)
 {
     int    sflags;
@@ -1042,8 +1041,7 @@ static int do_cpt_state(XDR *xd, gmx_bool bRead,
     return ret;
 }
 
-static int do_cpt_ekinstate(XDR *xd, gmx_bool bRead,
-                            int fflags, ekinstate_t *ekins,
+static int do_cpt_ekinstate(XDR *xd, int fflags, ekinstate_t *ekins,
                             FILE *list)
 {
     int  i;
@@ -1178,7 +1176,7 @@ static int do_cpt_enerhist(XDR *xd, gmx_bool bRead,
     return ret;
 }
 
-static int do_cpt_df_hist(XDR *xd, gmx_bool bRead, int fflags, df_history_t *dfhist, FILE *list)
+static int do_cpt_df_hist(XDR *xd, int fflags, df_history_t *dfhist, FILE *list)
 {
     int  i, nlambda;
     int  ret;
@@ -1532,10 +1530,10 @@ void write_checkpoint(const char *fn, gmx_bool bNumberAndKeep,
     sfree(bhost);
     sfree(fprog);
 
-    if ((do_cpt_state(gmx_fio_getxdr(fp), FALSE, state->flags, state, TRUE, NULL) < 0)        ||
-        (do_cpt_ekinstate(gmx_fio_getxdr(fp), FALSE, flags_eks, &state->ekinstate, NULL) < 0) ||
+    if ((do_cpt_state(gmx_fio_getxdr(fp), state->flags, state, TRUE, NULL) < 0)        ||
+        (do_cpt_ekinstate(gmx_fio_getxdr(fp), flags_eks, &state->ekinstate, NULL) < 0) ||
         (do_cpt_enerhist(gmx_fio_getxdr(fp), FALSE, flags_enh, &state->enerhist, NULL) < 0)  ||
-        (do_cpt_df_hist(gmx_fio_getxdr(fp), FALSE, flags_dfh, &state->dfhist, NULL) < 0)  ||
+        (do_cpt_df_hist(gmx_fio_getxdr(fp), flags_dfh, &state->dfhist, NULL) < 0)  ||
         (do_cpt_EDstate(gmx_fio_getxdr(fp), FALSE, &state->edsamstate, NULL) < 0)      ||
         (do_cpt_files(gmx_fio_getxdr(fp), FALSE, &outputfiles, &noutputfiles, NULL,
                       file_version) < 0))
@@ -1543,7 +1541,7 @@ void write_checkpoint(const char *fn, gmx_bool bNumberAndKeep,
         gmx_file("Cannot read/write checkpoint; corrupt file, or maybe you are out of disk space?");
     }
 
-    do_cpt_footer(gmx_fio_getxdr(fp), FALSE, file_version);
+    do_cpt_footer(gmx_fio_getxdr(fp), file_version);
 
     /* we really, REALLY, want to make sure to physically write the checkpoint,
        and all the files it depends on, out to disk. Because we've
@@ -1948,15 +1946,14 @@ static void read_checkpoint(const char *fn, FILE **pfplog,
                         cr, bPartDecomp, nppnodes_f, npmenodes_f, dd_nc, dd_nc_f);
         }
     }
-    ret             = do_cpt_state(gmx_fio_getxdr(fp), TRUE, fflags, state, *bReadRNG, NULL);
+    ret             = do_cpt_state(gmx_fio_getxdr(fp), fflags, state, *bReadRNG, NULL);
     *init_fep_state = state->fep_state;  /* there should be a better way to do this than setting it here.
                                             Investigate for 5.0. */
     if (ret)
     {
         cp_error();
     }
-    ret = do_cpt_ekinstate(gmx_fio_getxdr(fp), TRUE,
-                           flags_eks, &state->ekinstate, NULL);
+    ret = do_cpt_ekinstate(gmx_fio_getxdr(fp), flags_eks, &state->ekinstate, NULL);
     if (ret)
     {
         cp_error();
@@ -1990,8 +1987,7 @@ static void read_checkpoint(const char *fn, FILE **pfplog,
         state->enerhist.nsum_sim = *step;
     }
 
-    ret = do_cpt_df_hist(gmx_fio_getxdr(fp), TRUE,
-                         flags_dfh, &state->dfhist, NULL);
+    ret = do_cpt_df_hist(gmx_fio_getxdr(fp), flags_dfh, &state->dfhist, NULL);
     if (ret)
     {
         cp_error();
@@ -2003,7 +1999,7 @@ static void read_checkpoint(const char *fn, FILE **pfplog,
         cp_error();
     }
 
-    ret = do_cpt_footer(gmx_fio_getxdr(fp), TRUE, file_version);
+    ret = do_cpt_footer(gmx_fio_getxdr(fp), file_version);
     if (ret)
     {
         cp_error();
@@ -2218,13 +2214,12 @@ static void read_checkpoint_data(t_fileio *fp, int *simulation_part,
                   &(state->dfhist.nlambda), &state->flags, &flags_eks, &flags_enh, &flags_dfh,
                   &state->edsamstate.nED, NULL);
     ret =
-        do_cpt_state(gmx_fio_getxdr(fp), TRUE, state->flags, state, bReadRNG, NULL);
+        do_cpt_state(gmx_fio_getxdr(fp), state->flags, state, bReadRNG, NULL);
     if (ret)
     {
         cp_error();
     }
-    ret = do_cpt_ekinstate(gmx_fio_getxdr(fp), TRUE,
-                           flags_eks, &state->ekinstate, NULL);
+    ret = do_cpt_ekinstate(gmx_fio_getxdr(fp), flags_eks, &state->ekinstate, NULL);
     if (ret)
     {
         cp_error();
@@ -2235,8 +2230,7 @@ static void read_checkpoint_data(t_fileio *fp, int *simulation_part,
     {
         cp_error();
     }
-    ret = do_cpt_df_hist(gmx_fio_getxdr(fp), TRUE,
-                         flags_dfh, &state->dfhist, NULL);
+    ret = do_cpt_df_hist(gmx_fio_getxdr(fp), flags_dfh, &state->dfhist, NULL);
     if (ret)
     {
         cp_error();
@@ -2262,7 +2256,7 @@ static void read_checkpoint_data(t_fileio *fp, int *simulation_part,
         cp_error();
     }
 
-    ret = do_cpt_footer(gmx_fio_getxdr(fp), TRUE, file_version);
+    ret = do_cpt_footer(gmx_fio_getxdr(fp), file_version);
     if (ret)
     {
         cp_error();
@@ -2359,13 +2353,12 @@ void list_checkpoint(const char *fn, FILE *out)
                   &state.natoms, &state.ngtc, &state.nnhpres, &state.nhchainlength,
                   &(state.dfhist.nlambda), &state.flags,
                   &flags_eks, &flags_enh, &flags_dfh, &state.edsamstate.nED, out);
-    ret = do_cpt_state(gmx_fio_getxdr(fp), TRUE, state.flags, &state, TRUE, out);
+    ret = do_cpt_state(gmx_fio_getxdr(fp), state.flags, &state, TRUE, out);
     if (ret)
     {
         cp_error();
     }
-    ret = do_cpt_ekinstate(gmx_fio_getxdr(fp), TRUE,
-                           flags_eks, &state.ekinstate, out);
+    ret = do_cpt_ekinstate(gmx_fio_getxdr(fp), flags_eks, &state.ekinstate, out);
     if (ret)
     {
         cp_error();
@@ -2376,8 +2369,7 @@ void list_checkpoint(const char *fn, FILE *out)
     if (ret == 0)
     {
         init_df_history(&state.dfhist, state.dfhist.nlambda, 0); /* reinitialize state with correct sizes */
-        ret = do_cpt_df_hist(gmx_fio_getxdr(fp), TRUE,
-                             flags_dfh, &state.dfhist, out);
+        ret = do_cpt_df_hist(gmx_fio_getxdr(fp), flags_dfh, &state.dfhist, out);
     }
 
     if (ret == 0)
@@ -2392,7 +2384,7 @@ void list_checkpoint(const char *fn, FILE *out)
 
     if (ret == 0)
     {
-        ret = do_cpt_footer(gmx_fio_getxdr(fp), TRUE, file_version);
+        ret = do_cpt_footer(gmx_fio_getxdr(fp), file_version);
     }
 
     if (ret)
index e6727f6cc78b479a474600a0fb94af380a5cdda2..b54c0b409119c8f99fc4903fd4fb251f13fd9d2b 100644 (file)
@@ -372,9 +372,9 @@ void calc_disres_R_6(const gmx_multisim_t *ms,
 real ta_disres(int nfa, const t_iatom forceatoms[], const t_iparams ip[],
                const rvec x[], rvec f[], rvec fshift[],
                const t_pbc *pbc, const t_graph *g,
-               real lambda, real *dvdlambda,
-               const t_mdatoms *md, t_fcdata *fcd,
-               int *global_atom_index)
+               real gmx_unused lambda, real gmx_unused *dvdlambda,
+               const t_mdatoms gmx_unused *md, t_fcdata *fcd,
+               int gmx_unused *global_atom_index)
 {
     const real      sixth       = 1.0/6.0;
     const real      seven_three = 7.0/3.0;
index f7eea7f2d9ef5861a13598fceaed840c7a9ae6b5..4b6b790d52a6d8c8ea5dda9a3e8f8350006ed6e1 100644 (file)
@@ -83,8 +83,7 @@ real calc_ewaldcoeff(real rc, real dtol)
 
 
 
-real ewald_LRcorrection(FILE *fplog,
-                        int start, int end,
+real ewald_LRcorrection(int start, int end,
                         t_commrec *cr, int thread, t_forcerec *fr,
                         real *chargeA, real *chargeB,
                         gmx_bool calc_excl_corr,
index b0b4e74cd65ac8a12ea721a5313761311e3b6a5d..56f020014789cfe1dd9d87b39cd9ec0963ccc590 100644 (file)
@@ -59,7 +59,7 @@ static const char * invalid_gpuid_hint =
 /* FW decl. */
 void limit_num_gpus_used(gmx_hw_info_t *hwinfo, int count);
 
-static void sprint_gpus(char *sbuf, const gmx_gpu_info_t *gpu_info, gmx_bool bPrintAll)
+static void sprint_gpus(char *sbuf, const gmx_gpu_info_t *gpu_info)
 {
     int      i, ndev;
     char     stmp[STRLEN];
@@ -99,7 +99,7 @@ static void print_gpu_detection_stats(FILE                 *fplog,
 
     if (ngpu > 0)
     {
-        sprint_gpus(stmp, gpu_info, TRUE);
+        sprint_gpus(stmp, gpu_info);
         md_print_warn(cr, fplog, "%d GPU%s detected%s:\n%s\n",
                       ngpu, (ngpu > 1) ? "s" : "", onhost, stmp);
     }
@@ -173,12 +173,6 @@ static void parse_gpu_id_plain_string(const char *idstr, int *nid, int *idlist)
     }
 }
 
-static void parse_gpu_id_csv_string(const char *idstr, int *nid, int *idlist)
-{
-    /* XXX implement cvs format to support more than 10 different GPUs in a box. */
-    gmx_incons("Not implemented yet");
-}
-
 void gmx_check_hw_runconf_consistency(FILE *fplog, gmx_hw_info_t *hwinfo,
                                       const t_commrec *cr, int ntmpi_requested,
                                       gmx_bool bUseGPU)
@@ -407,7 +401,7 @@ void gmx_check_hw_runconf_consistency(FILE *fplog, gmx_hw_info_t *hwinfo,
  * We assume that this is equal with the number of CPUs reported to be
  * online by the OS at the time of the call.
  */
-static int get_nthreads_hw_avail(FILE *fplog, const t_commrec *cr)
+static int get_nthreads_hw_avail(FILE gmx_unused *fplog, const t_commrec gmx_unused *cr)
 {
     int ret = 0;
 
index f9d3947547a21494d6672c3d95ecd06886d852c4..fe3eae1b43754cf2e4b712678331573df2e30cfa 100644 (file)
@@ -239,7 +239,7 @@ void gmx_omp_nthreads_init(FILE *fplog, t_commrec *cr,
                            int nthreads_hw_avail,
                            int omp_nthreads_req,
                            int omp_nthreads_pme_req,
-                           gmx_bool bThisNodePMEOnly,
+                           gmx_bool gmx_unused bThisNodePMEOnly,
                            gmx_bool bFullOmpSupport)
 {
     int      nth, nth_pmeonly, gmx_maxth, nppn;
index ef96a0bb6bd7dbccaa82a4054d67887594891900..ce89e4130f6a251dc31b787c0b25134ced6e5976 100644 (file)
@@ -183,9 +183,7 @@ void
 gmx_set_thread_affinity(FILE                *fplog,
                         const t_commrec     *cr,
                         gmx_hw_opt_t        *hw_opt,
-                        int                  nthreads_pme,
-                        const gmx_hw_info_t *hwinfo,
-                        const t_inputrec    *inputrec)
+                        const gmx_hw_info_t *hwinfo)
 {
     int        nth_affinity_set, thread_id_node, thread_id,
                nthread_local, nthread_node, nthread_hw_max, nphyscore;
index 8784fc054583270aff8568ea435917858ba4d192..d8d3110461989a8e23eeee3d573d187a4ec16cfb 100644 (file)
@@ -203,8 +203,7 @@ const char *gmx_fio_dbgstr(t_fileio *fio, const char *desc, char *buf)
 
 
 /* check the number of items given against the type */
-void gmx_fio_check_nitem(t_fileio *fio, int eio, int nitem, const char *file,
-                         int line)
+void gmx_fio_check_nitem(int eio, int nitem, const char *file, int line)
 {
     if ((nitem != 1) && !((eio == eioNRVEC) || (eio == eioNUCHAR)))
     {
@@ -825,7 +824,7 @@ static int gmx_fio_int_get_file_position(t_fileio *fio, gmx_off_t *offset)
     return 0;
 }
 
-int gmx_fio_check_file_position(t_fileio *fio)
+int gmx_fio_check_file_position(t_fileio gmx_unused *fio)
 {
     /* If gmx_off_t is 4 bytes we can not store file offset > 2 GB.
      * If we do not have ftello, we will play it safe.
index fe6c696c5270bde2df24f96192e45899020c0b82..33ac9f5d813eac387bf6f46a80e36b03e5367315 100644 (file)
@@ -86,15 +86,15 @@ const t_iotype dummy_iotype = {do_dummyread, do_dummywrite};
 
 
 
-static gmx_bool do_dummyread(t_fileio *fio, void *item, int nitem, int eio,
-                             const char *desc, const char *srcfile, int line)
+static gmx_bool do_dummyread(t_fileio gmx_unused *fio, void gmx_unused *item, int gmx_unused nitem, int gmx_unused eio,
+                             const char gmx_unused *desc, const char gmx_unused *srcfile, int gmx_unused line)
 {
     gmx_fatal(FARGS, "File type not set!");
     return FALSE;
 }
 
-static gmx_bool do_dummywrite(t_fileio *fio, const void *item, int nitem, int eio,
-                              const char *desc, const char *srcfile, int line)
+static gmx_bool do_dummywrite(t_fileio gmx_unused *fio, const void gmx_unused *item, int gmx_unused nitem, int gmx_unused eio,
+                              const char gmx_unused *desc, const char gmx_unused *srcfile, int gmx_unused line)
 {
     gmx_fatal(FARGS, "File type not set!");
     return FALSE;
@@ -159,7 +159,7 @@ static gmx_bool do_ascwrite(t_fileio *fio, const void *item, int nitem, int eio,
     unsigned char *ucptr;
     FILE          *fp = fio->fp;
 
-    gmx_fio_check_nitem(fio, eio, nitem, srcfile, line);
+    gmx_fio_check_nitem(eio, nitem, srcfile, line);
     switch (eio)
     {
         case eioREAL:
@@ -303,7 +303,7 @@ static gmx_bool do_ascread(t_fileio *fio, void *item, int nitem, int eio,
 #define NEXT_ITEM_BUF_LEN 128
     char            ni_buf[NEXT_ITEM_BUF_LEN];
 
-    gmx_fio_check_nitem(fio, eio, nitem, srcfile, line);
+    gmx_fio_check_nitem(eio, nitem, srcfile, line);
     switch (eio)
     {
         case eioREAL:
index 641897e2509703e5d39cbd528531cb38765b0f00..72e5bb3a76ba2ea02c4f7bc62a4717cb01d036a8 100644 (file)
@@ -77,7 +77,7 @@ static gmx_bool do_binwrite(t_fileio *fio, const void *item, int nitem, int eio,
     size_t size = 0, wsize;
     int    ssize;
 
-    gmx_fio_check_nitem(fio, eio, nitem, srcfile, line);
+    gmx_fio_check_nitem(eio, nitem, srcfile, line);
     switch (eio)
     {
         case eioREAL:
@@ -140,7 +140,7 @@ static gmx_bool do_binread(t_fileio *fio, void *item, int nitem, int eio,
     size_t size = 0, rsize;
     int    ssize;
 
-    gmx_fio_check_nitem(fio, eio, nitem, srcfile, line);
+    gmx_fio_check_nitem(eio, nitem, srcfile, line);
     switch (eio)
     {
         case eioREAL:
index 38783eb99938f131d4ef9b33066741c7af6b3035..91fc7930c78ad14bb926e7a3d3e6c2bcde1dc455 100644 (file)
@@ -118,7 +118,7 @@ extern const char    *eioNames[eioNR];
 /* make a debug string if that is requested in the fio */
 const char *gmx_fio_dbgstr(t_fileio *fio, const char *desc, char *buf);
 /* check the number of items against the allowed number of items */
-void gmx_fio_check_nitem(t_fileio *fio, int eio, int nitem, const char *file,
+void gmx_fio_check_nitem(int eio, int nitem, const char *file,
                          int line);
 /* check the output type against allowed values */
 void gmx_fio_fe(t_fileio *fio, int eio, const char *desc, const char *srcfile,
index a13c545747a3aacd5268399a89d587d3128f60ef..35a04b26b2115a800ab1f68dc503473948e22134 100644 (file)
@@ -88,7 +88,7 @@ static gmx_bool do_xdr(t_fileio *fio, void *item, int nitem, int eio,
     double          d = 0;
     float           f = 0;
 
-    gmx_fio_check_nitem(fio, eio, nitem, srcfile, line);
+    gmx_fio_check_nitem(eio, nitem, srcfile, line);
     switch (eio)
     {
         case eioREAL:
@@ -158,7 +158,7 @@ static gmx_bool do_xdr(t_fileio *fio, void *item, int nitem, int eio,
             {
                 sdum = *(gmx_large_int_t *) item;
             }
-            res = xdr_gmx_large_int(fio->xdr, &sdum, NULL);
+            res = xdr_gmx_large_int(fio->xdr, &sdum);
             if (item)
             {
                 *(gmx_large_int_t *) item = sdum;
index 750731866a6fd7ed39b5a1cf010d6f88b3333062..05b262d5c40ffb7036e62ec89d8c7215edba7354 100644 (file)
@@ -506,7 +506,7 @@ void init_multisystem(t_commrec *cr, int nsim, char **multidirs,
     }
 }
 
-t_commrec *init_par(int *argc, char ***argv_ptr)
+t_commrec *init_par(int gmx_unused *argc, char ***argv_ptr)
 {
     t_commrec    *cr;
     char        **argv;
index 430462624beff5921088586f28cd5180fb2ecbea..5eb8bd641d85d295354ccd988db3e12db537d0f6 100644 (file)
@@ -627,7 +627,7 @@ static void mk_1shift_screw(matrix box, rvec hbox,
     }
 }
 
-static int mk_grey(FILE *log, int nnodes, egCol egc[], t_graph *g, int *AtomI,
+static int mk_grey(egCol egc[], t_graph *g, int *AtomI,
                    int npbcdim, matrix box, rvec x[], int *nerror)
 {
     int          m, j, ng, ai, aj, g0;
@@ -807,7 +807,7 @@ void mk_mshift(FILE *log, t_graph *g, int ePBC, matrix box, rvec x[])
             /* Make all the neighbours of this black node grey
              * and set their periodicity
              */
-            ng = mk_grey(log, nnodes, g->egc, g, &fG, npbcdim, box, x, &nerror);
+            ng = mk_grey(g->egc, g, &fG, npbcdim, box, x, &nerror);
             /* ng is the number of white nodes made grey */
             nG += ng;
             nW -= ng;
index 6eeeacdc0b0995b3bfadb332551b96d7262b1346..1d8cef3f76ac2344018f19e6b8e27bfdd3cf69f2 100644 (file)
@@ -805,8 +805,7 @@ void gmx_mtop_make_atomic_charge_groups(gmx_mtop_t *mtop,
  * The cat routines below are old code from src/kernel/topcat.c
  */
 
-static void blockcat(t_block *dest, t_block *src, int copies,
-                     int dnum, int snum)
+static void blockcat(t_block *dest, t_block *src, int copies)
 {
     int i, j, l, nra, size;
 
@@ -1013,7 +1012,7 @@ static void gen_local_top(const gmx_mtop_t *mtop, const t_inputrec *ir,
         srcnr  = molt->atoms.nr;
         destnr = natoms;
 
-        blockcat(&top->cgs, &molt->cgs, molb->nmol, destnr, srcnr);
+        blockcat(&top->cgs, &molt->cgs, molb->nmol);
 
         blockacat(&top->excls, &molt->excls, molb->nmol, destnr, srcnr);
 
index 14926b731aed1b2d7d607c4dacc83d7a9085852d..fbc746290f65639245a9d53d02447b7d9a9ab544 100644 (file)
@@ -64,7 +64,7 @@ gmx_bool gmx_mpi_initialized(void)
 #endif
 }
 
-int gmx_setup(int *argc, char **argv, int *nnodes)
+int gmx_setup(int gmx_unused *argc, char gmx_unused **argv, int *nnodes)
 {
 #ifndef GMX_MPI
     gmx_call("gmx_setup");
@@ -177,7 +177,7 @@ int gmx_hostname_num()
 #endif
 }
 
-void gmx_setup_nodecomm(FILE *fplog, t_commrec *cr)
+void gmx_setup_nodecomm(FILE gmx_unused *fplog, t_commrec *cr)
 {
     gmx_nodecomm_t *nc;
     int             n, rank, hostnum, ng, ni;
@@ -359,7 +359,7 @@ void gmx_barrier(const t_commrec *cr)
 #endif
 }
 
-void gmx_abort(int noderank, int nnodes, int errorno)
+void gmx_abort(int gmx_unused noderank, int gmx_unused nnodes, int gmx_unused errorno)
 {
 #ifndef GMX_MPI
     gmx_call("gmx_abort");
index 51eb50ce7275cbda4e597f89f387e9090c515010..c5bab6f30f09c0e2c3ce2681b4065fc55810dd66 100644 (file)
@@ -81,7 +81,7 @@ static void calc_dihs(t_xrama *xr)
     t_dih       *dd;
     gmx_rmpbc_t  gpbc = NULL;
 
-    gpbc = gmx_rmpbc_init(xr->idef, xr->ePBC, xr->natoms, xr->box);
+    gpbc = gmx_rmpbc_init(xr->idef, xr->ePBC, xr->natoms);
     gmx_rmpbc(gpbc, xr->natoms, xr->box, xr->x);
     gmx_rmpbc_done(gpbc);
 
@@ -97,7 +97,7 @@ static void calc_dihs(t_xrama *xr)
 
 gmx_bool new_data(t_xrama *xr)
 {
-    if (!read_next_x(xr->oenv, xr->traj, &xr->t, xr->natoms, xr->x, xr->box))
+    if (!read_next_x(xr->oenv, xr->traj, &xr->t, xr->x, xr->box))
     {
         return FALSE;
     }
index 16b1e9f894c737f92f34a07884a34ad282015af6..fa8dd0886bcf845c89cbdc2decde0501902dd0e4 100644 (file)
@@ -294,7 +294,7 @@ void print_nrnb(FILE *out, t_nrnb *nrnb)
     }
 }
 
-void _inc_nrnb(t_nrnb *nrnb, int enr, int inc, char *file, int line)
+void _inc_nrnb(t_nrnb *nrnb, int enr, int inc, char gmx_unused *file, int gmx_unused line)
 {
     nrnb->n[enr] += inc;
 #ifdef DEBUG_NRNB
@@ -383,10 +383,9 @@ void print_flop(FILE *out, t_nrnb *nrnb, double *nbfs, double *mflop)
     }
 }
 
-void print_perf(FILE *out, double nodetime, double realtime, int nprocs,
+void print_perf(FILE *out, double nodetime, double realtime,
                 gmx_large_int_t nsteps, real delta_t,
-                double nbfs, double mflop,
-                int omp_nth_pp)
+                double nbfs, double mflop)
 {
     real runtime;
 
index 4ac89a04e1d699e0e1a0d640bf5cae2d375654f6..a0c2a4faf0855fe2fc9054e7fa64587351112d53 100644 (file)
@@ -588,9 +588,9 @@ real calc_orires_dev(const gmx_multisim_t *ms,
 real orires(int nfa, const t_iatom forceatoms[], const t_iparams ip[],
             const rvec x[], rvec f[], rvec fshift[],
             const t_pbc *pbc, const t_graph *g,
-            real lambda, real *dvdlambda,
-            const t_mdatoms *md, t_fcdata *fcd,
-            int *global_atom_index)
+            real gmx_unused lambda, real gmx_unused *dvdlambda,
+            const t_mdatoms gmx_unused *md, t_fcdata *fcd,
+            int gmx_unused *global_atom_index)
 {
     atom_id             ai, aj;
     int                 fa, d, i, type, ex, power, ki = CENTRAL;
index 1002e7d5f717fa3ca7ffd80b7cf938ea3029ba74..6cc4eb43781cc333a9dcacfbae44d43776494fc2 100644 (file)
@@ -115,7 +115,7 @@ void maxwell_speed(real tempi, int seed, gmx_mtop_t *mtop, rvec v[])
     gmx_rng_destroy(rng);
 }
 
-real calc_cm(FILE *log, int natoms, real mass[], rvec x[], rvec v[],
+real calc_cm(int natoms, real mass[], rvec x[], rvec v[],
              rvec xcm, rvec vcm, rvec acm, matrix L)
 {
     rvec dx, a0;
@@ -179,7 +179,7 @@ real calc_cm(FILE *log, int natoms, real mass[], rvec x[], rvec v[],
     return tm;
 }
 
-void stop_cm(FILE *log, int natoms, real mass[], rvec x[], rvec v[])
+void stop_cm(FILE gmx_unused *log, int natoms, real mass[], rvec x[], rvec v[])
 {
     rvec   xcm, vcm, acm;
     tensor L;
@@ -188,7 +188,7 @@ void stop_cm(FILE *log, int natoms, real mass[], rvec x[], rvec v[])
 #ifdef DEBUG
     fprintf(log, "stopping center of mass motion...\n");
 #endif
-    (void)calc_cm(log, natoms, mass, x, v, xcm, vcm, acm, L);
+    (void)calc_cm(natoms, mass, x, v, xcm, vcm, acm, L);
 
     /* Subtract center of mass velocity */
     for (i = 0; (i < natoms); i++)
index c88fb73b821b631d6ba128046fc912d51fd4da41..96f5be0affe927cdcc6f4178715d754928fe1e48 100644 (file)
@@ -55,7 +55,6 @@ static int search_einp(int ninp, const t_inpfile *inp, const char *name);
 
 
 t_inpfile *read_inpfile(const char *fn, int *ninp,
-                        char **cppopts,
                         warninp_t wi)
 {
     FILE      *in;
index 3560c53e0778f5776bce075706d1a900cf4cca4d..0a251ba5806cae7a6fdfcc378d5ebcd7abbee181 100644 (file)
@@ -101,8 +101,7 @@ static t_graph *gmx_rmpbc_get_graph(gmx_rmpbc_t gpbc, int ePBC, int natoms)
     return gr->gr;
 }
 
-gmx_rmpbc_t gmx_rmpbc_init(t_idef *idef, int ePBC, int natoms,
-                           matrix box)
+gmx_rmpbc_t gmx_rmpbc_init(t_idef *idef, int ePBC, int natoms)
 {
     gmx_rmpbc_t gpbc;
 
index 7cafc73c0435c75363288e1abb79b0bb5d364eb4..574bd3c49fa520a6f5fbc7d702e73bd5b8d78320 100644 (file)
@@ -530,7 +530,7 @@ extern int do_scattering_intensity (const char* fnTPS, const char* fnNDX,
         index_atp[i] = create_indexed_atom_type (red[i], isize[i]);
     }
 
-    sf_table = compute_scattering_factor_table (gmx_sf, (structure_factor_t *)sf, &nsftable);
+    sf_table = compute_scattering_factor_table (gmx_sf, (structure_factor_t *)sf);
 
 
     /* This is the main loop over frames */
@@ -718,7 +718,7 @@ extern void gmx_structurefactors_done(gmx_structurefactors_t *gsf)
 
 }
 
-extern real **compute_scattering_factor_table (gmx_structurefactors_t *gsf, structure_factor_t *sft, int *nsftable)
+extern real **compute_scattering_factor_table (gmx_structurefactors_t *gsf, structure_factor_t *sft)
 {
 /*
  *  this function build up a table of scattering factors for every atom
index 9f5aeb2e38502f2d46ce9949d5de06eafb01dbaa..75711d56d1e758c3bc03460efa4ed71b47b02890 100644 (file)
@@ -65,7 +65,7 @@ static tMPI_Thread_mutex_t shift_mutex = TMPI_THREAD_MUTEX_INITIALIZER;
 #endif
 
 
-void set_shift_consts(FILE *log, real r1, real rc, rvec box, t_forcerec *fr)
+void set_shift_consts(real r1, real rc, rvec box)
 {
 #ifdef GMX_THREAD_MPI
     /* at the very least we shouldn't allow multiple threads to set these
index a21cd8a32ffbe309f4b6f8ab5179cf4419831c6d..9ebdd67080d0348c6b8f337f124b6f9bedc71d50 100644 (file)
@@ -243,7 +243,7 @@ void *save_realloc(const char *name, const char *file, int line, void *ptr,
     return p;
 }
 
-void save_free(const char *name, const char *file, int line, void *ptr)
+void save_free(const char gmx_unused *name, const char gmx_unused *file, int gmx_unused line, void gmx_unused *ptr)
 {
 #ifdef DEBUG
     log_action(0, name, file, line, 0, 0, ptr);
index 80f12625643954a0e071e1a087e2628a3bd60c8b..d296581e0f173e9fdd6e3ffd42e138800daef02f 100644 (file)
@@ -481,7 +481,7 @@ static t_border *mk_border(FILE *fp, int natom, atom_id *invcgs,
     return bor;
 }
 
-static void split_blocks(FILE *fp, t_inputrec *ir, int nnodes,
+static void split_blocks(FILE *fp, int nnodes,
                          t_block *cgs, t_blocka *sblock, real capacity[],
                          int *multinr_cgs)
 {
@@ -600,7 +600,7 @@ static int sid_comp(const void *a, const void *b)
     }
 }
 
-static int mk_grey(int nnodes, egCol egc[], t_graph *g, int *AtomI,
+static int mk_grey(egCol egc[], t_graph *g, int *AtomI,
                    int maxsid, t_sid sid[])
 {
     int  j, ng, ai, aj, g0;
@@ -735,7 +735,7 @@ static int mk_sblocks(FILE *fp, t_graph *g, int maxsid, t_sid sid[])
             /* Make all the neighbours of this black node grey
              * and set their block number
              */
-            ng = mk_grey(nnodes, egc, g, &fG, maxsid, sid);
+            ng = mk_grey(egc, g, &fG, maxsid, sid);
             /* ng is the number of white nodes made grey */
             nG += ng;
             nW -= ng;
@@ -773,7 +773,7 @@ static int ms_comp(const void *a, const void *b)
     }
 }
 
-static int merge_sid(int i0, int at_start, int at_end, int nsid, t_sid sid[],
+static int merge_sid(int at_start, int at_end, int nsid, t_sid sid[],
                      t_blocka *sblock)
 {
     int          i, j, k, n, isid, ndel;
@@ -941,7 +941,7 @@ void gen_sblocks(FILE *fp, int at_start, int at_end,
      * part of the shake block too. There may be cases where blocks overlap
      * and they will have to be merged.
      */
-    nsid = merge_sid(i0, at_start, at_end, nsid, sid, sblock);
+    nsid = merge_sid(at_start, at_end, nsid, sid, sblock);
     /* Now sort the shake blocks again... */
     /*qsort(sid,natoms,(size_t)sizeof(sid[0]),sid_comp);*/
 
@@ -1116,7 +1116,7 @@ void split_top(FILE *fp, int nnodes, gmx_localtop_t *top, t_inputrec *ir, t_bloc
 #endif
     }
 
-    split_blocks(fp, ir, nnodes, &top->cgs, &sblock, capacity, multinr_cgs);
+    split_blocks(fp, nnodes, &top->cgs, &sblock, capacity, multinr_cgs);
 
     homeind = home_index(nnodes, &top->cgs, multinr_cgs);
 
index a4c39f0cd209ff82cefc89abc844695a466a6dd9..15453727731fc029f4b7fa5895deac217fb556dc 100644 (file)
@@ -142,7 +142,7 @@ gmx_bool bRmod_fd(double a, double b, double c, gmx_bool bDouble)
     }
 }
 
-int check_times2(real t, real t0, real tp, real tpp, gmx_bool bDouble)
+int check_times2(real t, real t0, gmx_bool bDouble)
 {
     int  r;
 
@@ -178,7 +178,7 @@ int check_times2(real t, real t0, real tp, real tpp, gmx_bool bDouble)
 
 int check_times(real t)
 {
-    return check_times2(t, t, t, t, FALSE);
+    return check_times2(t, t, FALSE);
 }
 
 
index 9bd27f9f00b48f8df1e4a3051c62bb50fc1116b2..7961ec24f8b033f8c75d110d80a836d23baa6bd5 100644 (file)
@@ -206,7 +206,7 @@ void open_symtab(t_symtab *symtab)
     symtab->symbuf = NULL;
 }
 
-void close_symtab(t_symtab *symtab)
+void close_symtab(t_symtab gmx_unused *symtab)
 {
 }
 
index 387d429a7d51f3a44a01b10f8e972ea50c3c897c..2999c66b23b7c031cf01a9ce7c7e40e52d570af5 100644 (file)
@@ -582,7 +582,7 @@ static void do_pull(t_fileio *fio, t_pull *pull, gmx_bool bRead, int file_versio
 }
 
 
-static void do_rotgrp(t_fileio *fio, t_rotgrp *rotg, gmx_bool bRead, int file_version)
+static void do_rotgrp(t_fileio *fio, t_rotgrp *rotg, gmx_bool bRead)
 {
     int      i;
 
@@ -611,7 +611,7 @@ static void do_rotgrp(t_fileio *fio, t_rotgrp *rotg, gmx_bool bRead, int file_ve
     gmx_fio_do_real(fio, rotg->PotAngle_step);
 }
 
-static void do_rot(t_fileio *fio, t_rot *rot, gmx_bool bRead, int file_version)
+static void do_rot(t_fileio *fio, t_rot *rot, gmx_bool bRead)
 {
     int g;
 
@@ -624,7 +624,7 @@ static void do_rot(t_fileio *fio, t_rot *rot, gmx_bool bRead, int file_version)
     }
     for (g = 0; g < rot->ngrp; g++)
     {
-        do_rotgrp(fio, &rot->grp[g], bRead, file_version);
+        do_rotgrp(fio, &rot->grp[g], bRead);
     }
 }
 
@@ -1357,7 +1357,7 @@ static void do_inputrec(t_fileio *fio, t_inputrec *ir, gmx_bool bRead,
             {
                 snew(ir->rot, 1);
             }
-            do_rot(fio, ir->rot, bRead, file_version);
+            do_rot(fio, ir->rot, bRead);
         }
     }
     else
@@ -1565,7 +1565,7 @@ static void do_inputrec(t_fileio *fio, t_inputrec *ir, gmx_bool bRead,
 }
 
 
-static void do_harm(t_fileio *fio, t_iparams *iparams, gmx_bool bRead)
+static void do_harm(t_fileio *fio, t_iparams *iparams)
 {
     gmx_fio_do_real(fio, iparams->harmonic.rA);
     gmx_fio_do_real(fio, iparams->harmonic.krA);
@@ -1591,7 +1591,7 @@ void do_iparams(t_fileio *fio, t_functype ftype, t_iparams *iparams,
         case F_G96BONDS:
         case F_HARMONIC:
         case F_IDIHS:
-            do_harm(fio, iparams, bRead);
+            do_harm(fio, iparams);
             if ((ftype == F_ANGRES || ftype == F_ANGRESZ) && bRead)
             {
                 /* Correct incorrect storage of parameters */
@@ -2358,7 +2358,7 @@ static void do_groups(t_fileio *fio, gmx_groups_t *groups,
 }
 
 static void do_atomtypes(t_fileio *fio, t_atomtypes *atomtypes, gmx_bool bRead,
-                         t_symtab *symtab, int file_version)
+                         int file_version)
 {
     int      i, j;
 
@@ -2553,8 +2553,7 @@ static void do_moltype(t_fileio *fio, gmx_moltype_t *molt, gmx_bool bRead,
     do_blocka(fio, &molt->excls, bRead, file_version);
 }
 
-static void do_molblock(t_fileio *fio, gmx_molblock_t *molb, gmx_bool bRead,
-                        int file_version)
+static void do_molblock(t_fileio *fio, gmx_molblock_t *molb, gmx_bool bRead)
 {
     int i;
 
@@ -2787,7 +2786,7 @@ static void do_mtop(t_fileio *fio, gmx_mtop_t *mtop, gmx_bool bRead,
     {
         for (mb = 0; mb < mtop->nmolblock; mb++)
         {
-            do_molblock(fio, &mtop->molblock[mb], bRead, file_version);
+            do_molblock(fio, &mtop->molblock[mb], bRead);
         }
         gmx_fio_do_int(fio, mtop->natoms);
     }
@@ -2800,7 +2799,7 @@ static void do_mtop(t_fileio *fio, gmx_mtop_t *mtop, gmx_bool bRead,
         mtop->molblock[0].nposres_xB = 0;
     }
 
-    do_atomtypes (fio, &(mtop->atomtypes), bRead, &(mtop->symtab), file_version);
+    do_atomtypes (fio, &(mtop->atomtypes), bRead, file_version);
     if (bRead && debug)
     {
         pr_atomtypes(debug, 0, "atomtypes", &mtop->atomtypes, TRUE);
@@ -2996,7 +2995,7 @@ static void do_tpxheader(t_fileio *fio, gmx_bool bRead, t_tpxheader *tpx,
 
     if ((fver <= tpx_incompatible_version) ||
         ((fver > tpx_version) && !TopOnlyOK) ||
-        (fgen > tpx_generation) || 
+        (fgen > tpx_generation) ||
         tpx_version == 80) /*80 was used by both 5.0-dev and 4.6-dev*/
     {
         gmx_fatal(FARGS, "reading tpx file (%s) version %d with version %d program",
index 90bb016eecea6db35805c1f1d5c8667d0495b9f7..c8784a53770b64cfb118d6daa6984784bce66378 100644 (file)
@@ -168,7 +168,7 @@ void pr_trnheader(FILE *fp, int indent, char *title, t_trnheader *sh)
     }
 }
 
-static gmx_bool do_htrn(t_fileio *fio, gmx_bool bRead, t_trnheader *sh,
+static gmx_bool do_htrn(t_fileio *fio, t_trnheader *sh,
                         rvec *box, rvec *x, rvec *v, rvec *f)
 {
     matrix   pv;
@@ -249,7 +249,7 @@ static gmx_bool do_trn(t_fileio *fio, gmx_bool bRead, int *step, real *t, real *
             gmx_file("symbol table in trn file");
         }
     }
-    bOK = do_htrn(fio, bRead, sh, box, x, v, f);
+    bOK = do_htrn(fio, sh, box, x, v, f);
 
     sfree(sh);
 
@@ -319,7 +319,7 @@ gmx_bool fread_trn(t_fileio *fio, int *step, real *t, real *lambda,
 gmx_bool fread_htrn(t_fileio *fio, t_trnheader *trn, rvec *box, rvec *x, rvec *v,
                     rvec *f)
 {
-    return do_htrn(fio, TRUE, trn, box, x, v, f);
+    return do_htrn(fio, trn, box, x, v, f);
 }
 
 t_fileio *open_trn(const char *fn, const char *mode)
index 46c9d001afc3186043098b441f66a1276d336a6a..367c2b121002ad508004f53168165544d247f943 100644 (file)
@@ -870,7 +870,7 @@ gmx_bool read_next_frame(const output_env_t oenv, t_trxstatus *status, t_trxfram
                 break;
             default:
 #ifdef GMX_USE_PLUGINS
-                bRet = read_next_vmd_frame(dummy, fr);
+                bRet = read_next_vmd_frame(fr);
 #else
                 gmx_fatal(FARGS, "DEATH HORROR in read_next_frame ftp=%s,status=%s",
                           ftp2ext(gmx_fio_getftp(status->fio)),
@@ -886,7 +886,7 @@ gmx_bool read_next_frame(const output_env_t oenv, t_trxstatus *status, t_trxfram
             bSkip = FALSE;
             if (!bMissingData)
             {
-                ct = check_times2(fr->time, fr->t0, fr->tpf, fr->tppf, fr->bDouble);
+                ct = check_times2(fr->time, fr->t0, fr->bDouble);
                 if (ct == 0 || ((fr->flags & TRX_DONT_SKIP) && ct < 0))
                 {
                     printcount(status, oenv, fr->time, FALSE);
@@ -1029,7 +1029,7 @@ int read_first_frame(const output_env_t oenv, t_trxstatus **status,
                     "GROMACS will now assume it to be a trajectory and will try to open it using the VMD plug-ins.\n"
                     "This will only work in case the VMD plugins are found and it is a trajectory format supported by VMD.\n", fn);
             gmx_fio_fp_close(fio); /*only close the file without removing FIO entry*/
-            if (!read_first_vmd_frame(&dummy, fn, fr, flags))
+            if (!read_first_vmd_frame(fn, fr))
             {
                 gmx_fatal(FARGS, "Not supported in read_first_frame: %s", fn);
             }
@@ -1082,7 +1082,7 @@ int read_first_x(const output_env_t oenv, t_trxstatus **status, const char *fn,
 }
 
 gmx_bool read_next_x(const output_env_t oenv, t_trxstatus *status, real *t,
-                     int natoms, rvec x[], matrix box)
+                     rvec x[], matrix box)
 {
     gmx_bool bRet;
 
index f5c3966b5f67b0eded1c2dc2b6d80655bd83c849..c65b8ff8a057c35f6efcb442ad4567a9318c8865 100644 (file)
@@ -563,7 +563,7 @@ static void pr_pullgrp(FILE *fp, int indent, int g, t_pullgrp *pg)
     PR("kB", pg->kB);
 }
 
-static void pr_simtempvals(FILE *fp, int indent, t_simtemp *simtemp, int n_lambda, gmx_bool bMDPformat)
+static void pr_simtempvals(FILE *fp, int indent, t_simtemp *simtemp, int n_lambda)
 {
     PR("simtemp_low", simtemp->simtemp_low);
     PR("simtemp_high", simtemp->simtemp_high);
@@ -571,7 +571,7 @@ static void pr_simtempvals(FILE *fp, int indent, t_simtemp *simtemp, int n_lambd
     pr_rvec(fp, indent, "simulated tempering temperatures", simtemp->temperatures, n_lambda, TRUE);
 }
 
-static void pr_expandedvals(FILE *fp, int indent, t_expanded *expand, int n_lambda, gmx_bool bMDPformat)
+static void pr_expandedvals(FILE *fp, int indent, t_expanded *expand, int n_lambda)
 {
 
     PI("nstexpanded", expand->nstexpanded);
@@ -843,7 +843,7 @@ void pr_inputrec(FILE *fp, int indent, const char *title, t_inputrec *ir,
         PS("bSimTemp", EBOOL(ir->bSimTemp));
         if (ir->bSimTemp)
         {
-            pr_simtempvals(fp, indent, ir->simtempvals, ir->fepvals->n_lambda, bMDPformat);
+            pr_simtempvals(fp, indent, ir->simtempvals, ir->fepvals->n_lambda);
         }
         PS("free-energy", EFEPTYPE(ir->efep));
         if (ir->efep != efepNO || ir->bSimTemp)
@@ -852,7 +852,7 @@ void pr_inputrec(FILE *fp, int indent, const char *title, t_inputrec *ir,
         }
         if (ir->bExpanded)
         {
-            pr_expandedvals(fp, indent, ir->expandedvals, ir->fepvals->n_lambda, bMDPformat);
+            pr_expandedvals(fp, indent, ir->expandedvals, ir->fepvals->n_lambda);
         }
 
         PI("nwall", ir->nwall);
@@ -1530,8 +1530,7 @@ static void pr_atom(FILE *fp, int indent, const char *title, t_atom *atom, int n
     }
 }
 
-static void pr_grps(FILE *fp, int indent, const char *title, t_grps grps[],
-                    char **grpname[], gmx_bool bShowNumbers)
+static void pr_grps(FILE *fp, const char *title, t_grps grps[], char **grpname[])
 {
     int i, j;
 
@@ -1546,14 +1545,14 @@ static void pr_grps(FILE *fp, int indent, const char *title, t_grps grps[],
     }
 }
 
-static void pr_groups(FILE *fp, int indent, const char *title,
+static void pr_groups(FILE *fp, int indent,
                       gmx_groups_t *groups,
                       gmx_bool bShowNumbers)
 {
     int grpnr[egcNR];
     int nat_max, i, g;
 
-    pr_grps(fp, indent, "grp", groups->grps, groups->grpname, bShowNumbers);
+    pr_grps(fp, "grp", groups->grps, groups->grpname);
     pr_strings(fp, indent, "grpname", groups->grpname, groups->ngrpname, bShowNumbers);
 
     (void) pr_indent(fp, indent);
@@ -1655,8 +1654,7 @@ static void pr_moltype(FILE *fp, int indent, const char *title,
 
 static void pr_molblock(FILE *fp, int indent, const char *title,
                         gmx_molblock_t *molb, int n,
-                        gmx_moltype_t *molt,
-                        gmx_bool bShowNumbers)
+                        gmx_moltype_t *molt)
 {
     indent = pr_title_n(fp, indent, title, n);
     (void) pr_indent(fp, indent);
@@ -1690,8 +1688,7 @@ void pr_mtop(FILE *fp, int indent, const char *title, gmx_mtop_t *mtop,
         pr_int(fp, indent, "#molblock", mtop->nmolblock);
         for (mb = 0; mb < mtop->nmolblock; mb++)
         {
-            pr_molblock(fp, indent, "molblock", &mtop->molblock[mb], mb,
-                        mtop->moltype, bShowNumbers);
+            pr_molblock(fp, indent, "molblock", &mtop->molblock[mb], mb, mtop->moltype);
         }
         pr_ffparams(fp, indent, "ffparams", &(mtop->ffparams), bShowNumbers);
         pr_atomtypes(fp, indent, "atomtypes", &(mtop->atomtypes), bShowNumbers);
@@ -1700,7 +1697,7 @@ void pr_mtop(FILE *fp, int indent, const char *title, gmx_mtop_t *mtop,
             pr_moltype(fp, indent, "moltype", &mtop->moltype[mt], mt,
                        &mtop->ffparams, bShowNumbers);
         }
-        pr_groups(fp, indent, "groups", &mtop->groups, bShowNumbers);
+        pr_groups(fp, indent, &mtop->groups, bShowNumbers);
     }
 }
 
index aa9b9def64a7c43a88bbf82ef0221c14e7d52f80..b27e02ae694c18189964db552d83bb237d626388 100644 (file)
@@ -156,7 +156,7 @@ static int load_sharedlibrary_plugins(const char *fullpath, t_gmxvmdplugin* vmdp
 }
 
 /*return: 1: success, 0: last frame, -1: error*/
-gmx_bool read_next_vmd_frame(int status, t_trxframe *fr)
+gmx_bool read_next_vmd_frame(t_trxframe *fr)
 {
     int                rc, i;
     rvec               vec, angle;
@@ -367,7 +367,7 @@ static int load_vmd_library(const char *fn, t_gmxvmdplugin *vmdplugin)
 
 }
 
-int read_first_vmd_frame(int *status, const char *fn, t_trxframe *fr, int flags)
+int read_first_vmd_frame(const char *fn, t_trxframe *fr)
 {
     molfile_timestep_metadata_t *metadata = NULL;
 
index ca270f9a8320f4c44f0eed316bad32aff6ab13c4..166b8b327ef4410390a264e8f69eb12bc8c0d4d9 100644 (file)
@@ -34,8 +34,8 @@ struct gmxvmdplugin
     gmx_bool          bV;
 };
 
-int read_first_vmd_frame(int  *status, const char *fn, struct trxframe *fr, int flags);
-gmx_bool read_next_vmd_frame(int status, struct trxframe *fr);
+int read_first_vmd_frame(const char *fn, struct trxframe *fr);
+gmx_bool read_next_vmd_frame(struct trxframe *fr);
 
 #ifdef __cplusplus
 }
index d5181e4797adbde31ad9af08b10174bd017f2006..17468835570dd09d4bd29cc4e25ff15144b24761 100644 (file)
@@ -92,7 +92,7 @@ int xdr3drcoord(XDR *xdrs, real *fp, int *size, real *precision)
 #endif
 }
 
-int xdr_gmx_large_int(XDR *xdrs, gmx_large_int_t *i, const char *warn)
+int xdr_gmx_large_int(XDR *xdrs, gmx_large_int_t *i)
 {
     /* This routine stores values compatible with xdr_int64_t */
 
index 36a1deebc1336f8fa8b7b3af72ff40829a044bed..2e1d7d6204f975271c2297c30324dc8d63a43e18 100644 (file)
@@ -49,7 +49,7 @@
 #define XTC_MAGIC 1995
 
 
-static int xdr_r2f(XDR *xdrs, real *r, gmx_bool bRead)
+static int xdr_r2f(XDR *xdrs, real *r, gmx_bool gmx_unused bRead)
 {
 #ifdef GMX_DOUBLE
     float f;
index bc8a72ab64c0a93417b460289ef077644678dd72..a0221554e59192f715a36bdd6e06451e69116da0 100644 (file)
@@ -1671,7 +1671,7 @@ void get_ir(const char *mdparin, const char *mdparout,
     t_lambda   *fep    = ir->fepvals;
     t_expanded *expand = ir->expandedvals;
 
-    inp = read_inpfile(mdparin, &ninp, NULL, wi);
+    inp = read_inpfile(mdparin, &ninp, wi);
 
     snew(dumstr[0], STRLEN);
     snew(dumstr[1], STRLEN);
index 7347f7aa639f93ec66b83ef39ab98bced5df6242..9b76c6601ece6d3de23ed526fcaa2bf88c525134 100644 (file)
@@ -47,7 +47,7 @@ extern "C" {
 /* Ewald related stuff */
 
 void
-init_ewald_tab(ewald_tab_t *et, const t_commrec *cr, const t_inputrec *ir,
+init_ewald_tab(ewald_tab_t *et, const t_inputrec *ir,
                FILE *fp);
 /* initialize the ewald table (as found in the t_forcerec) */
 
@@ -69,8 +69,7 @@ do_ewald(FILE *log,       gmx_bool bVerbose,
 /* Do an Ewald calculation for the long range electrostatics. */
 
 real
-ewald_LRcorrection(FILE *fp,
-                   int start, int end,
+ewald_LRcorrection(int start, int end,
                    t_commrec *cr, int thread, t_forcerec *fr,
                    real *chargeA, real *chargeB,
                    gmx_bool calc_excl_corr,
@@ -95,8 +94,7 @@ ewald_charge_correction(t_commrec *cr, t_forcerec *fr, real lambda, matrix box,
  * of potentials and forces.
  */
 void
-set_shift_consts(FILE *log, real r1, real rc, rvec box,
-                 t_forcerec *fr);
+set_shift_consts(real r1, real rc, rvec box);
 
 #ifdef __cplusplus
 }
index bb4b9a07a9190be2990d4d5bac4314666e4a7639..d120a322c215046ebb3bec09c4a0c99796ada86f 100644 (file)
@@ -51,9 +51,7 @@ void
 gmx_set_thread_affinity(FILE                *fplog,
                         const t_commrec     *cr,
                         gmx_hw_opt_t        *hw_opt,
-                        int                  nthreads_pme,
-                        const gmx_hw_info_t *hwinfo,
-                        const t_inputrec    *inputrec);
+                        const gmx_hw_info_t *hwinfo);
 
 /* Check the process affinity mask and if it is found to be non-zero,
  * will honor it and disable mdrun internal affinity setting.
index 8be754de4d065538c27b4158c220bd59bcdd79ea..33fe41482cfb11244b6d2d6dd5a32f5f57aa5340 100644 (file)
@@ -54,42 +54,42 @@ extern "C" {
 #endif
 
 FUNC_QUALIFIER
-int do_quick_memtest(int dev_id) FUNC_TERM_INT
+int do_quick_memtest(int gmx_unused dev_id) FUNC_TERM_INT
 
 FUNC_QUALIFIER
-int do_full_memtest(int dev_id) FUNC_TERM_INT
+int do_full_memtest(int gmx_unused dev_id) FUNC_TERM_INT
 
 FUNC_QUALIFIER
-int do_timed_memtest(int dev_id, int time_limit) FUNC_TERM_INT
+int do_timed_memtest(int gmx_unused dev_id, int gmx_unused time_limit) FUNC_TERM_INT
 
 FUNC_QUALIFIER
-int detect_cuda_gpus(gmx_gpu_info_t *gpu_info, char *err_str) FUNC_TERM_INT
+int detect_cuda_gpus(gmx_gpu_info_t gmx_unused *gpu_info, char gmx_unused *err_str) FUNC_TERM_INT
 
 FUNC_QUALIFIER
-void pick_compatible_gpus(gmx_gpu_info_t *gpu_info) FUNC_TERM_VOID
+void pick_compatible_gpus(gmx_gpu_info_t gmx_unused *gpu_info) FUNC_TERM_VOID
 
 FUNC_QUALIFIER
-gmx_bool check_select_cuda_gpus(int *checkres, gmx_gpu_info_t *gpu_info,
-                                const int *requested_devs, int count) FUNC_TERM_INT
+gmx_bool check_select_cuda_gpus(int gmx_unused *checkres, gmx_gpu_info_t gmx_unused *gpu_info,
+                                const int gmx_unused *requested_devs, int gmx_unused count) FUNC_TERM_INT
 
 FUNC_QUALIFIER
-void free_gpu_info(const gmx_gpu_info_t *gpu_info) FUNC_TERM_VOID
+void free_gpu_info(const gmx_gpu_info_t gmx_unused *gpu_info) FUNC_TERM_VOID
 
 FUNC_QUALIFIER
-gmx_bool init_gpu(int mygpu, char *result_str, const gmx_gpu_info_t *gpu_info) FUNC_TERM_INT
+gmx_bool init_gpu(int gmx_unused mygpu, char gmx_unused *result_str, const gmx_gpu_info_t gmx_unused *gpu_info) FUNC_TERM_INT
 
 FUNC_QUALIFIER
-gmx_bool free_gpu(char *result_str) FUNC_TERM_INT
+gmx_bool free_gpu(char gmx_unused *result_str) FUNC_TERM_INT
 
 /*! \brief Returns the device ID of the GPU currently in use.*/
 FUNC_QUALIFIER
 int get_current_gpu_device_id(void) FUNC_TERM_INT
 
 FUNC_QUALIFIER
-int get_gpu_device_id(const gmx_gpu_info_t *gpu_info, int index) FUNC_TERM_INT
+int get_gpu_device_id(const gmx_gpu_info_t gmx_unused *gpu_info, int gmx_unused index) FUNC_TERM_INT
 
 FUNC_QUALIFIER
-void get_gpu_device_info_string(char *s, const gmx_gpu_info_t *gpu_info, int index) FUNC_TERM_VOID
+void get_gpu_device_info_string(char gmx_unused *s, const gmx_gpu_info_t gmx_unused *gpu_info, int gmx_unused index) FUNC_TERM_VOID
 
 #ifdef __cplusplus
 }
index 62cbc70c8eb80605f865355735ee1d82337fcfda..14b90e14777d07a8455de08a5c7df2b0ed9f0419 100644 (file)
@@ -65,10 +65,9 @@ void print_flop(FILE *out, t_nrnb *nrnb, double *nbfs, double *mflop);
  * When out!=NULL also prints the full count table.
  */
 
-void print_perf(FILE *out, double nodetime, double realtime, int nprocs,
+void print_perf(FILE *out, double nodetime, double realtime,
                 gmx_large_int_t nsteps, real delta_t,
-                double nbfs, double mflop,
-                int omp_nth_pp);
+                double nbfs, double mflop);
 /* Prints the performance, nbfs and mflop come from print_flop */
 
 void pr_load(FILE *log, t_commrec *cr, t_nrnb nrnb[]);
index f04c84faf8b3fb1332dc5f682f26605505cd6dfb..df1706ec670e13aae76cd708f13d39b1c5ff5ba1 100644 (file)
@@ -54,7 +54,7 @@ void maxwell_speed(real tempi, int seed,
                    gmx_mtop_t *mtop, rvec v[]);
 /* Generate velocites according to a maxwellian distribution */
 
-real calc_cm(FILE *log, int natoms, real mass[], rvec x[], rvec v[],
+real calc_cm(int natoms, real mass[], rvec x[], rvec v[],
              rvec xcm, rvec vcm, rvec acm, matrix L);
 /* Calculate the c.o.m. position, velocity, acceleration and the
  * moment of Inertia. Returns the total mass.
index a3564265e3eda3b0b95fb9153308204260aa660b..5bfc294ad73ca6562536cc98ecb3497e7f5efe45 100644 (file)
@@ -60,7 +60,6 @@ typedef struct {
 
 
 t_inpfile *read_inpfile(const char *fn, int *ninp,
-                        char **cppopts,
                         warninp_t wi);
 /* Create & populate a t_inpfile struct from values in file fn.
    fn = the file name
index 035cad322fe9448d318acd57720a3c26de21e1b7..523e10edc84013c19a5c37ab4614947cd0e82213 100644 (file)
@@ -44,8 +44,7 @@ extern "C" {
 
 typedef struct gmx_rmpbc *gmx_rmpbc_t;
 
-gmx_rmpbc_t gmx_rmpbc_init(t_idef *idef, int ePBC, int natoms,
-                           matrix box);
+gmx_rmpbc_t gmx_rmpbc_init(t_idef *idef, int ePBC, int natoms);
 
 void gmx_rmpbc_done(gmx_rmpbc_t gpbc);
 
index 03fab42f712efd5ed13f2e5c57d78823e970b2f3..0a99bc7320d9738ef3fa25e5ddec4c28fc099b3a 100644 (file)
@@ -88,7 +88,7 @@ int do_scattering_intensity (const char* fnTPS, const char* fnNDX,
 
 t_complex *** rc_tensor_allocation(int x, int y, int z);
 
-real **compute_scattering_factor_table (gmx_structurefactors_t *gsf, structure_factor_t * sft, int *nsftable);
+real **compute_scattering_factor_table (gmx_structurefactors_t *gsf, structure_factor_t * sft);
 
 #ifdef __cplusplus
 }
index f0525396b7c85118306f0216ef4abd2745f36c05..d20669c43ff76c00592141a1cb8fdd9c74ea4437 100644 (file)
@@ -157,7 +157,7 @@ gmx_bool bRmod_fd(double a, double b, double c, gmx_bool bDouble);
 #define bRmod(a, b, c) bRmod_fd(a, b, c, FALSE)
 #endif
 
-int check_times2(real t, real t0, real tp, real tpp, gmx_bool bDouble);
+int check_times2(real t, real t0, gmx_bool bDouble);
 /* This routine checkes if the read-in time is correct or not;
  * returns -1 if t<tbegin or t MOD dt = t0,
  *          0 if tbegin <= t <=tend+margin,
@@ -222,8 +222,7 @@ int read_first_x(const output_env_t oenv, t_trxstatus **status,
  * The integer in status should be passed to calls of read_next_x
  */
 
-gmx_bool read_next_x(const output_env_t oenv, t_trxstatus *status, real *t,
-                     int natoms, rvec x[], matrix box);
+gmx_bool read_next_x(const output_env_t oenv, t_trxstatus *status, real *t, rvec x[], matrix box);
 /* Read coordinates and box from a trajectory file. Return TRUE when all well,
  * or FALSE when end of file (or last frame requested by user).
  * status is the integer set in read_first_x.
index 1d1262d0bc55c9e8f85c4dfced418bc83e774402..2fa3c659521b2f2311881199ca06df668832ca6c 100644 (file)
@@ -91,7 +91,7 @@ int xdr_real(XDR *xdrs, real *r);
 int xdr3drcoord(XDR *xdrs, real *fp, int *size, real *precision);
 
 
-int xdr_gmx_large_int(XDR *xdrs, gmx_large_int_t *i, const char *warn);
+int xdr_gmx_large_int(XDR *xdrs, gmx_large_int_t *i);
 /* Read or write a gmx_large_int_t value.
  * 32bit code reading a 64bit gmx_large_int_t value from xdrs could
  * lead to values out of int range.
index 1e97c24569f51f4524a5f07ab1c498356b6f4731..8abe2b955604bb07e59b89947e3b967398247ed5 100644 (file)
@@ -108,8 +108,7 @@ static void tabulate_eir(int natom, rvec x[], int kmax, cvec **eir, rvec lll)
     }
 }
 
-void init_ewald_tab(ewald_tab_t *et, const t_commrec *cr, const t_inputrec *ir,
-                    FILE *fp)
+void init_ewald_tab(ewald_tab_t *et, const t_inputrec *ir, FILE *fp)
 {
     int n;
 
index 7f0ae3ba2ff09b38517b55d3be9d36e860298feb..4f69c437b3404c8407f150ad0e90b537cdfe04da 100644 (file)
@@ -505,8 +505,7 @@ void do_force_lowlevel(FILE       *fplog,   gmx_large_int_t step,
                     }
                     *dvdlt  = 0;
                     *Vcorrt =
-                        ewald_LRcorrection(fplog,
-                                           fr->excl_load[t], fr->excl_load[t+1],
+                        ewald_LRcorrection(fr->excl_load[t], fr->excl_load[t+1],
                                            cr, t, fr,
                                            md->chargeA,
                                            md->nChargePerturbed ? md->chargeB : NULL,
index 0751b57db4fbf11b1a6615be31c48aaf886eb689..6d0c97c46679eb03b7f45dcbe252249474e08448 100644 (file)
@@ -2454,7 +2454,7 @@ void init_forcerec(FILE              *fp,
             }
         }
         fr->ewaldcoeff = calc_ewaldcoeff(ir->rcoulomb, ir->ewald_rtol);
-        init_ewald_tab(&(fr->ewald_table), cr, ir, fp);
+        init_ewald_tab(&(fr->ewald_table), ir, fp);
         if (fp)
         {
             fprintf(fp, "Using a Gaussian width (1/beta) of %g nm for Ewald\n",
@@ -2486,7 +2486,7 @@ void init_forcerec(FILE              *fp,
 
         if ((fr->eeltype == eelSHIFT && fr->rcoulomb > fr->rcoulomb_switch))
         {
-            set_shift_consts(fp, fr->rcoulomb_switch, fr->rcoulomb, box_size, fr);
+            set_shift_consts(fr->rcoulomb_switch, fr->rcoulomb, box_size);
         }
     }
 
index 62081692fd498a00c61f902c0671d3d7e2d8445c..c0fd4cd0078aeb570273dd2269eb679a6b61ac6c 100644 (file)
@@ -2584,16 +2584,12 @@ void finish_run(FILE *fplog, t_commrec *cr, const char *confout,
         if (fplog)
         {
             print_perf(fplog, runtime->proctime, runtime->realtime,
-                       cr->nnodes-cr->npmenodes,
-                       runtime->nsteps_done, delta_t, nbfs, mflop,
-                       omp_nth_pp);
+                       runtime->nsteps_done, delta_t, nbfs, mflop);
         }
         if (bWriteStat)
         {
             print_perf(stderr, runtime->proctime, runtime->realtime,
-                       cr->nnodes-cr->npmenodes,
-                       runtime->nsteps_done, delta_t, nbfs, mflop,
-                       omp_nth_pp);
+                       runtime->nsteps_done, delta_t, nbfs, mflop);
         }
     }
 }
index 652f3a9a0233494737b3b03e5c2a7b015fdff9b1..313da318d5a355c567ce11f995889b8ef4c7f2d8 100644 (file)
@@ -115,22 +115,22 @@ static void realloc_bins(double **bin, int *nbin, int nbin_new)
 
 double do_tpi(FILE *fplog, t_commrec *cr,
               int nfile, const t_filenm fnm[],
-              const output_env_t oenv, gmx_bool bVerbose, gmx_bool bCompact,
-              int nstglobalcomm,
-              gmx_vsite_t *vsite, gmx_constr_t constr,
-              int stepout,
+              const output_env_t oenv, gmx_bool bVerbose, gmx_bool gmx_unused bCompact,
+              int gmx_unused nstglobalcomm,
+              gmx_vsite_t gmx_unused *vsite, gmx_constr_t gmx_unused constr,
+              int gmx_unused stepout,
               t_inputrec *inputrec,
               gmx_mtop_t *top_global, t_fcdata *fcd,
               t_state *state,
               t_mdatoms *mdatoms,
               t_nrnb *nrnb, gmx_wallcycle_t wcycle,
-              gmx_edsam_t ed,
+              gmx_edsam_t gmx_unused ed,
               t_forcerec *fr,
-              int repl_ex_nst, int repl_ex_nex, int repl_ex_seed,
-              gmx_membed_t membed,
-              real cpt_period, real max_hours,
-              const char *deviceOptions,
-              unsigned long Flags,
+              int gmx_unused repl_ex_nst, int gmx_unused repl_ex_nex, int gmx_unused repl_ex_seed,
+              gmx_membed_t gmx_unused membed,
+              real gmx_unused cpt_period, real gmx_unused max_hours,
+              const char gmx_unused *deviceOptions,
+              unsigned long gmx_unused Flags,
               gmx_runtime_t *runtime)
 {
     const char     *TPI = "Test Particle Insertion";
index 91896fa9f2b0783d89b8ecfe57b125a95dadb433..047bbbc0241d00efc038edab6fdedeb906c6751a 100644 (file)
@@ -417,7 +417,7 @@ TrajectoryAnalysisRunnerCommon::initFirstFrame()
     if (top.hasTopology() && impl_->settings_.hasRmPBC())
     {
         impl_->gpbc_ = gmx_rmpbc_init(&top.topology()->idef, top.ePBC(),
-                                      impl_->fr->natoms, impl_->fr->box);
+                                      impl_->fr->natoms);
     }
 }
 
index 9f39277ca992bdcff4b4fb0655ab4f6f7ef6ba4f..f6207b19b4c79d7aa5eb6f80c0a4e0727d92cfed 100644 (file)
@@ -499,7 +499,7 @@ void read_gct(const char *fn, t_coupl_rec *tcr)
 
     wi = init_warning(FALSE, 0);
 
-    inp = read_inpfile(fn, &ninp, NULL, wi);
+    inp = read_inpfile(fn, &ninp, wi);
 
     for (i = 0; (i < eoObsNR); i++)
     {
index 49d5e338c19220397b05fd766262f468eccd07d1..52ce5b8b8b807031c1f59139cc86714150b5cbe0 100644 (file)
@@ -233,7 +233,7 @@ static void get_input(const char *membed_input, real *xy_fac, real *xy_max, real
 
     wi = init_warning(TRUE, 0);
 
-    inp = read_inpfile(membed_input, &ninp, NULL, wi);
+    inp = read_inpfile(membed_input, &ninp, wi);
     ITYPE ("nxy", *it_xy, 1000);
     ITYPE ("nz", *it_z, 0);
     RTYPE ("xyinit", *xy_fac, 0.5);
index 74443871a5c99f267592c7a19db102263d680c53..7db1f502da785eff25d5983a3b24f6ad20d7ec0d 100644 (file)
@@ -1511,7 +1511,7 @@ int mdrunner(gmx_hw_opt_t *hw_opt,
                                       hw_opt, hwinfo->nthreads_hw_avail, TRUE);
 
         /* Set the CPU affinity */
-        gmx_set_thread_affinity(fplog, cr, hw_opt, nthreads_pme, hwinfo, inputrec);
+        gmx_set_thread_affinity(fplog, cr, hw_opt, hwinfo);
     }
 
     /* Initiate PME if necessary,