Skip to content

Commit

Permalink
Remove commented out old code
Browse files Browse the repository at this point in the history
  • Loading branch information
mcraig-ibme committed Feb 12, 2020
1 parent df4db30 commit cc4bffc
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions fwdmodel_cest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -374,33 +374,6 @@ void CESTFwdModel::EvaluateCestRstar(const ColumnVector &params, ColumnVector &r
//LOG << "pool " << pool << endl;
//LOG << "frac " << pool/water << endl;

// Need to use a spline interpolation
/* vector<double> vec_wvec;
vector<double> vec_water_only;
vector<double> vec_with_pool;
vec_wvec.reserve(wvec.Nrows());
vec_water_only.reserve(wvec.Nrows());
vec_with_pool.reserve(wvec.Nrows());
for (int ii = 1; ii <= wvec.Nrows(); ++ii)
{
vec_wvec.push_back(wvec(ii));
vec_water_only.push_back(water_only(ii));
vec_with_pool.push_back(with_pool(ii));
}
NaturalSplineInterpolator interp_water_only(vec_wvec, vec_water_only);
NaturalSplineInterpolator interp_with_pool(vec_wvec, vec_with_pool);
water = interp_water_only(ppm_eval * wlam / 1e6);
pool = interp_with_pool(ppm_eval * wlam / 1e6);
LOG << "Spline interp" << endl;
LOG << "water " << water << endl;
LOG << "pool " << pool << endl;
LOG << "frac " << pool/water << endl;
*/

result.ReSize(1);
result(1) = 100 * (water - pool) / params(1);
// LOG << "res " << result.t() << endl;
Expand Down

0 comments on commit cc4bffc

Please sign in to comment.