|
|
本帖最后由 ene 于 2022-9-9 01:59 编辑
因为DCD本质上是个FORTRAN unformatted binary,虽然读写比较快,但是扩展性和灵活性非常差,是一种很过时的标准。unformatted binary的每个record开头都会有个header,里面记录了数据的大小,这就是总帧数的来源。就像你说的,新的程序就不该再用FORTRAN unformatted binary这种垃圾格式。你可以看看NAMD开发者是怎么评价DCD的:
https://www.ks.uiuc.edu/Research ... dlib_8C_source.html- 7 /*
- 8 dcdlib contains C routines for reading and writing binary DCD
- 9 files. The output format of these files is based on binary FORTRAN
- 10 output, so its pretty ugly. If you are squimish, don't look!
- 11 */
- ...
- 795 /* No useful file format description of the DCD format can be found. */
- 796 /* The closest approximation purporting to be a format description is */
- 797 /* a block of fortran formated statements. Ultra lame. */
- 798
- 799 /* Therefore I simply reverse engineered the sequential output. */
- 800 /* -EJB */
复制代码 |
评分 Rate
-
查看全部评分 View all ratings
|