diff options
| author | Charlie Blake | 2018-06-15 11:13:48 +0100 |
|---|---|---|
| committer | GitHub | 2018-06-15 11:13:48 +0100 |
| commit | 094a651cbbcda3a343f5f133bab95160db8c5dc2 (patch) | |
| tree | d25077e5b092755f83fbbf0d7625eb2ad9b4912e /src/main/main.cpp | |
| parent | Merge pull request #60 from thecharlesblake/cache-mem-limit (diff) | |
| parent | Fix bug with full cache crash (diff) | |
| download | metasol-094a651cbbcda3a343f5f133bab95160db8c5dc2.tar.gz metasol-094a651cbbcda3a343f5f133bab95160db8c5dc2.zip | |
Merge pull request #61 from thecharlesblake/parallelise-solvability
Parallelise solvability
Diffstat (limited to 'src/main/main.cpp')
| -rw-r--r-- | src/main/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp index 8c2956d..f8f3d8f 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -49,9 +49,9 @@ int main(int argc, const char* argv[]) { if (!rules) return EXIT_FAILURE; // If the user has asked for a solvability percentage, calculates it - if (clh.get_solvability()) { + if (clh.get_solvability() > 0) { solvability_calc solv_c(*rules, clh.get_cache_capacity()); - solv_c.calculate_solvability_percentage(); + solv_c.calculate_solvability_percentage(clh.get_solvability(), clh.get_cores()); } // If a random deal seed has been supplied, solves it else if (clh.get_random_deal() != -1) { |
