|
NAMD
|
#include "dcdlib.h"Go to the source code of this file.
Macros | |
| #define | OUTPUT_SINGLE_FILE 1 |
| #define | NAMD_write NAMD_write64 |
| #define | LSEEK lseek |
| #define | READ read |
| #define | LSEEK NAMD_seek |
| #define | O_LARGEFILE 0x0 |
| #define | CHECK_FREAD(X, msg) |
| #define | CHECK_FEOF(X, msg) |
| #define | NFILE_POS ((OFF_T) 8) |
| #define | NPRIV_POS ((OFF_T) 12) |
| #define | NSAVC_POS ((OFF_T) 16) |
| #define | NSTEP_POS ((OFF_T) 20) |
Functions | |
| void | NAMD_write (int fd, const char *buf, size_t count) |
| OFF_T | NAMD_seek (int file, OFF_T offset, int whence) |
| void | pad (char *s, int len) |
| int | open_dcd_read (char *filename) |
| int | open_dcd_write (const char *dcdname) |
| int | open_dcd_write_par_slave (char *dcdname) |
| int | write_dcdstep (int fd, int N, float *X, float *Y, float *Z, double *cell) |
| int | write_dcdstep_par_cell (int fd, double *cell) |
| int | write_dcdstep_par_XYZUnits (int fd, int N) |
| int | update_dcdstep_par_header (int fd) |
| int | write_dcdstep_par_slave (int fd, int parL, int parU, int N, float *X, float *Y, float *Z) |
| int | write_dcdheader (int fd, const char *filename, int N, int NFILE, int NPRIV, int NSAVC, int NSTEP, double DELTA, int with_unitcell) |
| int | get_dcdheader_size () |
| void | close_dcd_read (int fd, int num_fixed, int *indexes) |
| void | close_dcd_write (int fd) |
| #define CHECK_FEOF | ( | X, | |
| msg | |||
| ) |
| #define CHECK_FREAD | ( | X, | |
| msg | |||
| ) |
| #define LSEEK lseek |
Definition at line 61 of file dcdlib.C.
Referenced by NAMD_seek(), update_dcdstep_par_header(), write_dcdstep(), write_dcdstep_par_slave(), and write_dcdstep_par_XYZUnits().
| #define NAMD_write NAMD_write64 |
Definition at line 24 of file dcdlib.C.
Referenced by ofstream_namd::flush(), update_dcdstep_par_header(), write_dcdheader(), write_dcdstep(), write_dcdstep_par_cell(), write_dcdstep_par_slave(), and write_dcdstep_par_XYZUnits().
| #define NFILE_POS ((OFF_T) 8) |
Definition at line 628 of file dcdlib.C.
Referenced by update_dcdstep_par_header(), and write_dcdstep().
| #define NSAVC_POS ((OFF_T) 16) |
Definition at line 630 of file dcdlib.C.
Referenced by update_dcdstep_par_header(), and write_dcdstep().
| #define NSTEP_POS ((OFF_T) 20) |
Definition at line 631 of file dcdlib.C.
Referenced by update_dcdstep_par_header(), and write_dcdstep().
| #define O_LARGEFILE 0x0 |
Definition at line 64 of file dcdlib.C.
Referenced by open_dcd_read(), open_dcd_write(), and open_dcd_write_par_slave().
| #define OUTPUT_SINGLE_FILE 1 |
| #define READ read |
Definition at line 46 of file dcdlib.C.
Referenced by update_dcdstep_par_header(), and write_dcdstep().
| void close_dcd_read | ( | int | fd, |
| int | num_fixed, | ||
| int * | indexes | ||
| ) |
| void close_dcd_write | ( | int | fd | ) |
Definition at line 1063 of file dcdlib.C.
References NAMD_err().
Referenced by Output::recvReplicaDcdInit(), and ComputeQMMgr::~ComputeQMMgr().
Definition at line 49 of file dcdlib.C.
References LSEEK, NAMD_die(), NAMD_err(), and OFF_T.
| void NAMD_write | ( | int | fd, |
| const char * | buf, | ||
| size_t | count | ||
| ) |
| int open_dcd_read | ( | char * | filename | ) |
| int open_dcd_write | ( | const char * | dcdname | ) |
Definition at line 662 of file dcdlib.C.
References DCD_OPENFAILED, NAMD_backup_file(), and O_LARGEFILE.
Referenced by open_dcd_write_par_slave(), ComputeQMMgr::recvPartQM(), and Output::recvReplicaDcdData().
| int open_dcd_write_par_slave | ( | char * | dcdname | ) |
Definition at line 689 of file dcdlib.C.
References DCD_OPENFAILED, O_LARGEFILE, and open_dcd_write().
| void pad | ( | char * | s, |
| int | len | ||
| ) |
Definition at line 105 of file dcdlib.C.
Referenced by write_dcdheader().
| int update_dcdstep_par_header | ( | int | fd | ) |
| int write_dcdheader | ( | int | fd, |
| const char * | filename, | ||
| int | N, | ||
| int | NFILE, | ||
| int | NPRIV, | ||
| int | NSAVC, | ||
| int | NSTEP, | ||
| double | DELTA, | ||
| int | with_unitcell | ||
| ) |
Definition at line 915 of file dcdlib.C.
References NAMD_write, and pad().
Referenced by ComputeQMMgr::recvPartQM(), and Output::recvReplicaDcdData().
| int write_dcdstep | ( | int | fd, |
| int | N, | ||
| float * | X, | ||
| float * | Y, | ||
| float * | Z, | ||
| double * | cell | ||
| ) |
Definition at line 736 of file dcdlib.C.
References LSEEK, NAMD_write, NFILE_POS, NSAVC_POS, NSTEP_POS, OFF_T, READ, X, Y, and Z.
Referenced by ComputeQMMgr::procQMRes(), and Output::recvReplicaDcdData().
| int write_dcdstep_par_cell | ( | int | fd, |
| double * | cell | ||
| ) |
| int write_dcdstep_par_slave | ( | int | fd, |
| int | parL, | ||
| int | parU, | ||
| int | N, | ||
| float * | X, | ||
| float * | Y, | ||
| float * | Z | ||
| ) |
| int write_dcdstep_par_XYZUnits | ( | int | fd, |
| int | N | ||
| ) |
1.8.14