From bdc9269dcd4c5a086def4ce904528b96a475af9f Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 17 Feb 2017 00:14:45 +0800 Subject: Update description & usage; change variable name to be more clear --- mass_profile/calc_lx_beta.cpp | 23 ++++++++++++----------- mass_profile/calc_lx_dbeta.cpp | 24 ++++++++++++------------ 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/mass_profile/calc_lx_beta.cpp b/mass_profile/calc_lx_beta.cpp index dcbf1ad..11d7b04 100644 --- a/mass_profile/calc_lx_beta.cpp +++ b/mass_profile/calc_lx_beta.cpp @@ -1,9 +1,10 @@ -/* - Perform a double-beta density model fitting to the surface brightness data - Author: Junhua Gu - Last modified: 2011.01.01 - This code is distributed with no warrant -*/ +/** + * Calculate the total luminosity and flux within the specified radius. + * + * Base on 'fit_beta_sbp.cpp' and supersede 'calc_lx.cpp' + * + * Author: Junhua Gu + */ #include #include @@ -71,7 +72,7 @@ int main(int argc,char* argv[]) { if(argc<4) { - cerr< "< [cfunc2_erg ...]"<& pj=dynamic_cast&>(f.get_model()); - pj.attach_cfunc(cf_bolo_erg); + pj.attach_cfunc(cf_erg); diff --git a/mass_profile/calc_lx_dbeta.cpp b/mass_profile/calc_lx_dbeta.cpp index c2f6a10..31addeb 100644 --- a/mass_profile/calc_lx_dbeta.cpp +++ b/mass_profile/calc_lx_dbeta.cpp @@ -1,10 +1,10 @@ -/* - Perform a double-beta density model fitting to the surface brightness data - Author: Junhua Gu - Last modified: 2011.01.01 - This code is distributed with no warrant -*/ - +/** + * Calculate the total luminosity and flux within the specified radius. + * + * Base on 'fit_dbeta_sbp.cpp' and supersede 'calc_lx.cpp' + * + * Author: Junhua Gu + */ #include #include @@ -71,7 +71,7 @@ int main(int argc,char* argv[]) { if(argc<4) { - cerr< "< [cfunc2_erg ...]"<& pj=dynamic_cast&>(f.get_model()); - pj.attach_cfunc(cf_bolo_erg); + pj.attach_cfunc(cf_erg); mv=f.eval_model_raw(radii,p); double flux_erg=0; -- cgit v1.2.2