/* * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * Evgeniy Alekseev wrote this file. As long as you retain this notice you * can do whatever you want with this stuff. If we meet some day, and you think * this stuff is worth it, you can buy me a beer in return * ---------------------------------------------------------------------------- */ /** * @file */ #include #include /** * @fn printing_trj */ int printing_trj (const char *filename, const int atoms, const int num_types, const int *num_mol, const int *num_atoms, const char *ch_atom_types, const int *atom_types, const float *coords) { int cur_mol, cur_type[2], i, j, k, l; FILE *f_out; /* cur_mol number of current molecule * cur_type number of current atom type * f_out output file */ cur_mol = 1; f_out = fopen (filename, "w"); fprintf (f_out, " %6i\n", atoms); i = 0; while (i < atoms) { cur_type[0] = 0; for (j=0; j