test_heat_convergence3D module
Contents
test_heat_convergence3D module¶
Module to gather tests for convergence of decoupled stress system.
This file is executed by pytest
to have good CI.
- class test_heat_convergence3D.TestHeatConvergencee[source]¶
Bases:
object
Class to bundle all stress convergence tests.
All tests are compared against reference errors.
- working_dir = 'tests/3d_heat'¶
- solver_path = 'fenicsR13'¶
- run_solver(inputfile)[source]¶
Run the solver as subprocess with the given input file.
Test fails if subprocess return Exception or error.
- compare_errors(errorsfile, ref_errorsfile)[source]¶
Check against reference errors. Compares absolute differences.
Absolute Error allowed:
1E-10
Return exception if diff returns with !=0 A comparison for complete equalness can be obtained with:subprocess.check_call([ "diff", "-u", "--strip-trailing-cr", errorsfile, ref_errorsfile ], cwd=self.working_dir)
- create_meshes()[source]¶
Create the test meshes. Executed before any test of the class.
Often not needed if meshes are in Git through LFS for reproducability.