Move tools code to where it is used
authorMark Abraham <mark.j.abraham@gmail.com>
Wed, 21 May 2014 17:47:52 +0000 (19:47 +0200)
committerDavid van der Spoel <spoel@xray.bmc.uu.se>
Sat, 24 May 2014 08:49:09 +0000 (10:49 +0200)
All the actual clients of calch.c and princ.c were respectively
in gmxpreprocess and gmxana, so it makes more sense for them
to be there, together with their headers. Removed some
unneccesary #includes of those headers.

Change-Id: I47f6d2f1e3a4670ebba907b874590e362f070eac

src/gromacs/gmxana/gmx_densmap.c
src/gromacs/gmxana/gmx_trjorder.c
src/gromacs/gmxana/princ.c [moved from src/gromacs/gmxlib/princ.c with 100% similarity]
src/gromacs/gmxana/princ.h [moved from src/gromacs/legacyheaders/princ.h with 96% similarity]
src/gromacs/gmxpreprocess/calch.c [moved from src/gromacs/gmxlib/calch.c with 100% similarity]
src/gromacs/gmxpreprocess/calch.h [moved from src/gromacs/legacyheaders/calch.h with 94% similarity]
src/gromacs/gmxpreprocess/pdb2gmx.c
src/gromacs/gmxpreprocess/readpull.c
src/gromacs/pulling/pullutil.c

index c81d91b0a9e2eaac00180c9bb664740daded999c..7c3113518562750903ae4f15bc11383737f35b48 100644 (file)
@@ -49,7 +49,6 @@
 #include "pbc.h"
 #include "gromacs/utility/futil.h"
 #include "index.h"
-#include "princ.h"
 #include "txtdump.h"
 #include "gromacs/fileio/tpxio.h"
 #include "gromacs/fileio/trxio.h"
index a360e09ebb547503d0352b5d18c1d7bdbe26d06c..4fb40c35838bb495fe0612f90679a046686eca2c 100644 (file)
@@ -51,7 +51,7 @@
 #include "gromacs/utility/futil.h"
 #include "index.h"
 #include "gromacs/fileio/xvgr.h"
-#include "princ.h"
+
 #include "gromacs/pbcutil/rmpbc.h"
 #include "txtdump.h"
 #include "gromacs/fileio/tpxio.h"
similarity index 96%
rename from src/gromacs/legacyheaders/princ.h
rename to src/gromacs/gmxana/princ.h
index 78c639a30f4a6ef6aa89bf8e6cf0728d9b685855..a9442050b3f5de5a47da7e71d0c43af4624e4fb0 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2010, by the GROMACS development team, led by
+ * Copyright (c) 2010,2014, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -34,9 +34,8 @@
  * To help us fund GROMACS development, we humbly ask that you cite
  * the research papers on the package. Check out http://www.gromacs.org.
  */
-
-#ifndef _princ_h
-#define _princ_h
+#ifndef GMX_GMXANA_PRINC_H
+#define GMX_GMXANA_PRINC_H
 
 #include "typedefs.h"
 
similarity index 94%
rename from src/gromacs/legacyheaders/calch.h
rename to src/gromacs/gmxpreprocess/calch.h
index 7b1fc76d5e9938a7084b0d5e4c8fedbd301717e5..f484d226286bef9af1248aca75bd2192f52ca49f 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2010, by the GROMACS development team, led by
+ * Copyright (c) 2010,2014, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -34,9 +34,8 @@
  * To help us fund GROMACS development, we humbly ask that you cite
  * the research papers on the package. Check out http://www.gromacs.org.
  */
-
-#ifndef _calch_h
-#define _calch_h
+#ifndef GMX_PREPROCESS_CALCH_H
+#define GMX_PREPROCESS_CALCH_H
 
 #include "typedefs.h"
 
@@ -69,4 +68,4 @@ void calc_h_pos(int nht, rvec xa[], rvec xh[], int *l);
 }
 #endif
 
-#endif  /* _calch_h */
+#endif
index caaeaea118fd63ee185b87dfe82ea38a585a3903..2ff72da0759aabd07f66526be3988d7f71e6e4f8 100644 (file)
@@ -60,7 +60,6 @@
 #include "toputil.h"
 #include "h_db.h"
 #include "pgutil.h"
-#include "calch.h"
 #include "resall.h"
 #include "pdb2top.h"
 #include "ter_db.h"
index 2fbe8dbfa32c3dbe0d1dc4c8c4f9ef11c1ddfcf8..67026806b6d7ac112add10c258e6535d079cac31 100644 (file)
@@ -42,7 +42,6 @@
 #include <stdlib.h>
 
 #include "gromacs/utility/cstringutil.h"
-#include "princ.h"
 #include "gromacs/utility/futil.h"
 #include "gromacs/math/vec.h"
 #include "gromacs/utility/smalloc.h"
index 483dc00fe509b3a1ed4619c8e84bcdfd5ce28147..89c38c3f220fce5e76995f6c956811eb33a52c9f 100644 (file)
@@ -40,7 +40,6 @@
 
 #include <stdlib.h>
 
-#include "princ.h"
 #include "gromacs/utility/futil.h"
 #include "gromacs/math/vec.h"
 #include "gromacs/utility/smalloc.h"