Hi, There was a bug in the code that converts the Python list of `extra_materials` to C++.
This PR should fix it: https://github.com/stevengj/meep/pull/277 Thanks for catching that. Chris On Mon, Apr 9, 2018 at 4:58 PM, Ian Sage <i...@sage.myzen.co.uk> wrote: > I have no problems using a material_function to set an index which > varies with position. However, the construct fails if my function > returns materials_library.Al even if I include this in an > extra_materials list (either in the initialization of the simulation or > as a separate assignment). The simulation runs without error, but the > metal is seemingly absent. > > All is well if I just assign a Block material as materials_library.Al > > Are these (material_function; extra_materials) constructs fully > implemented? If so, do they need a special syntax? > > I am running meep-git-1.4.3.r76 on Arch. > > Thanks, > > Ian > > > _______________________________________________ > meep-discuss mailing list > firstname.lastname@example.org > http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
_______________________________________________ meep-discuss mailing list email@example.com http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss