Commit bc6f4958 authored by Leonardo Solis's avatar Leonardo Solis

#31, corrected setArg problem: size of num_of_genes

parent 1b566cc1
......@@ -44,7 +44,7 @@ typedef struct
unsigned int num_of_generations;
unsigned int pop_size;
unsigned int num_of_genes;
unsigned char num_of_genes;
float tournament_rate;
float crossover_rate;
float mutation_rate;
......
......@@ -338,7 +338,7 @@ filled with clock() */
dockpars.num_of_energy_evals = (unsigned int) mypars->num_of_energy_evals;
dockpars.num_of_generations = (unsigned int) mypars->num_of_generations;
dockpars.pop_size = (unsigned int) mypars->pop_size;
dockpars.num_of_genes = (unsigned int)(myligand_reference.num_of_rotbonds + 6);
dockpars.num_of_genes = (unsigned char)(myligand_reference.num_of_rotbonds + 6);
dockpars.tournament_rate = (mypars->tournament_rate)/100;
dockpars.crossover_rate = (mypars->crossover_rate)/100;
dockpars.mutation_rate = (mypars->mutation_rate)/100;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment