implement default for solver opetions

This commit is contained in:
jan 2016-07-04 23:55:43 -07:00
parent b3d25f0f0c
commit e53156b789

View File

@ -109,6 +109,9 @@ def cg(a, b, max_iters=10000, err_thresh=1e-6, context=None, queue=None, verbose
def cg_solver(omega, dxes, J, epsilon, mu=None, pec=None, pmc=None, adjoint=False, solver_opts=None):
if solver_opts is None:
solver_opts = dict()
b0 = -1j * omega * J
A0 = fdfd_tools.operators.e_full(omega, dxes, epsilon=epsilon, mu=mu, pec=pec, pmc=pmc)