test_r13_convergence3D module
Contents
test_r13_convergence3D module¶
Module to gather tests for convergence of decoupled stress system.
This file is executed by pytest
to have good CI.
- class test_r13_convergence3D.TestR13Convergence[source]¶
Bases:
object
Class to bundle all stress convergence tests.
All tests are compared against reference errors.
- working_dir = 'tests/3d_r13'¶
- 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)