Move gstat.h to gmxana/
authorTeemu Murtola <teemu.murtola@gmail.com>
Sat, 4 Jan 2014 18:59:13 +0000 (20:59 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 7 Jan 2014 05:24:19 +0000 (06:24 +0100)
Remove unnecessary inclusions of gstat.h from outside gmxana/.
Now that the header is no longer used outside gmxana/, move it into that
directory.  Still install the header, since it contains a wide mixture
of stuff, some of which may actually be used by user tools.

This cleans up the include dependency graph considerably, since the
legacyheaders/ directory no longer depends on commandline/.  This was a
source of a cyclic dependency that made the graph layout very confusing.

Change-Id: I3843f2773d6b393e4d260e84478ab559ab8e00d7

src/gromacs/gmxana/CMakeLists.txt
src/gromacs/gmxana/gstat.h [moved from src/gromacs/legacyheaders/gstat.h with 98% similarity]
src/gromacs/gmxlib/gbutil.c
src/gromacs/gmxlib/nrjac.c
src/gromacs/gmxlib/princ.c
src/gromacs/gmxlib/rmpbc.c
src/programs/view/manager.cpp

index 1eb7c166448215c0a16d39c1b9b7dbce352126d8..45206c3e2eca6ecf3d261d4bf6395d3a62573a78 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2013, by the GROMACS development team, led by
+# Copyright (c) 2013,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.
 
 file(GLOB GMXANA_SOURCES *.c *.cpp)
 
+set(GMXANA_PUBLIC_HEADERS
+    gstat.h
+    )
+gmx_install_headers(gmxana ${GMXANA_PUBLIC_HEADERS})
+
 set(LIBGROMACS_SOURCES ${LIBGROMACS_SOURCES} ${GMXANA_SOURCES} PARENT_SCOPE)
 
 if(BUILD_TESTING)
similarity index 98%
rename from src/gromacs/legacyheaders/gstat.h
rename to src/gromacs/gmxana/gstat.h
index 2306e816792fc75d812092785d78e1430f8dd013..e12adf55d15acb32108a82b80e4f17ff14c796f5 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) 2013, by the GROMACS development team, led by
+ * Copyright (c) 2013,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.
  * 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 GMX_GMXANA_GSTAT_H
+#define GMX_GMXANA_GSTAT_H
 
-#ifndef _gstat_h
-#define _gstat_h
-
-#include "typedefs.h"
+#include "../legacyheaders/typedefs.h"
 #include "../commandline/pargs.h"
-#include "oenv.h"
-#include "mshift.h"
-#include "rmpbc.h"
-#include "index.h"
+#include "../legacyheaders/oenv.h"
+#include "../legacyheaders/mshift.h"
+#include "../legacyheaders/rmpbc.h"
+#include "../legacyheaders/index.h"
 
 #ifdef __cplusplus
 extern "C" {
index 31a1a6c4e2cbe78885cb5ddc5373e6f65f300389..3d2a1046a4630ae27946175ecf40a3900cf4df68 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) 2012, by the GROMACS development team, led by
+ * Copyright (c) 2012,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.
@@ -43,7 +43,6 @@
 #include "macros.h"
 #include "vec.h"
 #include "gmx_fatal.h"
-#include "gstat.h"
 #include "pbc.h"
 #include "gbutil.h"
 
index cd392aa5090f3d1d5fb750482f135600cbb29332..f0e52f376c399461a2c1a1586e703908de4697a9 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) 2012, by the GROMACS development team, led by
+ * Copyright (c) 2012,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.
@@ -42,7 +42,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <math.h>
-#include "gstat.h"
 #include "smalloc.h"
 #include "gmx_fatal.h"
 #include "nrjac.h"
index 006e16ff30cfb8fd2bd6217d8713ebe0ca472e8f..ac319c8a0b98873f6a67260e02e776bfa9817155 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) 2012, by the GROMACS development team, led by
+ * Copyright (c) 2012,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.
@@ -42,7 +42,6 @@
 #include "typedefs.h"
 #include "vec.h"
 #include "smalloc.h"
-#include "gstat.h"
 #include "nrjac.h"
 #include "txtdump.h"
 #include "princ.h"
index 8bce3d2f5eef13aa72fefcb86c43a0f6dbfbaef6..aeb3d7ddebbff43582e6aaba29d15fa71fce9f88 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) 2013, by the GROMACS development team, led by
+ * Copyright (c) 2013,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.
 #include "smalloc.h"
 #include "mshift.h"
 #include "pbc.h"
-#include "gstat.h"
-#include "gromacs/fileio/futil.h"
+#include "rmpbc.h"
 #include "vec.h"
 
+#include "gromacs/fileio/futil.h"
+
 typedef struct {
     int      natoms;
     t_graph *gr;
index 20cd24985d79005dbcafff6550c8a33d4aea804b..41da204fdd2d0cec99f8f0eaee2567f3a1178dec 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) 2013, by the GROMACS development team, led by
+ * Copyright (c) 2013,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.
@@ -54,7 +54,6 @@
 #include "pbc.h"
 #include "nmol.h"
 #include "copyrite.h"
-#include "gstat.h"
 #include "vec.h"
 #include "string2.h"