- if (numComp != 1) {
- if (numGroups == 0) {
- //get score for all users groups
- for (int i = 0; i < tmap->namesOfGroups.size(); i++) {
- groups.push_back(tmap->namesOfGroups[i]);
- }
- }else {
- for (int i = 0; i < globaldata->Groups.size(); i++) {
- groups.push_back(globaldata->Groups[i]);
+ results = driver(t, namesOfGroupCombos, lines[0].start, lines[0].num, tmap);
+
+ //force parent to wait until all the processes are done
+ for (int i=0;i<processIDS.size();i++) {
+ int temp = processIDS[i];
+ wait(&temp);
+ }
+
+ if (m->control_pressed) { return results; }
+
+ //get data created by processes
+ for (int i=0;i<processIDS.size();i++) {
+ ifstream in;
+ string s = outputDir + toString(processIDS[i]) + ".pars.results.temp";
+ m->openInputFile(s, in);
+
+ //get scores
+ if (!in.eof()) {
+ int num;
+ in >> num; m->gobble(in);
+
+ if (m->control_pressed) { break; }
+
+ double w;
+ for (int j = 0; j < num; j++) {
+ in >> w;
+ results.push_back(w);