コード例 #1
0
void list_trx(char *fn,bool bXVG)
{
  int ftp;
  
  ftp = fn2ftp(fn);
  if (ftp == efXTC)
    list_xtc(fn,bXVG);
  else if ((ftp == efTRR) || (ftp == efTRJ))
    list_trn(fn);
  else
    fprintf(stderr,"File %s not supported. Try using more %s\n",
	    fn,fn);
}
コード例 #2
0
ファイル: dump.c プロジェクト: JehandadKhan/gromacs
void list_trx(const char *fn)
{
    switch (fn2ftp(fn))
    {
    case efXTC:
        list_xtc(fn);
        break;
    case efTRR:
        list_trn(fn);
        break;
    case efTNG:
        list_tng(fn);
        break;
    default:
        fprintf(stderr, "File %s is of an unsupported type. Try using the command\n 'less %s'\n",
                fn, fn);
    }
}
コード例 #3
0
ファイル: gmxdump.c プロジェクト: aar2163/gromacs_energy
void list_trx(const char *fn, gmx_bool bXVG)
{
    int ftp;

    ftp = fn2ftp(fn);
    if (ftp == efXTC)
    {
        list_xtc(fn, bXVG);
    }
    else if ((ftp == efTRR) || (ftp == efTRJ))
    {
        list_trn(fn);
    }
    else
    {
        fprintf(stderr, "File %s is of an unsupported type. Try using the command\n 'less %s'\n",
                fn, fn);
    }
}