diff --git a/BaseLib/ConfigTreeUtil.cpp b/BaseLib/ConfigTreeUtil.cpp index 1aa7864d7740a7587af20e7915715bdf808ae113..ad5d7e769cce5a120cbf96ca68e83557eef17c4a 100644 --- a/BaseLib/ConfigTreeUtil.cpp +++ b/BaseLib/ConfigTreeUtil.cpp @@ -63,7 +63,7 @@ makeConfigTree(const std::string& filepath, const bool be_ruthless, DBUG("Project configuration from file \'%s\' read.", filepath.c_str()); - if (auto child = std::move(ptree.get_child_optional(toplevel_tag))) { + if (auto child = ptree.get_child_optional(toplevel_tag)) { return ConfigTreeTopLevel(filepath, be_ruthless, std::move(*child)); } else { ERR("Tag <%s> has not been found in file `%s'.", diff --git a/MeshLib/MeshGenerators/VtkMeshConverter.h b/MeshLib/MeshGenerators/VtkMeshConverter.h index 56baf4ee1709e6f45fcb9d78e26d143c1d5db3ff..5d62857565984b1d9c708276fc94af26619b3317 100644 --- a/MeshLib/MeshGenerators/VtkMeshConverter.h +++ b/MeshLib/MeshGenerators/VtkMeshConverter.h @@ -80,7 +80,6 @@ private: for (std::size_t i = 0; i < imgHeight; i++) for (std::size_t j = 0; j < imgWidth; j++) { - std::size_t const idx (i*imgWidth+j); if (!pix_vis[i*imgWidth+j]) continue; T val (static_cast<T>(pix_val[i*(imgWidth+1)+j])); diff --git a/ProcessLib/Process.h b/ProcessLib/Process.h index ce7c9abcbc2323f1695de488991b9ea44790f892..19777bf277848f85dbbcc25c0e61f76d4d7c1b3c 100644 --- a/ProcessLib/Process.h +++ b/ProcessLib/Process.h @@ -15,7 +15,6 @@ #include <logog/include/logog.hpp> - #include "AssemblerLib/ComputeSparsityPattern.h" #include "AssemblerLib/LocalToGlobalIndexMap.h" #include "AssemblerLib/VectorMatrixAssembler.h" @@ -123,22 +122,22 @@ public: bc->integrate(_global_setup); for (auto const& bc : _dirichlet_bcs) - MathLib::applyKnownSolution(*_A, *_rhs, *_x, - bc.global_ids, bc.values); + MathLib::applyKnownSolution(*_A, *_rhs, *_x, bc.global_ids, + bc.values); _linear_solver->solve(*_rhs, *_x); return result; } protected: - virtual void post() { }; + virtual void post(){}; /// Set linear solver options; called by the derived process which is /// parsing the configuration. void setLinearSolverOptions(BaseLib::ConfigTree&& config) { - _linear_solver_options.reset(new BaseLib::ConfigTree( - std::move(config))); + _linear_solver_options.reset( + new BaseLib::ConfigTree(std::move(config))); } private: @@ -171,17 +170,16 @@ private: } } - void createDirichletBcs(ProcessVariable& variable, - int const component_id) + void createDirichletBcs(ProcessVariable& variable, int const component_id) { MeshGeoToolsLib::MeshNodeSearcher& mesh_node_searcher = MeshGeoToolsLib::MeshNodeSearcher::getMeshNodeSearcher( variable.getMesh()); variable.initializeDirichletBCs(std::back_inserter(_dirichlet_bcs), - mesh_node_searcher, - *_local_to_global_index_map, - component_id); + mesh_node_searcher, + *_local_to_global_index_map, + component_id); } void createNeumannBcs(ProcessVariable& variable, int const component_id) @@ -313,7 +311,7 @@ protected: std::vector<DirichletBc<GlobalIndexType>> _dirichlet_bcs; std::vector<std::unique_ptr<NeumannBc<GlobalSetup>>> _neumann_bcs; - /// Variables used by this process. + /// Variables used by this process. std::vector<ProcessVariable*> _process_variables; };