[From nobody Sun Nov  1 10:21:10 2026
Received: (at submit) by bugs.debian.org; 28 Jul 2026 14:14:20 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-112.8 required=4.0 tests=ALL_TRUSTED,BAYES_00,
 DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,
 FROMDEVELOPER,SPF_HELO_NONE,SPF_PASS,USER_IN_DKIM_WELCOMELIST,
 XMAILER_REPORTBUG autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 79; hammy, 150; neutral, 129; spammy,
 0. spammytokens:
 hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
 0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
 0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: &lt;dparsons@debian.org&gt;
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:60808)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;dparsons@debian.org&gt;) id 1woiZY-009uxR-2I
 for submit@bugs.debian.org; Tue, 28 Jul 2026 14:14:20 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.stravinsky;
 h=X-Debian-User:Date:Message-ID:Subject:To:From:
 Content-Transfer-Encoding:MIME-Version:Content-Type:Reply-To:Cc:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=TPDnT5P/FG4hWBDcSQcK2lLHBpeYjVEFAXxbwMVuOVw=; b=FRrIzpewVCLqQ6GmF06u3VyTsg
 cU9id4pVfyyQmrZMltLmD0u+QG2wu8FWr+prOIAEAd+yAJBh9Qi/zZH2QSNL6UxpNnwe+IBOwp3Vd
 2UeorzrP3KTCVc2PKH9CIpKLrF380WJcHIbpVN+w/FKDqo9ZA56EPYBYp1PIPtJ5Br8h1u6Ueb0sT
 +qjlMbVDndFGvWQb5JoTxceaZrHkGNT94Wuc6LCHr8xgMNdlcttFNls1CE72wFyN/Jx7BBrXErk7V
 LL+WmX3OjbzlJP3SL3jmQdZisuaR6SU+vh9VvfGGmOgcWaXqkljDQPAke+OOMib+I81CiZ1eTKQZS
 /nuIIy6A==;
Received: from authenticated-user by stravinsky.debian.org with esmtpsa
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;dparsons@debian.org&gt;)
 id 1woiZW-007jTF-23; Tue, 28 Jul 2026 14:14:19 +0000
Received: from drew by gelly with local (Exim 4.99.4)
 (envelope-from &lt;dparsons@debian.org&gt;) id 1woiZV-00000005Pup-2VlL;
 Tue, 28 Jul 2026 16:14:17 +0200
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Drew Parsons &lt;dparsons@debian.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: test_xdmf_function fails with complex number support
Message-ID: &lt;178524805758.1283004.14292767829153114729.reportbug@gelly&gt;
X-Mailer: reportbug 13.2.0+nmu1
Date: Tue, 28 Jul 2026 16:14:17 +0200
X-Debian-User: dparsons
Delivered-To: submit@bugs.debian.org

Source: io4dolfinx
Version: 1.2.0-1
Severity: serious
Control: forwarded -1 https://github.com/scientificcomputing/io4dolfinx/issues/66

test_xdmf_function in test_xdmf.py fails when run with dolfinx 0.10
built with complex number support.

https://ci.debian.net/packages/i/io4dolfinx/testing/amd64/72528850/#S14

Reported upstream, issue #66
https://github.com/scientificcomputing/io4dolfinx/issues/66


4552s =================================== FAILURES ===================================
4552s ______________________________ test_xdmf_function ______________________________
4552s 
4552s tmp_path = PosixPath('/tmp/autopkgtest-lxc.40nbiv74/downtmp/autopkgtest_tmp/io4dolfinx_complex_py3.14/test_xdmf_function0')
4552s 
4552s     def test_xdmf_function(tmp_path):
4552s         tmp_path = MPI.COMM_WORLD.bcast(tmp_path, root=0)
4552s         mesh = dolfinx.mesh.create_unit_square(MPI.COMM_WORLD, 8, 10)
4552s     
4552s         def f(x):
4552s             return (x[0], x[1], -2 * x[1], 3 * x[0])
4552s     
4552s         V = dolfinx.fem.functionspace(mesh, (&quot;Lagrange&quot;, 1, (4,)))
4552s         u = dolfinx.fem.Function(V, name=&quot;u&quot;)
4552s         u.interpolate(f)
4552s     
4552s         tmp_file = tmp_path / &quot;function.xdmf&quot;
4552s         with dolfinx.io.XDMFFile(MPI.COMM_WORLD, tmp_file, &quot;w&quot;) as xdmf:
4552s             xdmf.write_mesh(mesh)
4552s             xdmf.write_function(u)
4552s     
4552s         MPI.COMM_WORLD.barrier()
4552s     
4552s         in_grid = io4dolfinx.read_mesh(tmp_file, MPI.COMM_WORLD, backend=&quot;xdmf&quot;)
4552s         names = io4dolfinx.read_function_names(
4552s             tmp_file, MPI.COMM_WORLD, backend_args={}, backend=&quot;xdmf&quot;
4552s         )
4552s         assert len(names) == 1
4552s         assert names[0] == &quot;u&quot;
4552s     
4552s &gt;       u = io4dolfinx.read_point_data(tmp_file, &quot;u&quot;, in_grid, backend=&quot;xdmf&quot;)
4552s             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4552s 
4552s tests/test_xdmf.py:64: 
4552s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
4552s /usr/lib/python3/dist-packages/io4dolfinx/readers.py:406: in read_point_data
4552s     dataset, local_range_start = backend_cls.read_point_data(
4552s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
4552s 
4552s filename = PosixPath('/tmp/autopkgtest-lxc.40nbiv74/downtmp/autopkgtest_tmp/io4dolfinx_complex_py3.14/test_xdmf_function0/function.xdmf')
4552s name = 'u', comm = &lt;mpi4py.MPI.Intracomm object at 0x7fec89a2ef40&gt;, time = None
4552s backend_args = {}
4552s 
4552s     def read_point_data(
4552s         filename: Path | str,
4552s         name: str,
4552s         comm: MPI.Intracomm,
4552s         time: float | str | None,
4552s         backend_args: dict[str, Any] | None,
4552s     ) -&gt; tuple[np.ndarray, int]:
4552s         &quot;&quot;&quot;Read data from the nodes of a mesh.
4552s     
4552s         Args:
4552s             filename: Path to file
4552s             name: Name of point data
4552s             comm: Communicator to launch IO on.
4552s             time: The time stamp
4552s             backend_args: The backend arguments
4552s     
4552s         Returns:
4552s            Data local to process (contiguous, no mpi comm) and local start range
4552s         &quot;&quot;&quot;
4552s         # Find function with name u in xml tree
4552s         check_file_exists(filename)
4552s         filename = Path(filename)
4552s     
4552s         tree = ElementTree.parse(filename)
4552s         root = tree.getroot()
4552s         backend_args = get_default_backend_args(backend_args)
4552s         if time is not None:
4552s             time_steps = root.findall(f&quot;.//Grid[@Name='{name}']&quot;)
4552s             time_found = False
4552s             for time_node in time_steps:
4552s                 step_node = time_node.find(&quot;.//Time&quot;)
4552s                 assert isinstance(step_node, ElementTree.Element)
4552s                 if np.isclose(float(step_node.attrib[&quot;Value&quot;]), float(time)):
4552s                     time_found = True
4552s                     break
4552s             func_node = time_node.find(f&quot;.//Attribute[@Name='{name}']&quot;)
4552s             if not time_found:
4552s                 raise RuntimeError(f&quot;Function {name} at time={time} not found in {filename}&quot;)
4552s         else:
4552s             func_node = root.find(f&quot;.//Attribute[@Name='{name}']&quot;)
4552s &gt;       assert isinstance(func_node, ElementTree.Element)
4552s                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4552s E       AssertionError
4552s 
4552s /usr/lib/python3/dist-packages/io4dolfinx/backends/xdmf/backend.py:134: AssertionError
4552s =========================== short test summary info ============================
4552s FAILED tests/test_xdmf.py::test_xdmf_function - AssertionError
4552s ============ 1 failed, 1274 passed, 8 skipped in 404.88s (0:06:44) =============
4552s autopkgtest [13:37:59]: test test-io4dolfinx-complex: -----------------------]
]