use core::ffi::{c_char, c_int};
#[repr(C)]
pub(crate) struct State {
pub(crate) gradients: *const f64,
pub(crate) thermodynamic_forces: *mut f64,
pub(crate) mass_density: *const f64,
pub(crate) material_properties: *const f64,
pub(crate) internal_state_variables: *mut f64,
pub(crate) stored_energy: *mut f64,
pub(crate) dissipated_energy: *mut f64,
pub(crate) external_state_variables: *const f64,
}
#[repr(C)]
pub(crate) struct InitialState {
pub(crate) gradients: *const f64,
pub(crate) thermodynamic_forces: *const f64,
pub(crate) mass_density: *const f64,
pub(crate) material_properties: *const f64,
pub(crate) internal_state_variables: *const f64,
pub(crate) stored_energy: *const f64,
pub(crate) dissipated_energy: *const f64,
pub(crate) external_state_variables: *const f64,
}
#[repr(C)]
pub(crate) struct BehaviourData {
pub(crate) error_message: *mut c_char,
pub(crate) dt: f64,
pub(crate) k: *mut f64,
pub(crate) rdt: *mut f64,
pub(crate) speed_of_sound: *mut f64,
pub(crate) s0: InitialState,
pub(crate) s1: State,
}
pub(crate) const ERROR_MESSAGE_SIZE: usize = 512;
pub(crate) type IntegrateFn = unsafe extern "C" fn(*mut BehaviourData) -> c_int;