GLYLIB
0.3.0b
|
#include <AMBER/amber.h>
Go to the source code of this file.
Functions | |
void | write_amber_prmtop (fileset F, amber_prmtop *P) |
Writes out an amber prmtop file.
There should be an amber_prmtop structure available that contains the proper information. It is up to the calling function to make any needed modifications to that structure. See also the read_amber_prmtop function. The typical flow goes something like this:
Note, also, that the amber_prmtop struct contains content and formatting information. It is the duty of the calling program to get that right. This function will provide only internal checks -- that it, it will make sure that the string lengths match the data information. **But** it will get formatting information from the interpreted units in the amber_prmtop_section structure and -not- from the original formatting string. **However** it will write the original string in *FORMAT out to the file. So, make sure there is a match.
Definition in file write_amber_prmtop.c.
void write_amber_prmtop | ( | fileset | F, |
amber_prmtop * | P | ||
) |
Open the file
Write the version info
Loop through all the sections
Definition at line 33 of file write_amber_prmtop.c.
References amber_prmtop_section::D, fileset::F, amber_prmtop_section::FORMAT, myfopen(), mywhine(), fileset::N, amber_prmtop_section::N, amber_prmtop_section::npl, amber_prmtop::nS, amber_prmtop_section::nt, amber_prmtop::S, and amber_prmtop::VERSION.