Skip to content
Snippets Groups Projects
Commit 34c57071 authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

rename public init() to initialize()

parent a5ab2274
No related branches found
No related tags found
No related merge requests found
...@@ -369,7 +369,7 @@ loop(ProjectData& project) ...@@ -369,7 +369,7 @@ loop(ProjectData& project)
auto per_process_data = initInternalData(project); auto per_process_data = initInternalData(project);
auto& out_ctrl = project.getOutputControl(); auto& out_ctrl = project.getOutputControl();
out_ctrl.init(project.processesBegin(), project.processesEnd()); out_ctrl.initialize(project.processesBegin(), project.processesEnd());
auto const t0 = _timestepper->getTimeStep().current(); // time of the IC auto const t0 = _timestepper->getTimeStep().current(); // time of the IC
......
...@@ -45,7 +45,7 @@ GMSHAdaptiveMeshDensity::~GMSHAdaptiveMeshDensity() ...@@ -45,7 +45,7 @@ GMSHAdaptiveMeshDensity::~GMSHAdaptiveMeshDensity()
delete _quad_tree; delete _quad_tree;
} }
void GMSHAdaptiveMeshDensity::init(std::vector<GeoLib::Point const*> const& pnts) void GMSHAdaptiveMeshDensity::initialize(std::vector<GeoLib::Point const*> const& pnts)
{ {
// *** QuadTree - determining bounding box // *** QuadTree - determining bounding box
DBUG("GMSHAdaptiveMeshDensity::init(): computing axis aligned bounding box (2D) for quadtree."); DBUG("GMSHAdaptiveMeshDensity::init(): computing axis aligned bounding box (2D) for quadtree.");
......
...@@ -34,7 +34,7 @@ public: ...@@ -34,7 +34,7 @@ public:
double station_density, double station_density,
std::size_t max_pnts_per_leaf); std::size_t max_pnts_per_leaf);
virtual ~GMSHAdaptiveMeshDensity(); virtual ~GMSHAdaptiveMeshDensity();
void init(std::vector<GeoLib::Point const*> const& pnts); void initialize(std::vector<GeoLib::Point const*> const& pnts);
double getMeshDensityAtPoint(GeoLib::Point const* const pnt) const; double getMeshDensityAtPoint(GeoLib::Point const* const pnt) const;
void addPoints(std::vector<GeoLib::Point const*> const& pnts); void addPoints(std::vector<GeoLib::Point const*> const& pnts);
double getMeshDensityAtStation(GeoLib::Point const* const) const; double getMeshDensityAtStation(GeoLib::Point const* const) const;
......
...@@ -22,7 +22,7 @@ GMSHFixedMeshDensity::GMSHFixedMeshDensity(double mesh_density) : ...@@ -22,7 +22,7 @@ GMSHFixedMeshDensity::GMSHFixedMeshDensity(double mesh_density) :
{ {
} }
void GMSHFixedMeshDensity::init(std::vector<GeoLib::Point const*> const& vec) void GMSHFixedMeshDensity::initialize(std::vector<GeoLib::Point const*> const& vec)
{ {
// to avoid a warning here: // to avoid a warning here:
(void)(vec); (void)(vec);
......
...@@ -24,7 +24,7 @@ class GMSHFixedMeshDensity : public GMSHMeshDensityStrategy ...@@ -24,7 +24,7 @@ class GMSHFixedMeshDensity : public GMSHMeshDensityStrategy
{ {
public: public:
GMSHFixedMeshDensity(double mesh_density); GMSHFixedMeshDensity(double mesh_density);
void init(std::vector<GeoLib::Point const*> const& vec); void initialize(std::vector<GeoLib::Point const*> const& vec);
double getMeshDensityAtPoint(GeoLib::Point const*const) const; double getMeshDensityAtPoint(GeoLib::Point const*const) const;
double getMeshDensityAtStation(GeoLib::Point const*const) const; double getMeshDensityAtStation(GeoLib::Point const*const) const;
virtual ~GMSHFixedMeshDensity() {} virtual ~GMSHFixedMeshDensity() {}
......
...@@ -28,7 +28,7 @@ class GMSHMeshDensityStrategy ...@@ -28,7 +28,7 @@ class GMSHMeshDensityStrategy
{ {
public: public:
virtual ~GMSHMeshDensityStrategy() {} virtual ~GMSHMeshDensityStrategy() {}
virtual void init(std::vector<GeoLib::Point const*> const&) = 0; virtual void initialize(std::vector<GeoLib::Point const*> const&) = 0;
virtual double getMeshDensityAtPoint(GeoLib::Point const*const) const = 0; virtual double getMeshDensityAtPoint(GeoLib::Point const*const) const = 0;
virtual double getMeshDensityAtStation(GeoLib::Point const*const) const = 0; virtual double getMeshDensityAtStation(GeoLib::Point const*const) const = 0;
}; };
......
...@@ -242,7 +242,7 @@ void GMSHPolygonTree::initMeshDensityStrategy() ...@@ -242,7 +242,7 @@ void GMSHPolygonTree::initMeshDensityStrategy()
} }
// give collected points to the mesh density strategy // give collected points to the mesh density strategy
_mesh_density_strategy->init(pnts); _mesh_density_strategy->initialize(pnts);
// insert constraints // insert constraints
dynamic_cast<GMSHAdaptiveMeshDensity*>(_mesh_density_strategy)->addPoints(_stations); dynamic_cast<GMSHAdaptiveMeshDensity*>(_mesh_density_strategy)->addPoints(_stations);
std::vector<GeoLib::Point const*> stations; std::vector<GeoLib::Point const*> stations;
......
...@@ -84,7 +84,7 @@ newInstance(const BaseLib::ConfigTree &config, std::string const& output_directo ...@@ -84,7 +84,7 @@ newInstance(const BaseLib::ConfigTree &config, std::string const& output_directo
template<typename GlobalSetup> template<typename GlobalSetup>
void Output<GlobalSetup>:: void Output<GlobalSetup>::
init(typename Output<GlobalSetup>::ProcessIter first, initialize(typename Output<GlobalSetup>::ProcessIter first,
typename Output<GlobalSetup>::ProcessIter last) typename Output<GlobalSetup>::ProcessIter last)
{ {
for (unsigned pcs_idx = 0; first != last; ++first, ++pcs_idx) for (unsigned pcs_idx = 0; first != last; ++first, ++pcs_idx)
......
...@@ -34,7 +34,7 @@ public: ...@@ -34,7 +34,7 @@ public:
::const_iterator; ::const_iterator;
//! Opens a PVD file for each process. //! Opens a PVD file for each process.
void init(ProcessIter first, ProcessIter last); void initialize(ProcessIter first, ProcessIter last);
//! Writes output for the given \c process if it should be written in the //! Writes output for the given \c process if it should be written in the
//! given \c timestep. //! given \c timestep.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment