Updated maxwell-solver.