On Mon, 27 Nov 2006, zhang hao wrote:
;make Left air area
(set! geometry
(append (list (make block (center (- (* (sqrt 2) -3.5) 0.25) (+
(sqrt 2) 0.25) 0)
(material air) (size airwidth airhigh infinity)))))
The problem is that the crossing is not duplicated. It seems that the
"Apend" command doesnot work, why? Thanks a lot.
You aren't calling "append" correctly -- if you want to append a list of
objects to the geometry you need to do:
(set! geometry (append geometry (list .....)))
The "append" command is a function that takes zero or more lists and
returns the list formed by appending its arguments. It is not specific to
MPB and knows nothing about the geometry. This is why you need to pass
the geometry variable as one of the arguments if you want to append it
with the new list you are passing, as opposed to replacing it.
Steven
_______________________________________________
mpb-discuss mailing list
mpb-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/mpb-discuss