Don't use fah_fsync
[alexxy/gromacs.git] / src / gromacs / mdlib / mdoutf.cpp
index 950587952db12a0995a755f129ffa4c232149c46..0825e0ab7e33c6f292bc136ab8129b2a6cfde965 100644 (file)
@@ -432,6 +432,15 @@ void mdoutf_write_to_trajectory_files(FILE*                    fplog,
                                nullptr, nullptr);
             }
         }
+
+#if GMX_FAHCORE
+        /* Write a FAH checkpoint after writing any other data.  We may end up
+           checkpointing twice but it's fast so it's ok. */
+        if ((mdof_flags & ~MDOF_CPT))
+        {
+            fcCheckpoint();
+        }
+#endif
     }
 }