Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/yatisht/usher
Browse files Browse the repository at this point in the history
  • Loading branch information
yceh committed Dec 8, 2022
2 parents b711f5c + 41102ad commit 37b1149
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/usher-sampled/driver/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ int main(int argc, char **argv) {
if (options.initial_optimization_radius<=0) {
options.parsimony_threshold=INT_MAX;
}
num_threads=std::max(2u,num_threads);
options.desired_optimization_msec=optimiation_minutes*60000;
fprintf(stderr, "Num threads %d\n",num_threads);
#ifdef __linux
Expand Down
3 changes: 2 additions & 1 deletion src/usher-sampled/driver/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iostream>
#include <memory>
#include <mutex>
Expand Down Expand Up @@ -399,7 +400,7 @@ static void child_proc(int fd, TreeCollectionPtr &trees_ptr) {
tbb::task_scheduler_init init(num_threads);
if (existing_samples != "") {
MAT::Tree &tree = iter->second->expanded_tree;
std::fstream sample_file(existing_samples);
std::fstream sample_file(existing_samples,std::ios_base::in);
std::string sample_name;
std::vector<MAT::Node *> nodes_to_extract;
while (sample_file) {
Expand Down

0 comments on commit 37b1149

Please sign in to comment.