Merge release-5-0 into master
[alexxy/gromacs.git] / src / gromacs / fileio / mdoutf.h
index 645ecab6f09d966be56dec3062283410aee2a7ab..7c9f2a3309188c12cbf4f7fd1b7f725b25c6355a 100644 (file)
@@ -43,6 +43,7 @@
 #include "../legacyheaders/network.h"
 
 #include "../math/vectypes.h"
+#include "../timing/wallcycle.h"
 #include "../utility/basedefinitions.h"
 #include "filenm.h"
 #include "enxio.h"
@@ -67,7 +68,8 @@ gmx_mdoutf_t init_mdoutf(FILE              *fplog,
                          const t_commrec   *cr,
                          const t_inputrec  *ir,
                          struct gmx_mtop_t *mtop,
-                         const output_env_t oenv);
+                         const output_env_t oenv,
+                         gmx_wallcycle_t    wcycle);
 
 /*! \brief Getter for file pointer */
 FILE *mdoutf_get_fp_field(gmx_mdoutf_t of);
@@ -78,6 +80,16 @@ ener_file_t mdoutf_get_fp_ene(gmx_mdoutf_t of);
 /*! \brief Getter for file pointer */
 FILE *mdoutf_get_fp_dhdl(gmx_mdoutf_t of);
 
+/*! \brief Getter for wallcycle timer */
+gmx_wallcycle_t mdoutf_get_wcycle(gmx_mdoutf_t of);
+
+/*! \brief Close TNG files if they are open.
+ *
+ * This also measures the time it takes to close the TNG
+ * files.
+ */
+void mdoutf_tng_close(gmx_mdoutf_t of);
+
 /*! \brief Close all open output files and free the of pointer */
 void done_mdoutf(gmx_mdoutf_t of);