Difference between revisions of "Blocks"
From MohidWiki
(→Related links) |
(→Related links) |
||
(One intermediate revision by one other user not shown) | |||
Line 24: | Line 24: | ||
== Related links == | == Related links == | ||
− | *[http:// | + | *[http://wiki.mohid.com/index.php?title=Keyword_list MOHID keyword Database] |
*[[Keywords]] | *[[Keywords]] | ||
*[[New_Keyword]] | *[[New_Keyword]] |
Latest revision as of 13:54, 3 October 2019
Overview
Another way of defining options in a MOHID input data file is, as referred above, by using information blocks. These blocks are normally used so that advanced options can be defined through the combination of groups of keywords.
Block definition
Each block of information is delimited by a begin block tag and an end block tag, each written in a different line. The begin block and end block tags are normally written between the following symbols < and > (e.g. <beginproperty> and “<endproperty>”).
Reading procedure
The reading procedure is similar to the keywords, but this time the 2 tags must be successfully found in order to define a block, identifying the line numbers where the block begins and ends. This allows a regular keyword search algorithm to work only between the 2 tags. A block can also be defined inside another block, therefore creating a hierarchical structure, in where up to three levels are allowed.