-// Copyright (C) 2007-2014 CEA/DEN, EDF R&D
+// Copyright (C) 2007-2016 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#include <sstream>
-const double INTERP_KERNEL::BoxSplittingOptions::DFT_EFFECIENCY=0.5;
+const double INTERP_KERNEL::BoxSplittingOptions::DFT_EFFICIENCY_GOAL=0.5;
-const double INTERP_KERNEL::BoxSplittingOptions::DFT_EFFECIENCY_SND=0.5;
+const double INTERP_KERNEL::BoxSplittingOptions::DFT_EFFICIENCY_THRESHOLD=0.7;
void INTERP_KERNEL::BoxSplittingOptions::init()
{
- _effeciency=DFT_EFFECIENCY;
- _effeciency_snd=DFT_EFFECIENCY_SND;
- _min_cell_direction=DFT_MIN_CELL_DIRECTION;
- _max_cells=DFT_MAX_CELLS;
+ _efficiency_goal=DFT_EFFICIENCY_GOAL;
+ _efficiency_threshold=DFT_EFFICIENCY_THRESHOLD;
+ _min_patch_length=DFT_MIN_PATCH_LENGTH;
+ _max_patch_length=DFT_MAX_PATCH_LENGTH;
+ _max_nb_cells_in_patch=DFT_MAX_PATCH_MEASURE;
}
std::string INTERP_KERNEL::BoxSplittingOptions::printOptions() const
{
std::ostringstream oss;
- oss << "Efficiency threshold: " << 100*_effeciency << "%"<< std::endl;
- oss << "Efficiency Snd threshold: " << 100*_effeciency_snd << "%"<< std::endl;
- oss << "Min. box side length: " << _min_cell_direction << std::endl;
- oss << "Max. box cells : " << _max_cells << std::endl;
+ oss << "Efficiency goal: " << 100*_efficiency_goal << "%" << std::endl;
+ oss << "Efficiency threshold: " << 100*_efficiency_threshold << "%" << std::endl;
+ oss << "Min. patch side length: " << _min_patch_length << std::endl;
+ oss << "Max. patch side length: " << _max_patch_length << std::endl;
+ oss << "Max. patch measure: " << _max_nb_cells_in_patch << std::endl;
return oss.str();
}