{"id":3390,"date":"2019-02-12T16:09:08","date_gmt":"2019-02-12T16:09:08","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/usage-help-manual\/19-variables-and-computations\/arr_specs\/"},"modified":"2025-07-25T12:14:07","modified_gmt":"2025-07-25T17:14:07","slug":"arr_specs","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/arr_specs\/","title":{"rendered":"arr_specs"},"content":{"rendered":"<div>\n<h3>Purpose:<\/h3>\n<\/div>\n<dl>\n<dd>\n<p>Process array specifications to configure array variables.<\/p>\n<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>arr_specs<\/strong> [array_specs_filename]<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl>\n<dd>\n<div>\n<table style=\"width: 50.6468%; height: 80px;\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col \/>\n<col \/> <\/colgroup>\n<tbody>\n<tr style=\"height: 80px;\">\n<td style=\"height: 80px;\">\n<p>array_specs_filename<\/p>\n<\/td>\n<td style=\"height: 80px;\">\n<p>Optional. Specify the specification file name. The default is: \/specs\/arr_specs.NNN.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/dd>\n<\/dl>\n<h3>Example:<\/h3>\n<dl>\n<dd>\n<p><strong>arr_specs<\/strong><br \/>\nThe above command configures array variables as specified in the default file.<\/p>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>The arr_specs command causes the array variables to be configured as specified in the array specs specification file.<\/p>\n<p>Use the errs command to check for errors after using this command.<\/p>\n<p>Array initialization in the spec file sets values as specified, with the entire array set to an initial value if provided.<\/p>\n<div>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; \u00a0 array initialization &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-\u00a0 <br \/>\n\u00a0<br \/>\n\u00a0\u00a0\u00a0The array variable may be initialized by adding initialization lines to the spec file.\u00a0\u00a0The format of an initialization line is as follows: \u00a0<br \/>\n\u00a0<br \/>\n\u00a0\u00a0\u00a0vrblName:[strtElem1][,][endElem1]&#8230;=valu[,incr]<\/div>\n<p>Where:<\/p>\n<table style=\"width: 581px;\">\n<tbody>\n<tr>\n<td style=\"width: 94.09px;\">vrblName<\/td>\n<td style=\"width: 470.91px;\">The name of the array variable.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 94.09px;\">strtElem<\/td>\n<td style=\"width: 470.91px;\">The starting element of the 1st dimension (optional).<br \/>\nThe value may be either numeric or an enum string.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 94.09px;\">endElem<\/td>\n<td style=\"width: 470.91px;\">The ending element of the 1st dimension (optional).<br \/>\nThe value may be either numeric or an enum string.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 94.09px;\">valu<\/td>\n<td style=\"width: 470.91px;\">The starting value to set the elements to.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 94.09px;\">incr<\/td>\n<td style=\"width: 470.91px;\">The incremental value to be added to the value for subsequent elements. If missing, &#8216;valu&#8217; will be assigned to all elements. (Optional)<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 94.09px;\">\u2026<\/td>\n<td style=\"width: 470.91px;\">To repeat the &#8216;:[strtElem][,][endElem]&#8217; for the next array element if desired.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Given the following entry in a spec file:<\/p>\n<pre>conc     REAL_ARRAY    ppm    3\r\n3\u00a0\u00a0\u00a0L1 L2 L3\r\n4\u00a0\u00a0\u00a0c1 c2 c3 c4\r\n2\r\nconc:=-2\r\nconc:L1,L2:c2,c3:1=1,2\r\n$<\/pre>\n<p>The above provides the following array initialization: The entire array variable is set to -2 as a result of the 1st initialization line. The second initialization line results in<\/p>\n<p>conc[0][1][1] = 1<br \/>\nconc[0][2][1] = 3<br \/>\nconc[1][1][1] = 5<br \/>\nconc[1][2][1] = 7<\/p>\n<\/dd>\n<\/dl>\n<h3>See Also:<\/h3>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <a href=\"\/index.php\/usage-help-manual\/11-utilities-and-user-commands\/errs\/\">errs<\/a><\/p>\n<dl>\n<dd>\n<p>&nbsp;<\/p>\n<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Process array specifications to configure array variables. Enter: arr_specs [array_specs_filename] Where: array_specs_filename Optional. Specify the specification file name. The default is: \/specs\/arr_specs.NNN. Example: arr_specs The above command configures array variables as specified in the default file. Notes: The arr_specs command causes the array variables to be configured as specified in the array specs specification [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1966,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3390","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=3390"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3390\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1966"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=3390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}