[gmx-developers] Free Format gro File
Jicun Li
jerkwin at gmail.com
Tue Oct 2 00:28:53 CEST 2012
Thank you very much, Mirco. I will try to understand the code and modify it.
Jicun
2012/10/1 Mirco Wahab <mirco.wahab at chemie.tu-freiberg.de>
> Am 02.10.2012 00:11, schrieb Mark Abraham:
>
>> On 2/10/2012 8:06 AM, Jicun Li wrote:
>>
>>> How can I modify the source code to support the free format gro file?
>>> Thank you very much.
>>>
>>
>> You could do that, but what's the advantage?
>>
>
> Probably because in C/C++, you have to copy each data field
> to a separate buffer in order to handle this data item correctly
> and efficiently for yourself. This might even be a hard task
> for a newbie, I'd think (and remember ...).
>
> If you can trust the data to be white-space separated, this task
> will become trivial (sscanf, istreams and friends).
>
> M.
>
>
> --
> gmx-developers mailing list
> gmx-developers at gromacs.org
> http://lists.gromacs.org/**mailman/listinfo/gmx-**developers<http://lists.gromacs.org/mailman/listinfo/gmx-developers>
> Please don't post (un)subscribe requests to the list. Use the www
> interface or send it to gmx-developers-request@**gromacs.org<gmx-developers-request at gromacs.org>
> .
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20121001/2d63e008/attachment.html>
More information about the gromacs.org_gmx-developers
mailing list