Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 3af709b8 authored by snuverink_j's avatar snuverink_j
Browse files

fix unitialised values: initialise reference for hypervolume calculation to the origin, for #235

parent 3b04e36b
No related branches found
No related tags found
No related merge requests found
...@@ -381,6 +381,10 @@ double Hypervolume::FromFile(std::string file) ...@@ -381,6 +381,10 @@ double Hypervolume::FromFile(std::string file)
// initialise the reference point // initialise the reference point
ref.objectives = (OBJECTIVE*) malloc(sizeof(OBJECTIVE) * maxn); ref.objectives = (OBJECTIVE*) malloc(sizeof(OBJECTIVE) * maxn);
ref.tnode = (avl_node_t*) malloc(sizeof(avl_node_t)); ref.tnode = (avl_node_t*) malloc(sizeof(avl_node_t));
// initialise to zero (origin)
for (int i = 0; i < maxn; i++) ref.objectives[i] = 0;
/* /*
if (argc == 2) if (argc == 2)
{printf("No reference point provided: using the origin\n"); {printf("No reference point provided: using the origin\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment