improve solution accuracy

This commit is contained in:
Jan Petykiewicz 2019-11-12 01:10:21 -08:00
parent b24b5d169f
commit d4bb3e83e1

View File

@ -96,7 +96,8 @@ def sim(request, shape, epsilon, dxes, j_distribution, omega, pec, pmc):
j_vec = vec(j_distribution) j_vec = vec(j_distribution)
eps_vec = vec(epsilon) eps_vec = vec(epsilon)
e_vec = fdfd.solvers.generic(J=j_vec, omega=omega, dxes=dxes, epsilon=eps_vec, matrix_solver_opts={'atol': 1e-12}) e_vec = fdfd.solvers.generic(J=j_vec, omega=omega, dxes=dxes, epsilon=eps_vec,
matrix_solver_opts={'atol': 1e-15, 'tol': 1e-10})
e = unvec(e_vec, shape[1:]) e = unvec(e_vec, shape[1:])
sim = SimResult( sim = SimResult(