Switched to Headers fo the Gromacs-2016 branch.

This commit is contained in:
Niels Müller
2016-09-27 12:22:58 +02:00
parent f4e2501142
commit ad482006b0
6 changed files with 36 additions and 10 deletions

View File

@@ -34,7 +34,7 @@ cdef extern from "gromacs/fileio/tpxio.h":
int *natoms,
rvec *x,
rvec *v,
rvec *f,
# rvec *f,
gmx_mtop_t *mtop)
@@ -83,12 +83,17 @@ cdef atom_mass(t_atom atom):
return atom.m
cdef index_groups_from_topology(gmx_mtop_t *topology):
# retrieve the index groups from the topology->groups ?
pass
cdef open_tpx(const char* filename, t_inputrec *ir, matrix box, int *natoms, gmx_mtop_t *top):
#cdef stdio.FILE *old_stderr = stdio.stderr
#stdio.stderr = stdio.freopen('tmp', 'w', stdio.stderr)
cdef char buffer[stdio.BUFSIZ]
stdio.setbuf(stdio.stderr, buffer)
return_code = read_tpx(filename, ir, box, natoms, NULL, NULL, NULL, top)
return_code = read_tpx(filename, ir, box, natoms, NULL, NULL, top)
for i in range(stdio.BUFSIZ):
buffer[i] = 0