QuazarTech / DG_Maxwell

Solution of Maxwell equations using Discontinuous Galerkin method.
GNU General Public License v3.0
8 stars 5 forks source link

Unit tests failing on changing arrayfire backend #60

Open amanabt opened 6 years ago

amanabt commented 6 years ago

Commit: 90e4f16e982042da10b30b71ebd4299a0c1a088a

Issue: The functions test_wave_equation_2d.py::test_A_matrix and test_waveEqn.py::test_volume_integral_flux are failing when the backend is set to opencl. They pass when the backend is cpu or cuda.

amanabt commented 6 years ago

@Balavarun5 Please resolve the issue with test_waveEqn.py::test_volume_integral_flux.

amanabt commented 6 years ago

The reference values for the A matrix were being calculated using LGL points with accuracy only till 4th place of decimal. Correcting it results in the error to reduce to machine error.