Skip to content
Snippets Groups Projects
Commit d10f288e authored by Hkorb's avatar Hkorb
Browse files

adapt name change to python bindings

parent 47465e03
No related branches found
No related tags found
1 merge request!170Kernel templetization and efficiency improvements
...@@ -374,7 +374,7 @@ class TurbulenceModelFactory: ...@@ -374,7 +374,7 @@ class TurbulenceModelFactory:
def set_model_constant(self, model_constant: float) -> None: ... def set_model_constant(self, model_constant: float) -> None: ...
def set_turbulence_model(self, turbulence_model: TurbulenceModel) -> None: ... def set_turbulence_model(self, turbulence_model: TurbulenceModel) -> None: ...
class VTKFileCollection(VelocityFileCollection): class VTKFileCollection(FileCollection):
def __init__(self, prefix: str) -> None: ... def __init__(self, prefix: str) -> None: ...
class VelocityBC: class VelocityBC:
...@@ -396,7 +396,7 @@ class VelocityBC: ...@@ -396,7 +396,7 @@ class VelocityBC:
@property @property
def name(self) -> str: ... def name(self) -> str: ...
class VelocityFileCollection: class FileCollection:
def __init__(self, *args, **kwargs) -> None: ... def __init__(self, *args, **kwargs) -> None: ...
def create_file_collection(prefix: str, type: FileType) -> VelocityFileCollection: ... def create_file_collection(prefix: str, type: FileType) -> FileCollection: ...
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include "submodules/grid_provider.cpp" #include "submodules/grid_provider.cpp"
#include "submodules/grid_generator.cpp" #include "submodules/grid_generator.cpp"
#include "submodules/turbulence_models.cpp" #include "submodules/turbulence_models.cpp"
#include "submodules/velocity_setter.cpp" #include "submodules/transient_bc_setter.cpp"
#include "submodules/actuator_farm.cpp" #include "submodules/actuator_farm.cpp"
#include "submodules/grid_scaling_factory.cpp" #include "submodules/grid_scaling_factory.cpp"
...@@ -26,7 +26,7 @@ namespace gpu ...@@ -26,7 +26,7 @@ namespace gpu
pre_collision_interactor::makeModule(gpuModule); pre_collision_interactor::makeModule(gpuModule);
actuator_farm::makeModule(gpuModule); actuator_farm::makeModule(gpuModule);
boundary_conditions::makeModule(gpuModule); boundary_conditions::makeModule(gpuModule);
velocity_setter::makeModule(gpuModule); transient_bc_setter::makeModule(gpuModule);
communicator::makeModule(gpuModule); communicator::makeModule(gpuModule);
cuda_memory_manager::makeModule(gpuModule); cuda_memory_manager::makeModule(gpuModule);
probes::makeModule(gpuModule); probes::makeModule(gpuModule);
......
#include <pybind11/pybind11.h> #include <pybind11/pybind11.h>
#include <gpu/GridGenerator/VelocitySetter/VelocitySetter.h> #include <gpu/GridGenerator/TransientBCSetter/TransientBCSetter.h>
namespace velocity_setter namespace transient_bc_setter
{ {
namespace py = pybind11; namespace py = pybind11;
...@@ -12,9 +12,9 @@ namespace velocity_setter ...@@ -12,9 +12,9 @@ namespace velocity_setter
parentModule.def("create_file_collection", &createFileCollection, py::arg("prefix"), py::arg("type")); parentModule.def("create_file_collection", &createFileCollection, py::arg("prefix"), py::arg("type"));
py::class_<VelocityFileCollection, std::shared_ptr<VelocityFileCollection>>(parentModule, "VelocityFileCollection"); py::class_<FileCollection, std::shared_ptr<FileCollection>>(parentModule, "FileCollection");
py::class_<VTKFileCollection, VelocityFileCollection, std::shared_ptr<VTKFileCollection>>(parentModule, "VTKFileCollection") py::class_<VTKFileCollection, FileCollection, std::shared_ptr<VTKFileCollection>>(parentModule, "VTKFileCollection")
.def(py::init <std::string>(), py::arg("prefix")); .def(py::init <std::string>(), py::arg("prefix"));
} }
} }
\ No newline at end of file
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