|
[Sponsors] |
September 29, 2011, 04:18 |
a question fo scheme
|
#1 |
New Member
zhjieli
Join Date: Sep 2011
Posts: 3
Rep Power: 14 |
I have write scheme programe as this:
(define line1 (list 1 2 3 4 5 6 7 8 9)) (define l '()) (do ((i 0 (+ i 3))) ((> i (length line1))) (set! l (append l (list (list-ref line1 i)) )) ) when I read it in fluent ,occur this error Error: CAR: invalid argument [1]: wrong type [not a pair] Error Object: () but I defined that this programe' function was completed. Please, someone can help me? |
|
September 29, 2011, 12:00 |
|
#2 |
Member
Join Date: Apr 2009
Posts: 46
Rep Power: 17 |
List index start at 0.
The max valid index is Code:
(- (length l) 1) |
|
September 30, 2011, 01:15 |
|
#3 |
New Member
zhjieli
Join Date: Sep 2011
Posts: 3
Rep Power: 14 |
thank!
You are warm-hearted man |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
extrapolation in MUSCL scheme | Chandra | Main CFD Forum | 6 | February 14, 2007 11:21 |
One Question on VOF Model | Colin | FLUENT | 2 | October 24, 2004 09:38 |
Question on Sediment Mass Conservation Scheme | Wen Long | Main CFD Forum | 0 | July 6, 2004 15:45 |
problem about numerical scheme in LES. | libin | Main CFD Forum | 4 | July 1, 2004 04:32 |
Scheme documentation and question | Mickaël Perrin | FLUENT | 0 | July 4, 2002 05:21 |