Loading src/np_cluster.cpp→src/cluster/np_cluster.cpp +10 −2 Original line number Original line Diff line number Diff line Loading @@ -9,7 +9,7 @@ using namespace std; using namespace std; extern void cluster(); extern void cluster(string config_file, string data_file, string output_path); /*! \brief Main program entry point. /*! \brief Main program entry point. * * Loading @@ -20,6 +20,14 @@ extern void cluster(); * the configuration and runs the main program. * the configuration and runs the main program. */ */ int main(int argc, char **argv) { int main(int argc, char **argv) { cluster(); string config_file = "../../test_data/cluster/DEDFB"; string data_file = "../../test_data/cluster/DCLU"; string output_path = "."; if (argc == 4) { config_file = string(argv[1]); data_file = string(argv[2]); output_path = string(argv[3]); } cluster(config_file, data_file, output_path); return 0; return 0; } } src/np_sphere.cpp→src/sphere/np_sphere.cpp +10 −2 Original line number Original line Diff line number Diff line Loading @@ -9,7 +9,7 @@ using namespace std; using namespace std; extern void sphere(); extern void sphere(string config_file, string data_file, string output_path); /*! \brief Main program entry point. /*! \brief Main program entry point. * * Loading @@ -20,6 +20,14 @@ extern void sphere(); * the configuration and runs the main program. * the configuration and runs the main program. */ */ int main(int argc, char **argv) { int main(int argc, char **argv) { sphere(); string config_file = "../../test_data/sphere/DEDFB"; string data_file = "../../test_data/sphere/DCLU"; string output_path = "."; if (argc == 4) { config_file = string(argv[1]); data_file = string(argv[2]); output_path = string(argv[3]); } sphere(config_file, data_file, output_path); return 0; return 0; } } Loading
src/np_cluster.cpp→src/cluster/np_cluster.cpp +10 −2 Original line number Original line Diff line number Diff line Loading @@ -9,7 +9,7 @@ using namespace std; using namespace std; extern void cluster(); extern void cluster(string config_file, string data_file, string output_path); /*! \brief Main program entry point. /*! \brief Main program entry point. * * Loading @@ -20,6 +20,14 @@ extern void cluster(); * the configuration and runs the main program. * the configuration and runs the main program. */ */ int main(int argc, char **argv) { int main(int argc, char **argv) { cluster(); string config_file = "../../test_data/cluster/DEDFB"; string data_file = "../../test_data/cluster/DCLU"; string output_path = "."; if (argc == 4) { config_file = string(argv[1]); data_file = string(argv[2]); output_path = string(argv[3]); } cluster(config_file, data_file, output_path); return 0; return 0; } }
src/np_sphere.cpp→src/sphere/np_sphere.cpp +10 −2 Original line number Original line Diff line number Diff line Loading @@ -9,7 +9,7 @@ using namespace std; using namespace std; extern void sphere(); extern void sphere(string config_file, string data_file, string output_path); /*! \brief Main program entry point. /*! \brief Main program entry point. * * Loading @@ -20,6 +20,14 @@ extern void sphere(); * the configuration and runs the main program. * the configuration and runs the main program. */ */ int main(int argc, char **argv) { int main(int argc, char **argv) { sphere(); string config_file = "../../test_data/sphere/DEDFB"; string data_file = "../../test_data/sphere/DCLU"; string output_path = "."; if (argc == 4) { config_file = string(argv[1]); data_file = string(argv[2]); output_path = string(argv[3]); } sphere(config_file, data_file, output_path); return 0; return 0; } }