Re: [Meep-discuss] Why ERROR: Unbound variable set
Hi again, I should mention this, because as a new user, you may not be using a meep editor, one that highlights the meep syntax. There is a "Meep highlight - master" that is available for download and installs on popular text editors. Search the Internet with the quoted key words. Also, if you haven't already done so, I found that enabling my editor's native ability to highlight matching parenthesis is almost an essential need. Good luck, Steve On Sat, 2016-10-08 at 13:04 +, Muhammad Hanif Ahmed Khan Khushik wrote: > Hi, > I am trying to learn MEEP. I have just installed MEEP. I do not know > which MEEP version is installed. I just used the sudo command. I have > make my own program using Scheme language which is given below. When > I run it by using the command > meep light-scattering.ctl | tee light-scattering.out > it gives me this message > ERROR: Unbound variable: Set ! > I want to know why this error? > Please explain what does this error mean? Either it is due to > problems in installation of MEEP or due to my program which I am > trying to simulate? > (set! geometry-lattice (make lattice (size 20 20 no-size))) > (Set! geometry (list > (make block (center 0 0) (size .02 0.01 infinity) > (material (make dielectric (epsilon 1200)) > (set! sources (list > (make source > (src (make continuous-src (frequency 1))) > (component Ez) > (center -8 0) > ) > )) > (set! pml-layers (list (make pml (thickness1.0 > (set! resolution 15) > (run-until 200 > (at-beginning output-epsilon) > (to-appended "ez"(at-every 0.6 output-efield-z))) > > Regards > Khushk > ___ > 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
Re: [Meep-discuss] Why ERROR: Unbound variable set
Hi, Meep can be confusing sometimes. In this case, remember that meep is case sensitive. The two commands, Set! and set! are not the same, Set! doesn't work. See line two of your control file. Steve On Sat, 2016-10-08 at 13:04 +, Muhammad Hanif Ahmed Khan Khushik wrote: > Hi, > I am trying to learn MEEP. I have just installed MEEP. I do not know > which MEEP version is installed. I just used the sudo command. I have > make my own program using Scheme language which is given below. When > I run it by using the command > meep light-scattering.ctl | tee light-scattering.out > it gives me this message > ERROR: Unbound variable: Set ! > I want to know why this error? > Please explain what does this error mean? Either it is due to > problems in installation of MEEP or due to my program which I am > trying to simulate? > (set! geometry-lattice (make lattice (size 20 20 no-size))) > (Set! geometry (list > (make block (center 0 0) (size .02 0.01 infinity) > (material (make dielectric (epsilon 1200)) > (set! sources (list > (make source > (src (make continuous-src (frequency 1))) > (component Ez) > (center -8 0) > ) > )) > (set! pml-layers (list (make pml (thickness1.0 > (set! resolution 15) > (run-until 200 > (at-beginning output-epsilon) > (to-appended "ez"(at-every 0.6 output-efield-z))) > > Regards > Khushk > ___ > 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
[Meep-discuss] Why ERROR: Unbound variable set
Hi,I am trying to learn MEEP. I have just installed MEEP. I do not know which MEEP version is installed. I just used the sudo command. I have make my own program using Scheme language which is given below. When I run it by using the command meep light-scattering.ctl | tee light-scattering.out it gives me this messageERROR: Unbound variable: Set !I want to know why this error? Please explain what does this error mean? Either it is due to problems in installation of MEEP or due to my program which I am trying to simulate? (set! geometry-lattice (make lattice (size 20 20 no-size))) (Set! geometry (list (make block (center 0 0) (size .02 0.01 infinity) (material (make dielectric (epsilon 1200)) (set! sources (list (make source (src (make continuous-src (frequency 1))) (component Ez) (center -8 0) ) )) (set! pml-layers (list (make pml (thickness1.0 (set! resolution 15) (run-until 200 (at-beginning output-epsilon) (to-appended "ez"(at-every 0.6 output-efield-z))) RegardsKhushk ___ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss