Skip to content

Commit

Permalink
fix missing object property
Browse files Browse the repository at this point in the history
  • Loading branch information
wprzadka committed Sep 7, 2023
1 parent c058020 commit ed0c150
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_conmech/unit_test/test_matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
get_edges_features_matrix_numba as sut_3d,
)
from conmech.dynamics.dynamics import Dynamics
from conmech.simulations.problem_solver import Body
from conmech.mesh.mesh import Mesh
from conmech.mesh import mesh_builders
from conmech.properties.mesh_properties import MeshProperties
Expand Down Expand Up @@ -97,8 +98,11 @@ def test_local_stiff_mats_assembly():
mesh.initial_nodes = initial_nodes
mesh.elements = elements

body = object.__new__(Body)
body.mesh = mesh

dynamics = object.__new__(Dynamics)
dynamics.mesh = mesh
dynamics.body = body
dynamics._local_stifness_matrices = local_stiff_mats
dynamics._w_matrix = expected_w_matrix
density = np.ones(elements.shape[0])
Expand Down

0 comments on commit ed0c150

Please sign in to comment.