Coverage for python/src/dolfinx_mpc/utils/__init__.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.8.0, created at 2025-04-03 13:59 +0000

1# Copyright (C) 2020 Jørgen Schartum Dokken 

2# 

3# This file is part of DOLFINX_MPC 

4# 

5# SPDX-License-Identifier: MIT 

6"""Helper functions for tests in Dolfinx mpc""" 

7 

8# flake8: noqa 

9from __future__ import annotations 

10 

11from .mpc_utils import ( 

12 create_normal_approximation, 

13 create_point_to_point_constraint, 

14 determine_closest_block, 

15 facet_normal_approximation, 

16 log_info, 

17 rigid_motions_nullspace, 

18 rotation_matrix, 

19) 

20from .test import ( 

21 compare_CSR, 

22 compare_mpc_lhs, 

23 compare_mpc_rhs, 

24 gather_constants, 

25 gather_PETScMatrix, 

26 gather_PETScVector, 

27 gather_transformation_matrix, 

28) 

29 

30__all__ = [ 

31 "gather_PETScVector", 

32 "gather_PETScMatrix", 

33 "compare_mpc_lhs", 

34 "compare_mpc_rhs", 

35 "gather_transformation_matrix", 

36 "compare_CSR", 

37 "gather_constants", 

38 "rotation_matrix", 

39 "facet_normal_approximation", 

40 "log_info", 

41 "rigid_motions_nullspace", 

42 "determine_closest_block", 

43 "create_normal_approximation", 

44 "create_point_to_point_constraint", 

45]