Create fileio module
[alexxy/gromacs.git] / src / gromacs / gmxlib / statutil.cpp
index b70df1d25697a2bc0240b862c3f1e72ea4d811d1..1755369e9dc5a550dfc6e855431c3e9695f58aad 100644 (file)
 #include "string2.h"
 #include "smalloc.h"
 #include "statutil.h"
-#include "tpxio.h"
+#include "gromacs/fileio/tpxio.h"
 #include "gmx_fatal.h"
 #include "network.h"
-#include "gmxfio.h"
+#include "gromacs/fileio/gmxfio.h"
+#include "gromacs/fileio/trxio.h"
 
 #include "gromacs/onlinehelp/wman.h"
 #include "gromacs/utility/exceptions.h"
@@ -126,46 +127,6 @@ gmx_bool bRmod_fd(double a, double b, double c, gmx_bool bDouble)
     }
 }
 
-int check_times2(real t, real t0, gmx_bool bDouble)
-{
-    int  r;
-
-#ifndef GMX_DOUBLE
-    /* since t is float, we can not use double precision for bRmod */
-    bDouble = FALSE;
-#endif
-
-    r = -1;
-    if ((!bTimeSet(TBEGIN) || (t >= rTimeValue(TBEGIN)))  &&
-        (!bTimeSet(TEND)   || (t <= rTimeValue(TEND))))
-    {
-        if (bTimeSet(TDELTA) && !bRmod_fd(t, t0, rTimeValue(TDELTA), bDouble))
-        {
-            r = -1;
-        }
-        else
-        {
-            r = 0;
-        }
-    }
-    else if (bTimeSet(TEND) && (t >= rTimeValue(TEND)))
-    {
-        r = 1;
-    }
-    if (debug)
-    {
-        fprintf(debug, "t=%g, t0=%g, b=%g, e=%g, dt=%g: r=%d\n",
-                t, t0, rTimeValue(TBEGIN), rTimeValue(TEND), rTimeValue(TDELTA), r);
-    }
-    return r;
-}
-
-int check_times(real t)
-{
-    return check_times2(t, t, FALSE);
-}
-
-
 
 
 static void set_default_time_unit(const char *time_list[], gmx_bool bCanTime)