Rename trnio.* to trrio.*
[alexxy/gromacs.git] / src / contrib / anaf.c
index e00de26062be5c94ede5a22ceec9275926153b3d..df4d1f8681c6dc6f44f6ea02cb0c5b1afaf7cafb 100644 (file)
 #include <stdio.h>
 #include <string.h>
 #include <math.h>
-#include "main.h"
+
 #include "macros.h"
-#include "futil.h"
-#include "statutil.h"
+#include "gromacs/utility/futil.h"
+#include "gromacs/commandline/pargs.h"
 #include "copyrite.h"
-#include "sysstuff.h"
 #include "txtdump.h"
-#include "gmx_fatal.h"
-#include "xtcio.h"
-#include "enxio.h"
-#include "smalloc.h"
-#include "gmxfio.h"
-#include "tpxio.h"
-#include "trnio.h"
+#include "gromacs/utility/fatalerror.h"
+#include "gromacs/fileio/xtcio.h"
+#include "gromacs/fileio/enxio.h"
+#include "gromacs/utility/smalloc.h"
+#include "gromacs/fileio/gmxfio.h"
+#include "gromacs/fileio/tpxio.h"
+#include "gromacs/fileio/trrio.h"
 #include "txtdump.h"
-#include "vec.h"
+#include "gromacs/math/vec.h"
 
 static char *nm[5]  = { "OW", "HW1", "HW2", "DW", "SW" };
   
@@ -71,7 +70,6 @@ static void list_trn(char *fn)
   printf("Going to open %s\n",fn);
   fpread  = open_trn(fn,"r"); 
   fpwrite = open_tpx(NULL,"w");
-  gmx_fio_setdebug(fpwrite,TRUE);
   
   mmm=mass[0]+2*mass[1];
   for(i=0; (i<5); i++) 
@@ -138,9 +136,9 @@ static void list_trn(char *fn)
 int main(int argc,char *argv[])
 {
   static char *desc[] = {
-    "[TT]gmxdump[tt] reads a run input file ([TT].tpa[tt]/[TT].tpr[tt]/[TT].tpb[tt]),",
-    "a trajectory ([TT].trj[tt]/[TT].trr[tt]/[TT].xtc[tt]) or an energy",
-    "file ([TT].ene[tt]/[TT].edr[tt]) and prints that to standard",
+    "[TT]gmxdump[tt] reads a run input file ([REF].tpr[ref]),",
+    "a trajectory ([REF].trr[ref]/[REF].xtc[ref]) or an energy",
+    "file ([REF].edr[ref]) and prints that to standard",
     "output in a readable format. This program is essential for",
     "checking your run input file in case of problems.[PAR]"
   };
@@ -162,7 +160,7 @@ int main(int argc,char *argv[])
     list_trn(fn);
   }
   
-  thanx(stderr);
+  gmx_thanx(stderr);
 
   return 0;
 }