transfer parameters with sddsmakedataset

Moderators: cyao, michael_borland

Post Reply
Max
Posts: 50
Joined: 31 Jul 2008, 12:16

transfer parameters with sddsmakedataset

Post by Max » 23 Sep 2011, 02:38

Dear Michael and collaborators,

I am using the following instruction in a script:

sddsmakedataset settings.sdds -parameter=EARTHFIELDc,type=double,units=T -data=0.00005 -parameter=DV1c,type=double -data=-0.015 -parameter=DV2c,type=double -data=0.015 -parameter=NKICKSc,type=double -data=0

so that I can input certain parameters without having to redefine them every time in the .ele files as follows:

&alter_elements
name = DR*
type = STRAY
item = LBY
string_value = EARTHFIELDc
&end

&alter_elements
name = ACCT*
type=rfcw
item=N_KICKS
string_value=NKICKSc
&end

and this works after downloading settings.sdds with &rpn_load.

The parameters DV1c and DV2c I use in:

&error_element
name=ACCT0_L00.02
item=VOLT
type="plus_or_minus"
amplitude=DV1c
fractional=1
&end

and this does not work (DV1c is not recognized), presumably because there in no instruction like "string_amplitude". Is there a way I can make "amplitude" read the parameter DV1c in settings.sdds ?

Thanks, Max

Max
Posts: 50
Joined: 31 Jul 2008, 12:16

Re: transfer parameters with sddsmakedataset

Post by Max » 23 Sep 2011, 09:55

Michael and collaborators,
a correction. Not even the instructions:

&alter_elements
name = DR*
type = STRAY
item = LBY
string_value = EARTHFIELDc
&end

&alter_elements
name = ACCT*
type=rfcw
item=N_KICKS
string_value=NKICKSc
&end

really work (I was fooled by the fact that there was no error displayed, but the value is not transferred). Perhaps to use rpn_load in the fashion I want (alter elements) is not allowed ?
I remember in a previous query you advised me on the use of rpn_load on the instruction "insert_elements", but that instruction does not seem to work with "alter_elements".

Thanks from an obviously very confused

MAX

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: transfer parameters with sddsmakedataset

Post by michael_borland » 23 Sep 2011, 14:41

Max,

On the &alter_elements commands, try

value="(EARTHFIELDc)"

etc. This is how you access values from the RPN subsystem in namelist entries.

If that doesn't fix it, please upload the entire .ele file (or mail it to me).

--Michael

Max
Posts: 50
Joined: 31 Jul 2008, 12:16

Re: transfer parameters with sddsmakedataset

Post by Max » 26 Sep 2011, 03:43

It works.
Thanks a lot Michael.

Cheers, Max

Post Reply