Error or typo in documentation for link_elements

Moderators: cyao, michael_borland

Post Reply
Chris Prokop
Posts: 7
Joined: 14 Apr 2012, 17:15

Error or typo in documentation for link_elements

Post by Chris Prokop » 07 Jun 2013, 12:44

Hi,

I am attempting to perform a vary_element with a link_element referencing the same element. This case, it is a scan of beta while keeping the same ratio with alpha. It is two parts: the vary_element, then linking the other element. However, it isn't recognizing "same-occurrence" for the location, with the error:

&link_elements
target = SETTWISS_DOGLEG1,
exclude = {NULL},
item = ALPHAX,
source = SETTWISS_DOGLEG1,
source_position = same-occurrence,
mode = dynamic,
equation = "BETAX -6.0 /",
minimum = -1.797693134862316e+308,
maximum = 1.797693134862316e+308,
&end
error: source_position not given/unknown
Program trace-back:

"same-occurrence" is hyphenated in the documentation, but causes an error, while "same occurrence" works without an error.


The relevant blocks from the input file are:

&vary_element
index_number = 0
index_limit = 50
name = SETTWISS_DOGLEG1,
item = BETAX
initial = 1
final = 50
geometric = 0
&end

&link_elements
source_position = same occurrence
target = SETTWISS_DOGLEG1
item = ALPHAX
source = SETTWISS_DOGLEG1
equation = "BETAX -6.0 *"
mode = dynamic
&end

I don't know if I am doing something unintended, or if the documentation has a hyphen where it should not be.

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

Re: Error or typo in documentation for link_elements

Post by michael_borland » 07 Jun 2013, 12:52

Chris,

The problem is that you spelled "occurrence" with two r's. The word is spelled incorrectly throughout elegant (!). Try "same-occurence".

--Michael

Post Reply