QuazarTech / DG_Maxwell

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

Redundant line for setting the arrayfire backend. #69

Open amanabt opened 6 years ago

amanabt commented 6 years ago

5c71deba7742ef079cadf45512c9984bf769c695

https://github.com/Balavarun5/DG_Maxwell/blob/5c71deba7742ef079cadf45512c9984bf769c695/dg_maxwell/wave_equation_2d.py#L6

This line is redundant because an arrayfire backed be being set again after few lines using the variable params.backend. Also, the presence of this statement might be dangerous if the backend being set in params.backend is not cpu and will give you errors.