Skip to content

Commit

Permalink
fix bug in main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
lhm217 committed May 5, 2015
1 parent 5592b98 commit c751e37
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions fogsrc/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
#include "../application/spmv.hpp"
#include "../application/cc.hpp"
#include "../application/bfs.hpp"
#include "../application/1-Nh.hpp"
#include "../application/2-Nh.hpp"

//boost::property_tree::ptree pt;
//boost::program_options::options_description desc;
Expand Down Expand Up @@ -120,34 +118,6 @@ void start_engine(std::string prog_name)
fog_engine<cc_program<T>, cc_vert_attr, cc_vert_attr, T> *eng;
(*(eng = new fog_engine<cc_program<T>, cc_vert_attr, cc_vert_attr, T>(TARGET_ENGINE)))();
delete eng;
}else if( prog_name == "1nh" ){
OneNh_program<T> * onenh = new OneNh_program<T>;
unsigned int query_id = vm["1nh::query-root"].as<unsigned long>();
if(0 == query_id)
{
std::cout<<"You didn't input the 1nh::query_root or you chose the default value:0, the program will start at query_root=0."<<std::endl;
}
onenh->run(query_id);
/*
OneNh_program<T>::query_root = vm["1nh::query-root"].as<unsigned long>();
unsigned int root_vid = OneNh_program<T>::query_root;
if(0 == root_vid)
{
std::cout<<"You didn't input the 1nh::query_root or you chose the default value:0, the program will start at query_root=0."<<std::endl;
}
PRINT_DEBUG( "OneNh_program query_root = %d\n", OneNh_program<T>::query_root);
fog_engine<OneNh_program<T>, one_nh_vert_attr, one_nh_vert_attr, T> *eng;
(*(eng = new fog_engine<OneNh_program<T>, one_nh_vert_attr, one_nh_vert_attr, T>(TARGET_ENGINE)))();
delete eng;
*/
}else if( prog_name == "2nh" ){
TwoNh_program<T> * twonh = new TwoNh_program<T>;
unsigned int query_id = vm["2nh::query-root"].as<unsigned long>();
if(0 == query_id)
{
std::cout<<"You didn't input the 2nh::query_root or you chose the default value:0, the program will start at query_root=0."<<std::endl;
}
twonh->run(query_id);
}else if (prog_name == "demo"){
PRINT_DEBUG("demo starts!\n");

Expand Down

0 comments on commit c751e37

Please sign in to comment.