aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@gmail.com>2016-06-07 23:02:41 +0800
committerAaron LI <aaronly.me@gmail.com>2016-06-07 23:02:41 +0800
commit695c64ecce86f764758ee0169348a06677267208 (patch)
tree983743cf978f750cc107481b3f16712bcb085d0f
parent0288d17a5c503c6446cf6990067d298737f53c7a (diff)
downloadchandra-acis-analysis-695c64ecce86f764758ee0169348a06677267208.tar.bz2
calc_distance: fix some -Werror
-rw-r--r--mass_profile/calc_distance.cc6
-rw-r--r--mass_profile/calc_distance_main.cc (renamed from mass_profile/call_calc_distance.cc)4
2 files changed, 5 insertions, 5 deletions
diff --git a/mass_profile/calc_distance.cc b/mass_profile/calc_distance.cc
index 1a637d3..91f2ea3 100644
--- a/mass_profile/calc_distance.cc
+++ b/mass_profile/calc_distance.cc
@@ -15,9 +15,9 @@ static double cm=1;
static double s=1;
static double km=1000*100;
static double Mpc=3.08568e+24*cm;
-static double kpc=3.08568e+21*cm;
-static double yr=365.*24.*3600.;
-static double Gyr=1e9*yr;
+//static double kpc=3.08568e+21*cm;
+//static double yr=365.*24.*3600.;
+//static double Gyr=1e9*yr;
static double H=71.*km/s/Mpc;
static const double c=299792458.*100.*cm;
//const double c=3e8*100*cm;
diff --git a/mass_profile/call_calc_distance.cc b/mass_profile/calc_distance_main.cc
index cbdd69a..28bdb70 100644
--- a/mass_profile/call_calc_distance.cc
+++ b/mass_profile/calc_distance_main.cc
@@ -9,8 +9,8 @@ static double s=1;
static double km=1000*100;
static double Mpc=3.08568e+24*cm;
static double kpc=3.08568e+21*cm;
-static double yr=365.*24.*3600.;
-static double Gyr=1e9*yr;
+//static double yr=365.*24.*3600.;
+//static double Gyr=1e9*yr;
static double H=71.*km/s/Mpc;
static const double c=299792458.*100.*cm;
//const double c=3e8*100*cm;