 |
Bsoft
2.1.0
Bernard's software package
|
Go to the documentation of this file.
23 "Usage: bcrystal [options] in.pdb out.pdb",
24 "----------------------------------------",
25 "Calculates coordinates for multiple unit cells.",
28 "-translate 0,-50,22 Translate (angstrom)",
29 "-cells 2,5,3 Number of unit cells in each lattice direction",
32 "-verbose 7 Verbose output",
33 "-rename D Rename molecules from the given letter.",
34 "-symmetry 1 Space group",
35 "-unitcell 50,50,50,90,90,90 Unit cell parameters (angstrom & degrees)",
38 "-parameters parm.star Atomic properties parameter file (default atom_prop.star)",
43 int main(
int argc,
char **argv)
57 for ( curropt = option; curropt; curropt = curropt->
next ) {
58 if ( curropt->
tag ==
"rename" )
59 if ( ( first_name = curropt->
value[0] ) < 1 )
60 cerr <<
"-rename: The first molecule name must be specified!" << endl;
61 if ( curropt->
tag ==
"translate" ) {
64 cerr <<
"-translate: Three values must be specified!" << endl;
66 if ( curropt->
tag ==
"cells" ) {
69 cerr <<
"-cells: Three values must be specified" << endl;
71 if ( curropt->
tag ==
"unitcell" )
73 if ( curropt->
tag ==
"symmetry" )
75 cerr <<
"-symmetry: The space group number must be specified!" << endl;
76 if ( curropt->
tag ==
"parameters" )
83 Bstring filename = argv[optind++];
85 if ( molgroup == NULL ) {
86 cerr <<
"Error: No coordinate file given!" << endl;
90 if ( t[0] != 0 || t[1] != 0 || t[2] != 0 )
99 if ( optind < argc ) {
A class for a command line input option.
int molgroup_kill(Bmolgroup *molgroup)
Destroys a molecule group.
int molecule_update_comment(Bmolgroup *molgroup, int n, char **strings)
Puts a set of strings and time in the main comment of a molecule group.
int main(int argc, char **argv)
int bexit(int value)
Exit function for cleanup and debugging.
Boption * get_option_list(const char *use[], int argc, char *argv[], int &optind)
Parses command line arguments based on a template.
Bmolgroup * read_molecule(const char *filename, const char *select, const char *paramfile)
The generalized function for reading molecular files.
Header file for option handlers.
int molgroup_generate_crystal(Bmolgroup *molgroup, UnitCell unit_cell, Vector3< int > number)
Generates unit cells from a set of coordinates.
Header file for reading reflection files.
Utilities for timing functions.
double timer_start()
Starts timer and prints the time.
Header file for general utilities.
Vector3< double > vector3()
double timer_report(double lasttime)
Reports the time elapsed since a given time.
int write_molecule(char *filename, Bmolgroup *molgroup)
Writes a molecule group.
int molgroup_rename(Bmolgroup *molgroup, char first_name)
Renames molecules.
Library routines used for symmetry operations on atomic coordinates.
int option_kill(Boption *option)
Deallocates a linked list of option structures.
Library routines used for atomic coordinates.