FEniCS / dolfinx

Next generation FEniCS problem solving environment
https://fenicsproject.org
GNU Lesser General Public License v3.0
734 stars 178 forks source link

Reduce time for XDMF tests #13

Closed garth-wells closed 6 years ago

garth-wells commented 6 years ago

Tests in test.XDMF.py are way too slow. Python loops over entities of non-trivial meshes are performed.

garth-wells commented 6 years ago

@michalhabera ?

michalhabera commented 6 years ago

I bloated it adding parameters and combinations for checkpoint methods. Parameters are enumerated in the beginning of file so its matter of changing few lines.

I also started writing completely new tests, but the idea is to make it more systematic, not the slow execution. https://bitbucket.org/michalhabera/fenics-io-tests/src/ac9a820bd174720865975468f626d793476c975b/python-tests/test_XDMF.py?at=master&fileviewer=file-view-default

Are there long running tests somewhere stored and run? If you want to have just fast ones then I'll reduce it tomorrow.

michalhabera commented 6 years ago

Started to address here https://github.com/FEniCS/dolfinx/tree/michal/reduce-xdmf-tests

garth-wells commented 6 years ago

This has been sped up considerably by using build-in commands to compare arrays rather than looping over them in Python. Could be made faster, but not pressing now.