There is an error in the statement (define sx (+ (* 2 (+ pad dpml N)) d-1)).
Do you mean that sx = 2*(pad+dpml+N) + (d-1)? Then the correct statement is (define sx (+ (* 2 (+ pad dpml N)) (- d 1))) If you mean something else, remember the expressions in CTL is different from the natural way to write them, and they have their own syntax. Regards, Simon On Mon, Sep 3, 2012 at 3:33 PM, Mukul <mkb...@gmail.com> wrote: > meep> (define-param eps 12) > meep> (define-param w 1.2) > meep> (define-param r 0.36) > meep> (define-param d 1.4) > meep> (define-param N 3) > meep> (define-param sy 6) > meep> (define-param pad 2) > meep> (define-param dpml 1) > meep> (define sx (+ (* 2 (+ pad dpml N)) d-1)) > > Backtrace: > In current input: > 9: 0* (define sx (+ (* 2 (+ pad dpml N)) d-1)) > 9: 1* [+ 12 ... > > <unnamed port>:9:12: While evaluating arguments to + > in expression (+ (* 2 #) d-1): > > <unnamed port>:9:12: Unbound variable: d-1 > ABORT: (unbound-variable) > > I am just copying this from the tutorial and am getting an error . Why so ? > > > _______________________________________________ > 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