/* * ---------------------------------------------------------------------------- * "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 #include #include #include "add_main.h" #include #include #include #include /** * @fn main */ int main(int argc, char *argv[]) /** * @return 1 - error in error_checking * @return 2 - input file does not exist * @return 3 - memory error * @return 4 - unknown flag * @return 0 - exit without errors */ { char tmp_str[2048]; int error, i, tmp_int; FILE *f_inp, *f_log; char input[256], logfile[256], output[256]; int log, *needed_mol, quiet, *true_label_mol; atom_info *_atom_info; system_info _system_info; /* input input file name * logfile log file name * output output file name * * log status of log-mode * needed_mol massive of numbers of needed molecule * num_atoms number of atoms * num_mol number of molecules * quiet status of quiet-mode * true_label_mol massive of true numbers of molecule for atoms * * _atom_info atom information structure */ set_defaults (input, &log, output, &quiet); for (i=1; i