Example #1
0
CHARMMParameters::CHARMMParameters(base::TextInput top_file,
                                   base::TextInput par_file,
                                   bool translate_names_to_pdb) {
  // Parameter objects are not designed to be added into other containers
  set_was_used(true);
  read_topology_file(top_file, translate_names_to_pdb);

  if (par_file != base::TextInput()) {
    read_parameter_file(par_file);
  }
}
/***************************************************************************************
Function 	: main
Desc		: It starts the program execution. It first takes the program arguments and
				the read topology file to fill topology structure. After that it initializes
				the link structure to access the link cost of its neighbours and then it
				run the server which waits for STDIN or Input/Output on socket in while loop.
Parameters	: argc  - input argument count
			  argv  - Array of pointers to input argumerns
Return Val	: Integer
Comments	: 
 ****************************************************************************************/
int main(int argc , char *argv[])
{
	get_arguments(argc,argv);
	memset(&disabled_server_ids,0,num_servers);
	read_topology_file();
	num_servers = topology.num_servers +1;
	init_cost_table();
	port = topology.server_port;
	printf("\n My Port :%d",port);
	run_server_part();
	return 0;
}