Split tpr header reading reading from tpr body
[alexxy/gromacs.git] / src / gromacs / tools / dump.cpp
index 5b644916c06ae88afbe16484100f63bcfc40d2b2..91d429b0dcf2854641bc0f73029e07d05f36781c 100644 (file)
@@ -98,12 +98,12 @@ void list_tpr(const char *fn,
     FILE         *gp;
     int           indent, atot;
     t_state       state;
-    t_tpxheader   tpx;
     gmx_mtop_t    mtop;
     t_topology    top;
 
-    read_tpxheader(fn, &tpx, TRUE);
-    t_inputrec     ir;
+    TpxFileHeader tpx = readTpxHeader(fn, true);
+    t_inputrec    ir;
+
     read_tpx_state(fn,
                    tpx.bIr ? &ir : nullptr,
                    &state,