The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 2:36am
Pages: 1
Send Topic Print
modelFile argument in OCEAN (Read 3017 times)
sck236
Junior Member
**
Offline



Posts: 15

modelFile argument in OCEAN
Mar 22nd, 2006, 12:16am
 
My ocean script is as the following.
-----------------------------
(a)-script
model = "~/models/nmos.scs"
section = "nnnnn"
modelFile('(model section))
--------------------------------
--------------------------------
(b)-script
modelFile('("~/models/nmos.scs" "nnnnn"))
----------------------------------------------

(a) does not work. The OCEAN coulcn't load the model file.
But (b) does work. I think that (a) and (b) are same.

what's wrong with the script (a)?
Back to top
 
 
View Profile   IP Logged
bernd
Senior Member
****
Offline



Posts: 229
Munich/Germany
Re: modelFile argument in OCEAN
Reply #1 - Mar 22nd, 2006, 2:43am
 
Try

modelFile(list(model section))

'(model section) does not evaluate the list.

SKILL Language User Guide, Chapter 1 SKILL Lists - Building Lists
Quote:
The single quote (') operator builds a list using the arguments exactly as they are presented. The values of a and b are irrelevant. The list function fetches the values of variables for inclusion in a list.

'( 1 2 3 )                   => ( 1 2 3 )
a = 1                        => 1
b = 2                        => 2
list( a b 3 )                => ( 1 2 3 )



Bernd
Back to top
 
 

Just another lonesome cad guy
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.