eFileFormat eFF;
int NATOMS;
double DT,BOX[3];
- bool bReadBox;
+ gmx_bool bReadBox;
};
static void initcount(t_trxstatus *status)
}
static void printcount(t_trxstatus *status, const output_env_t oenv,real t,
- bool bSkip)
+ gmx_bool bSkip)
{
status->__frame++;
printcount_(status, oenv,bSkip ? "Skipping frame" : "Reading frame",t);
-void clear_trxframe(t_trxframe *fr,bool bFirst)
+void clear_trxframe(t_trxframe *fr,gmx_bool bFirst)
{
fr->not_ok = 0;
fr->bTitle = FALSE;
return stat;
}
-static bool gmx_next_frame(t_trxstatus *status,t_trxframe *fr)
+static gmx_bool gmx_next_frame(t_trxstatus *status,t_trxframe *fr)
{
t_trnheader sh;
- bool bOK,bRet;
+ gmx_bool bOK,bRet;
bRet = FALSE;
}
}
-static bool do_read_xyz(t_trxstatus *status, FILE *fp,int natoms,
+static gmx_bool do_read_xyz(t_trxstatus *status, FILE *fp,int natoms,
rvec x[],matrix box)
{
int i,m;
return TRUE;
}
-static bool xyz_next_x(t_trxstatus *status, FILE *fp, const output_env_t oenv,
+static gmx_bool xyz_next_x(t_trxstatus *status, FILE *fp, const output_env_t oenv,
real *t, int natoms, rvec x[], matrix box)
/* Reads until a new x can be found (return TRUE)
* or eof (return FALSE)
return status->NATOMS;
}
-static bool pdb_next_x(t_trxstatus *status, FILE *fp,t_trxframe *fr)
+static gmx_bool pdb_next_x(t_trxstatus *status, FILE *fp,t_trxframe *fr)
{
t_atoms atoms;
matrix boxpdb;
return fr->natoms;
}
-bool read_next_frame(const output_env_t oenv,t_trxstatus *status,t_trxframe *fr)
+gmx_bool read_next_frame(const output_env_t oenv,t_trxstatus *status,t_trxframe *fr)
{
real pt;
int ct;
- bool bOK,bRet,bMissingData=FALSE,bSkip=FALSE;
+ gmx_bool bOK,bRet,bMissingData=FALSE,bSkip=FALSE;
int dummy=0;
bRet = FALSE;
const char *fn,t_trxframe *fr,int flags)
{
t_fileio *fio;
- bool bFirst,bOK;
+ gmx_bool bFirst,bOK;
int dummy=0;
clear_trxframe(fr,TRUE);
return (*status)->xframe->natoms;
}
-bool read_next_x(const output_env_t oenv, t_trxstatus *status,real *t,
+gmx_bool read_next_x(const output_env_t oenv, t_trxstatus *status,real *t,
int natoms, rvec x[], matrix box)
{
- bool bRet;
+ gmx_bool bRet;
status->xframe->x= x;
/*xframe[status].x = x;*/
return fr.natoms;
}
-bool read_next_v(const output_env_t oenv,t_trxstatus *status,real *t,
+gmx_bool read_next_v(const output_env_t oenv,t_trxstatus *status,real *t,
int natoms,rvec v[], matrix box)
{
t_trxframe fr;
- bool bRet;
+ gmx_bool bRet;
clear_trxframe(&fr,TRUE);
fr.flags = TRX_NEED_V;