NAMD
|
#include "largefiles.h"
#include "common.h"
#include "Vector.h"
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include <pwd.h>
#include <time.h>
Go to the source code of this file.
Macros | |
#define | OFF_T off_t |
#define | DCD_DNE -2 /* DCD file does not exist */ |
#define | DCD_OPENFAILED -3 /* Open of DCD file failed */ |
#define | DCD_BADREAD -4 /* read call on DCD file failed */ |
#define | DCD_BADEOF -5 /* premature EOF found in DCD file */ |
#define | DCD_BADFORMAT -6 /* format of DCD file is wrong */ |
#define | DCD_FILEEXISTS -7 /* output file already exists */ |
#define | DCD_BADMALLOC -8 /* malloc failed */ |
Functions | |
int | open_dcd_read (char *) |
int | read_dcdheader (int, int *, int *, int *, int *, double *, int *, int **) |
int | read_dcdstep (int, int, float *, float *, float *, int, int, int *) |
int | open_dcd_write (const char *) |
int | write_dcdstep (int, int, float *, float *, float *, double *unitcell) |
int | write_dcdheader (int, const char *, int, int, int, int, int, double, int) |
int | get_dcdheader_size () |
void | close_dcd_read (int, int, int *) |
void | close_dcd_write (int) |
int | open_dcd_write_par_slave (char *dcdname) |
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) |
OFF_T | NAMD_seek (int file, OFF_T offset, int whence) |
#define DCD_DNE -2 /* DCD file does not exist */ |
Definition at line 47 of file dcdlib.h.
Referenced by open_dcd_read().
#define DCD_FILEEXISTS -7 /* output file already exists */ |
Definition at line 52 of file dcdlib.h.
Referenced by ComputeQMMgr::recvPartQM(), and Output::recvReplicaDcdData().
#define DCD_OPENFAILED -3 /* Open of DCD file failed */ |
Definition at line 48 of file dcdlib.h.
Referenced by open_dcd_read(), open_dcd_write(), and open_dcd_write_par_slave().
#define OFF_T off_t |
Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by The Board of Trustees of the University of Illinois. All rights reserved.
Definition at line 42 of file dcdlib.h.
Referenced by NAMD_seek(), update_dcdstep_par_header(), write_dcdstep(), write_dcdstep_par_slave(), and write_dcdstep_par_XYZUnits().
void close_dcd_read | ( | int | , |
int | , | ||
int * | |||
) |
void close_dcd_write | ( | int | ) |
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.
int open_dcd_read | ( | char * | ) |
int open_dcd_write | ( | const char * | ) |
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().
int read_dcdheader | ( | int | , |
int * | , | ||
int * | , | ||
int * | , | ||
int * | , | ||
double * | , | ||
int * | , | ||
int ** | |||
) |
int read_dcdstep | ( | int | , |
int | , | ||
float * | , | ||
float * | , | ||
float * | , | ||
int | , | ||
int | , | ||
int * | |||
) |
int update_dcdstep_par_header | ( | int | fd | ) |
int write_dcdheader | ( | int | , |
const char * | , | ||
int | , | ||
int | , | ||
int | , | ||
int | , | ||
int | , | ||
double | , | ||
int | |||
) |
Definition at line 915 of file dcdlib.C.
References NAMD_write, and pad().
Referenced by ComputeQMMgr::recvPartQM(), and Output::recvReplicaDcdData().
int write_dcdstep | ( | int | , |
int | , | ||
float * | , | ||
float * | , | ||
float * | , | ||
double * | unitcell | ||
) |
Definition at line 736 of file dcdlib.C.
References LSEEK, NAMD_write, NFILE_POS, NSAVC_POS, NSTEP_POS, OFF_T, and READ.
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 | ||
) |