/*
 * Function: main
 * Parameter(s): built in parameters that has command line arguments stored in it.
 * Returns: exit status of the program
 * Description: The main controller of the whole program,
 * connects with other functions and accomplishes the given task.
 */
int main(int argc, char* argv[]) {

	read_args(argc, argv);
	read_jobs();
	start_scheduler();

	return EXIT_SUCCESS;
}
Ejemplo n.º 2
0
load_balance::load_balance(const std::string &filename, mpi::communicator &comm)
{
	m_comm = comm;
	m_filename = filename;
	
	// Populates the m_jobs vector of commands.
	read_jobs();
	
}