#include "largefiles.h"#include "fastio.h"#include <sys/stat.h>#include <sys/types.h>#include <stdio.h>#include <stdlib.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 | 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 11 |
| #define | JSNFRAMESOFFSET (strlen(JSHEADERSTRING) + 20) |
| #define | JSNOERR 0 |
| #define | JSBADFILE 1 |
| #define | JSBADFORMAT 2 |
| #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) |
| 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 (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 68 of file jsplugin.c. |
|
|
Definition at line 120 of file jsplugin.c. |
|
|
Definition at line 121 of file jsplugin.c. |
|
|
Definition at line 112 of file jsplugin.c. Referenced by open_js_read, and open_js_write. |
|
|
Definition at line 110 of file jsplugin.c. Referenced by open_js_read, and open_js_write. |
|
|
Definition at line 111 of file jsplugin.c. Referenced by open_js_read, and open_js_write. |
|
|
Definition at line 114 of file jsplugin.c. Referenced by open_js_read, open_js_write, and VMDPLUGIN_init. |
|
|
Definition at line 115 of file jsplugin.c. Referenced by open_js_write, and VMDPLUGIN_init. |
|
|
Definition at line 117 of file jsplugin.c. Referenced by close_js_write. |
|
|
Definition at line 119 of file jsplugin.c. |
|
|
Definition at line 138 of file jsplugin.c. Referenced by read_js_structure, write_js_angles, and write_js_structure. |
|
|
Definition at line 147 of file jsplugin.c. Referenced by read_js_structure, and write_js_structure. |
|
|
Definition at line 143 of file jsplugin.c. Referenced by read_js_structure, and write_js_structure. |
|
|
Definition at line 137 of file jsplugin.c. Referenced by read_js_bonds, read_js_structure, write_js_bonds, and write_js_structure. |
|
|
Definition at line 136 of file jsplugin.c. Referenced by read_js_bonds, read_js_structure, write_js_bonds, and write_js_structure. |
|
|
Definition at line 145 of file jsplugin.c. Referenced by read_js_structure, and write_js_structure. |
|
|
Definition at line 139 of file jsplugin.c. Referenced by read_js_structure, write_js_angles, and write_js_structure. |
|
|
Definition at line 144 of file jsplugin.c. Referenced by read_js_structure, and write_js_structure. |
|
|
Definition at line 124 of file jsplugin.c. |
|
|
Definition at line 142 of file jsplugin.c. Referenced by read_js_structure, and write_js_structure. |
|
|
Definition at line 146 of file jsplugin.c. Referenced by read_js_structure, and write_js_structure. |
|
|
Definition at line 135 of file jsplugin.c. Referenced by read_js_structure, and write_js_structure. |
|
|
Definition at line 132 of file jsplugin.c. Referenced by read_js_structure, and write_js_structure. |
|
|
Definition at line 107 of file jsplugin.c. Referenced by read_js_timestep, and write_js_timestep. |
|
|
Definition at line 91 of file jsplugin.c. |
|
|
Definition at line 71 of file jsplugin.c. |
|
||||||||||||||||
|
Definition at line 97 of file jsplugin.c. Referenced by js_calc_timestep_blocking_info. |
|
|
Definition at line 1078 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 1672 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 299 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, and jshandle::ts_ucell_sz. Referenced by read_js_structure, and write_js_structure. |
|
||||||||||||||||
|
||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Definition at line 915 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 839 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 1747 of file jsplugin.c. References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS. |
|
|
||||||||||||
|
Definition at line 1742 of file jsplugin.c. References VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS. |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Definition at line 1610 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 1547 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 1647 of file jsplugin.c. References molfile_timestep_t::A, molfile_timestep_t::alpha, molfile_timestep_t::B, molfile_timestep_t::beta, molfile_timestep_t::C, molfile_timestep_t::coords, jshandle::directio_ucell_blkbuf, jshandle::fd, fio_fwrite, molfile_timestep_t::gamma, M_PI_2, jshandle::nframes, jshandle::ts_crd_padsz, and jshandle::ts_ucell_padsz. Referenced by VMDPLUGIN_init. |
|
|
Definition at line 1710 of file jsplugin.c. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002