X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgromacs%2Ffileio%2Fconfio.h;h=f27b1b648b45f696eb1a583d2764c00b1624e560;hb=87992126dd5b43f3e00415d07967b99f792a4527;hp=2b149c23a82b59884c77e6b218554834b8e03e24;hpb=d8baf1881edfb32f50fbfb5a7e8add2c058f1006;p=alexxy%2Fgromacs.git diff --git a/src/gromacs/fileio/confio.h b/src/gromacs/fileio/confio.h index 2b149c23a8..f27b1b648b 100644 --- a/src/gromacs/fileio/confio.h +++ b/src/gromacs/fileio/confio.h @@ -3,7 +3,7 @@ * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team. - * Copyright (c) 2013,2014, by the GROMACS development team, led by + * Copyright (c) 2013,2014,2015, by the GROMACS development team, led by * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl, * and including many others, as listed in the AUTHORS file in the * top-level source directory and at http://www.gromacs.org. @@ -52,6 +52,7 @@ extern "C" { struct gmx_mtop_t; struct t_atoms; +struct t_topology; int read_g96_conf(FILE *fp, const char *infile, t_trxframe *fr, char *line); /* read a Gromos96 coordinate or trajectory file, * @@ -107,6 +108,15 @@ void read_stx_conf(const char *infile, char *title, * If ePBC!=NULL return the type of pbc in *ePBC or -1 if unknown. */ +gmx_bool read_tps_conf(const char *infile, char *title, struct t_topology *top, + int *ePBC, rvec **x, rvec **v, matrix box, gmx_bool bMass); +/* Read title, top.atoms, x, v (if not NULL) and box from an STX file, + * memory for atoms, x and v will be allocated. + * Return TRUE if a complete topology was read. + * If infile is a TPX file read the whole top, + * else if bMass=TRUE, read the masses into top.atoms from the mass database. + */ + #ifdef __cplusplus } #endif