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
transfer parameters with sddsmakedataset
Moderators: cyao, michael_borland
Re: transfer parameters with sddsmakedataset
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
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
-
- Posts: 1933
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: transfer parameters with sddsmakedataset
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
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
Re: transfer parameters with sddsmakedataset
It works.
Thanks a lot Michael.
Cheers, Max
Thanks a lot Michael.
Cheers, Max