Re: [Meep-discuss] When does meep *not* perform subpixel averaging?

2018-04-10 Thread Steven G. Johnson
Subpixel smoothing is also only used for the predefined geometric shapes.  It 
isn't done for the epsilon-file interface or for user-defined material 
functions.

___
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Re: [Meep-discuss] Python material_function and extra_materials

2018-04-10 Thread Christopher Hogan
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  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
> meep-discuss@ab-initio.mit.edu
> http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
___
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss