Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions applications/OptimizationApplication/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ message("**** configuring KratosOptimizationApplication ****")
include(pybind11Tools)

include_directories( ${KRATOS_SOURCE_DIR}/kratos )
include_directories( ${KRATOS_SOURCE_DIR}/external_libraries/nanoflann )

## Optimization core sources
file( GLOB_RECURSE KRATOS_OPTIMIZATION_APPLICATION_CORE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void AddExplicitFilterUtils(
namespace py = pybind11;

py::class_<ExplicitFilterUtils<TContainerType>, typename ExplicitFilterUtils<TContainerType>::Pointer>(m, rName.c_str())
.def(py::init<const ModelPart&, const std::string&, const std::size_t, const std::size_t, bool>(), py::arg("model_part"), py::arg("kernel_function_type"), py::arg("max_number_of_neighbours"), py::arg("echo_level"), py::arg("node_cloud_mesh") = false)
.def(py::init<ModelPart&, const std::string&, const std::size_t, const std::size_t, bool>(), py::arg("model_part"), py::arg("kernel_function_type"), py::arg("max_items_in_bucket") = 10, py::arg("echo_level") = 0, py::arg("node_cloud_mesh") = false)
.def("SetRadius", &ExplicitFilterUtils<TContainerType>::SetRadius, py::arg("filter_radius"))
.def("SetDamping", &ExplicitFilterUtils<TContainerType>::SetDamping, py::arg("damping"))
.def("ForwardFilterField", &ExplicitFilterUtils<TContainerType>::ForwardFilterField, py::arg("mesh_independent_control_space_field"))
Expand Down Expand Up @@ -100,4 +100,4 @@ void AddCustomFiltersToPython(pybind11::module& m)
}

} // namespace Python.
} // namespace Kratos.
} // namespace Kratos.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "expression/container_expression.h"

// Application includes
#include "entity_point.h"

namespace Kratos
{
Expand All @@ -32,15 +31,13 @@ namespace Kratos
template<class TContainerType>
class KRATOS_API(OPTIMIZATION_APPLICATION) ExplicitDamping
{
public:
public:
///@name Type definitions
///@{

using EntityType = typename TContainerType::value_type;

using EntityPointType = EntityPoint<EntityType>;

using EntityPointVector = std::vector<typename EntityPointType::Pointer>;
using EntityPointVector = std::vector<typename EntityType::Pointer>;

/// Pointer definition of ContainerMapper
KRATOS_CLASS_POINTER_DEFINITION(ExplicitDamping);
Expand Down Expand Up @@ -144,4 +141,3 @@ class KRATOS_API(OPTIMIZATION_APPLICATION) ExplicitDamping
///@}

} // namespace Kratos.

Loading
Loading