Skip to content

Commit

Permalink
add med py registry
Browse files Browse the repository at this point in the history
  • Loading branch information
philbucher committed Oct 22, 2023
1 parent 6775d01 commit 2b4cb1c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions applications/MedApplication/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")

# Add to the KratosMultiphisics Python module
kratos_python_install(${INSTALL_PYTHON_USING_LINKS} ${CMAKE_CURRENT_SOURCE_DIR}/MedApplication.py KratosMultiphysics/MedApplication/__init__.py )
kratos_python_install(${INSTALL_PYTHON_USING_LINKS} ${CMAKE_CURRENT_SOURCE_DIR}/python_registry_lists.py KratosMultiphysics/MedApplication/python_registry_lists.py )

# Install python files
get_filename_component (CURRENT_DIR_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
Expand Down
7 changes: 6 additions & 1 deletion applications/MedApplication/MedApplication.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# Application dependent names and paths
from KratosMultiphysics import _ImportApplication
from KratosMultiphysics import _ImportApplication, python_registry_utilities
from KratosMedApplication import *

application = KratosMedApplication()
application_name = "KratosMedApplication"

_ImportApplication(application, application_name)

from . import python_registry_lists

python_registry_utilities.RegisterAll("KratosMultiphysics.MedApplication", python_registry_lists)
11 changes: 11 additions & 0 deletions applications/MedApplication/python_registry_lists.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from typing import List

python_modelers_to_be_registered: List[str] = ["modelers.import_med_modeler.ImportMedModeler"]

python_operations_to_be_registered: List[str] = []

python_processes_to_be_registered: List[str] = []

python_stages_to_be_registered: List[str] = []

python_orchestrators_to_be_registered: List[str] = []

0 comments on commit 2b4cb1c

Please sign in to comment.