From 405b19cfb985f2f34570c403ef14876bccd502a3 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 17 Feb 2017 23:21:46 +0800 Subject: Remove the unused mass_profile/fit_direct_beta.cpp --- mass_profile/Makefile | 5 +--- mass_profile/fit_direct_beta.cpp | 61 ---------------------------------------- 2 files changed, 1 insertion(+), 65 deletions(-) delete mode 100644 mass_profile/fit_direct_beta.cpp diff --git a/mass_profile/Makefile b/mass_profile/Makefile index 2f9ed26..c13b312 100644 --- a/mass_profile/Makefile +++ b/mass_profile/Makefile @@ -24,7 +24,7 @@ endif OPT_UTIL_INC ?= -I../opt_utilities TARGETS= fit_nfw_sbp fit_dbeta_sbp fit_beta_sbp \ - fit_direct_beta fit_wang2012_model \ + fit_wang2012_model \ fit_nfw_mass fit_mt_pl fit_lt_pl fit_mt_bpl \ fit_lt_bpl calc_lx_dbeta calc_lx_beta HEADERS= projector.hpp spline.hpp vchisq.hpp @@ -48,9 +48,6 @@ fit_wang2012_model: fit_wang2012_model.o fit_nfw_mass: fit_nfw_mass.o $(CXX) $(CXXFLAGS) $^ -o $@ $(OPT_UTIL_INC) -fit_direct_beta: fit_direct_beta.o - $(CXX) $(CXXFLAGS) $^ -o $@ $(OPT_UTIL_INC) - calc_lx_dbeta: calc_lx_dbeta.o beta_cfg.o report_error.o $(CXX) $(CXXFLAGS) $^ -o $@ $(OPT_UTIL_INC) diff --git a/mass_profile/fit_direct_beta.cpp b/mass_profile/fit_direct_beta.cpp deleted file mode 100644 index ce9c63c..0000000 --- a/mass_profile/fit_direct_beta.cpp +++ /dev/null @@ -1,61 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include "methods/aga/aga.hpp" -#include -using namespace std; -using namespace opt_utilities; - - - -int main(int argc,char* argv[]) -{ - - if(argc!=2) - { - cerr<<"Usage:"<"<,double,string> f; - - f.set_statistic(chisq,double,string>()); - f.set_opt_method(powell_method >()); - f.set_model(beta1d()); - dl_x_xe_y_ye dl; - ifstream ifs(argv[1]); - ifs>>dl; - f.load_data(dl.get_data_set()); - f.fit(); - - double rmin=f.get_data_set().get_data(0).get_x(); - double rmax=f.get_data_set().get_data(f.get_data_set().size()-1).get_x(); - cout<<"read terr 1 2\nskip single\n"; - for(size_t i=0;i