When writing TNG include file closing in wallcycle.
[alexxy/gromacs.git] / src / gromacs / fileio / mdoutf.h
index 783d3da63ab2fd4018ada8abe3e809b173113939..a063c1fd8f0d5a4c87a901d97e89876d58b753f4 100644 (file)
@@ -59,7 +59,8 @@ gmx_mdoutf_t init_mdoutf(FILE              *fplog,
                          const t_commrec   *cr,
                          const t_inputrec  *ir,
                          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);
@@ -70,6 +71,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);