Skip to content

Commit

Permalink
work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterMeisrimelModelon committed Jan 18, 2024
1 parent 42b84e0 commit 4872142
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/pyfmi/fmi.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cimport numpy as N

N.import_array()

cimport fmil_import as FMIL
cimport pyfmi.fmil_import as FMIL

cdef FMIL.fmi_version_enu_t import_and_get_version(FMIL.fmi_import_context_t*, char*, char*, int)

Expand Down
6 changes: 1 addition & 5 deletions src/pyfmi/fmi.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,11 @@ import numpy as N
cimport numpy as N
from numpy cimport PyArray_DATA

N.import_array()

cimport fmil_import as FMIL
cimport pyfmi.fmil_import as FMIL

from pyfmi.common.core import create_temp_dir, delete_temp_dir
from pyfmi.common.core import create_temp_file, delete_temp_file
#from pyfmi.common.core cimport BaseModel

#from pyfmi.common import python3_flag, encode, decode
from pyfmi.fmi_util import cpr_seed, enable_caching, python3_flag
from pyfmi.fmi_util cimport encode, decode

Expand Down
2 changes: 1 addition & 1 deletion src/pyfmi/fmi_coupled.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ cdef class CoupledFMUModelBase(CoupledModelBase):
The ValueReference for the variable passed as argument.
"""
cdef FMIL.fmi2_value_reference_t vr
cdef FMIL.fmi2_value_reference_t vr

name_parts = variable_name.split(".")
try:
Expand Down
4 changes: 2 additions & 2 deletions src/pyfmi/fmil_import.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ cdef extern from 'fmilib.h':
ctypedef char fmi2_byte_t
ctypedef void * fmi2_FMU_state_t
ctypedef void * fmi2_component_environment_t
ctypedef size_t fmi2_value_reference_t
ctypedef long unsigned int fmi2_value_reference_t

#STRUCTS
ctypedef enum jm_log_level_enu_t:
Expand Down Expand Up @@ -292,7 +292,7 @@ cdef extern from 'fmilib.h':
ctypedef void(*fmi2_callback_logger_ft)(fmi2_component_environment_t c,fmi2_string_t instanceName, fmi2_status_t status, fmi2_string_t category,fmi2_string_t message,...)
ctypedef void(*fmi1_step_finished_ft)(fmi1_component_t c, fmi1_status_t status)
ctypedef void(*fmi2_step_finished_ft)(fmi2_component_environment_t env, fmi2_status_t status)
ctypedef void (*jm_logger_f)(jm_callbacks* c, jm_string module, jm_log_level_enu_t log_level, jm_string message)
ctypedef void (*jm_logger_f)(jm_callbacks* c, jm_string module, jm_log_level_enu_t log_level, jm_string message) except *
ctypedef void *(*fmi2_callback_allocate_memory_ft)(size_t, size_t)
ctypedef void(*fmi2_callback_free_memory_ft)(void *)
ctypedef int(*fmi2_xml_element_start_handle_ft)(void *, char *, void *, char *, char * *)
Expand Down

0 comments on commit 4872142

Please sign in to comment.