#include "largefiles.h"
#include "fastio.h"
#include <sys/stat.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <math.h>
#include "hash.h"
#include "endianswap.h"
#include "molfile_plugin.h"
Go to the source code of this file.
Compounds | |
struct | jshandle |
Defines | |
#define | INFOMSGS 1 |
#define | ENABLEJSSHORTREADS 1 |
#define | VMDPLUGIN_STATIC |
#define | myintptrtype unsigned long |
#define | M_PI_2 1.57079632679489661922 |
#define | JSHEADERSTRING "JS Binary Structure and Trajectory File Format" |
#define | JSMAGICNUMBER 0x31337 |
#define | JSENDIANISM 0x12345678 |
#define | JSMAJORVERSION 2 |
#define | JSMINORVERSION 19 |
#define | JSNFRAMESOFFSET (strlen(JSHEADERSTRING) + 20) |
#define | JSNOERR 0 |
#define | JSBADFILE 1 |
#define | JSBADFORMAT 2 |
#define | JSBLOCKIO_THRESH 50000 |
#define | JSOPT_NOOPTIONS 0x00000000 |
#define | JSOPT_TS_BLOCKIO 0x10000000 |
#define | JSOPT_STRUCTURE 0x00000001 |
#define | JSOPT_BONDS 0x00000002 |
#define | JSOPT_BONDORDERS 0x00000004 |
#define | JSOPT_ANGLES 0x00000008 |
#define | JSOPT_CTERMS 0x00000010 |
#define | JSOPT_OCCUPANCY 0x00000100 |
#define | JSOPT_BFACTOR 0x00000200 |
#define | JSOPT_MASS 0x00000400 |
#define | JSOPT_CHARGE 0x00000800 |
#define | JSOPT_RADIUS 0x00001000 |
#define | JSOPT_ATOMICNUMBER 0x00002000 |
Functions | |
void * | alloc_aligned_ptr (size_t sz, size_t blocksz, void **unalignedptr) |
int | read_js_timestep_pagealign_size (void *v, int *pagealignsz) |
void | js_blockio_check_and_set (jshandle *js) |
void * | open_js_read (const char *path, const char *filetype, int *natoms) |
int | js_calc_timestep_blocking_info (void *mydata) |
int | read_js_structure (void *mydata, int *optflags, molfile_atom_t *atoms) |
int | read_js_bonds (void *v, int *nbonds, int **fromptr, int **toptr, float **bondorder, int **bondtype, int *nbondtypes, char ***bondtypename) |
int | read_js_angles (void *v, int *numangles, int **angles, double **angleforces, int *numdihedrals, int **dihedrals, double **dihedralforces, int *numimpropers, int **impropers, double **improperforces, int *numcterms, int **cterms, int *ctermcols, int *ctermrows, double **ctermforces) |
int | read_js_timestep_index_offsets (void *v, int natoms, ptrdiff_t frameindex, int firstatom, int numatoms, fio_fd *directio_fd, ptrdiff_t *startoffset, ptrdiff_t *fileoffset, ptrdiff_t *readlen) |
int | read_js_timestep (void *v, int natoms, molfile_timestep_t *ts) |
void | close_js_read (void *v) |
void * | open_js_write (const char *path, const char *filetype, int natoms) |
int | write_js_structure (void *mydata, int optflags, const molfile_atom_t *atoms) |
int | write_js_bonds (void *mydata, int nbonds, int *fromptr, int *toptr, float *bondorder, int *bondtype, int nbondtypes, char **bondtypename) |
int | write_js_angles (void *v, int numangles, const int *angles, const double *angleforces, int numdihedrals, const int *dihedrals, const double *dihedralforces, int numimpropers, const int *impropers, const double *improperforces, int numcterms, const int *cterms, int ctermcols, int ctermrows, const double *ctermforces) |
int | write_js_timestep (void *v, const molfile_timestep_t *ts) |
void | close_js_write (void *v) |
VMDPLUGIN_API int | VMDPLUGIN_init () |
VMDPLUGIN_API int | VMDPLUGIN_register (void *v, vmdplugin_register_cb cb) |
VMDPLUGIN_API int | VMDPLUGIN_fini () |
Variables | |
molfile_plugin_t | plugin |
|
Definition at line 80 of file jsplugin.c. |
|
Definition at line 77 of file jsplugin.c. |
|
Definition at line 137 of file jsplugin.c. |
|
Definition at line 138 of file jsplugin.c. |
|
Definition at line 144 of file jsplugin.c. Referenced by js_blockio_check_and_set. |
|
Definition at line 129 of file jsplugin.c. Referenced by open_js_read, and open_js_write. |
|
Definition at line 127 of file jsplugin.c. Referenced by open_js_read, and open_js_write. |
|
Definition at line 128 of file jsplugin.c. Referenced by open_js_read, and open_js_write. |
|
Definition at line 131 of file jsplugin.c. Referenced by open_js_read, open_js_write, and VMDPLUGIN_init. |
|
Definition at line 132 of file jsplugin.c. Referenced by open_js_write, and VMDPLUGIN_init. |
|
Definition at line 134 of file jsplugin.c. Referenced by close_js_write. |
|
Definition at line 136 of file jsplugin.c. |
|
Definition at line 162 of file jsplugin.c. Referenced by read_js_structure, write_js_angles, and write_js_structure. |
|
Definition at line 171 of file jsplugin.c. Referenced by read_js_structure, and write_js_structure. |
|
Definition at line 167 of file jsplugin.c. Referenced by read_js_structure, and write_js_structure. |
|
Definition at line 161 of file jsplugin.c. Referenced by read_js_bonds, read_js_structure, write_js_bonds, and write_js_structure. |
|
Definition at line 160 of file jsplugin.c. Referenced by read_js_bonds, read_js_structure, write_js_bonds, and write_js_structure. |
|
Definition at line 169 of file jsplugin.c. Referenced by read_js_structure, and write_js_structure. |
|
Definition at line 163 of file jsplugin.c. Referenced by read_js_structure, write_js_angles, and write_js_structure. |
|
Definition at line 168 of file jsplugin.c. Referenced by read_js_structure, and write_js_structure. |
|
Definition at line 148 of file jsplugin.c. |
|
Definition at line 166 of file jsplugin.c. Referenced by read_js_structure, and write_js_structure. |
|
Definition at line 170 of file jsplugin.c. Referenced by read_js_structure, and write_js_structure. |
|
Definition at line 159 of file jsplugin.c. Referenced by read_js_structure, and write_js_structure. |
|
Definition at line 156 of file jsplugin.c. Referenced by js_blockio_check_and_set, open_js_read, read_js_structure, read_js_timestep_pagealign_size, write_js_structure, and write_js_timestep. |
|
Definition at line 124 of file jsplugin.c. Referenced by read_js_timestep, and write_js_timestep. |
|
Definition at line 106 of file jsplugin.c. |
|
Definition at line 83 of file jsplugin.c. |
|
Definition at line 114 of file jsplugin.c. Referenced by js_calc_timestep_blocking_info. |
|
Definition at line 1464 of file jsplugin.c. References jshandle::angles, jshandle::bondfrom, jshandle::bondorders, jshandle::bondto, jshandle::cterms, jshandle::dihedrals, jshandle::directio_enabled, jshandle::directio_fd, jshandle::directio_ucell_ptr, jshandle::fd, fio_fclose, jshandle::impropers, and jshandle::path. Referenced by VMDPLUGIN_init. |
|
Definition at line 2129 of file jsplugin.c. References jshandle::angles, jshandle::bondfrom, jshandle::bondorders, jshandle::bondto, jshandle::cterms, jshandle::dihedrals, jshandle::directio_ucell_ptr, jshandle::fd, fio_fclose, fio_fseek, FIO_SEEK_END, FIO_SEEK_SET, fio_write_int32, jshandle::impropers, JSNFRAMESOFFSET, and jshandle::nframes. Referenced by VMDPLUGIN_init. |
|
Definition at line 248 of file jsplugin.c. References jshandle::directio_block_size, JSBLOCKIO_THRESH, JSOPT_TS_BLOCKIO, MOLFILE_DIRECTIO_MIN_BLOCK_SIZE, jshandle::natoms, and jshandle::optflags. Referenced by write_js_structure, and write_js_timestep. |
|
Definition at line 432 of file jsplugin.c. References alloc_aligned_ptr, jshandle::directio_block_size, jshandle::directio_enabled, jshandle::directio_fd, jshandle::directio_ucell_blkbuf, jshandle::directio_ucell_ptr, jshandle::fd, fio_fseek, fio_ftell, FIO_SEEK_SET, fio_size_t, jshandle::natoms, jshandle::ts_crd_padsz, jshandle::ts_crd_sz, jshandle::ts_file_offset, jshandle::ts_ucell_padsz, jshandle::ts_ucell_sz, and jshandle::verbose. Referenced by read_js_structure, write_js_structure, and write_js_timestep. |
|
|
|
Definition at line 1193 of file jsplugin.c. References jshandle::angles, jshandle::cterms, jshandle::dihedrals, jshandle::impropers, jshandle::numangles, jshandle::numcterms, jshandle::numdihedrals, and jshandle::numimpropers. Referenced by VMDPLUGIN_init. |
|
Definition at line 1117 of file jsplugin.c. References jshandle::bondfrom, jshandle::bondorders, jshandle::bondto, JSOPT_BONDORDERS, JSOPT_BONDS, jshandle::nbonds, and jshandle::optflags. Referenced by VMDPLUGIN_init. |
|
|
|
Definition at line 1228 of file jsplugin.c. References jshandle::directio_fd, fio_fd, fio_size_t, jshandle::parsed_structure, read_js_structure, jshandle::ts_crd_padsz, jshandle::ts_file_offset, and jshandle::ts_ucell_padsz. |
|
Definition at line 229 of file jsplugin.c. References jshandle::directio_block_size, jshandle::directio_pgsize_queried, JSOPT_TS_BLOCKIO, and jshandle::optflags. Referenced by VMDPLUGIN_init. |
|
Definition at line 2209 of file jsplugin.c. References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS. |
|
|
Definition at line 2204 of file jsplugin.c. References VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS. |
|
Definition at line 2010 of file jsplugin.c. References jshandle::angles, jshandle::cterms, jshandle::dihedrals, jshandle::impropers, JSOPT_ANGLES, JSOPT_CTERMS, jshandle::numangles, jshandle::numcterms, jshandle::numdihedrals, jshandle::numimpropers, and jshandle::optflags. Referenced by VMDPLUGIN_init. |
|
Definition at line 1930 of file jsplugin.c. References jshandle::bondfrom, jshandle::bondorders, jshandle::bondto, JSOPT_BONDORDERS, JSOPT_BONDS, jshandle::nbonds, jshandle::optflags, and jshandle::verbose. Referenced by VMDPLUGIN_init. |
|
|
|
Definition at line 2167 of file jsplugin.c. |