0.6.6, September 2007
Input lines are parsed and a token list is created. A token is:
`). Embedded strings are not considered tokens. The quotes are removed by the parsing routine.
9] of alphanumeric characters plus
$%&@_.-*/^+~(and any adjacent unmatched quotes, as in apostrophes)
MeshCutoff < "File.fdf" → 3 tokens:
System_Name Devil's staircase → 3 tokens:
%block AtomicCoordinates %dump < coords.dat → 5 tokens
! signal the beginning of a comment. Any
remaining characters on the line are discarded.
Labels and directives (
case-insensitive. Labels are also punctuation-insensitive, by which it
is understood that the characters
- are removed before
any comparison is made.
Label [ Value ]
This line assigns an optional
Label. Value could be a token
or a sequence of tokens not including
<. 'Numerical' routines such
fdf_integer will only use the first token, but
return the whole list.
%block Label ... ... ... # Optional comments %endblock [ Label ]
This construct specifies a block of data that is to be read by the
calling program after a call to
fdf_block. The contents of the block
are dumped to
%endblock must be the first
tokens in their respective lines.
%block Label < Filename [ %dump ]
Opens Filename in order to read the block. If
%dump appears at the
end of the line, the contents of Filename are dumped to
%include Filename # Comments
Filename and continues reading from it.
Label < Filename # Comments
Filename and continues reading from it, ONLY if searching for
There is a maximum number of files that can be opened at the same time for FDF processing.
By default, all the FDF requests are logged, printing the final value
extracted (if it is the default value, it is identified as such). In MPI
operation, only the master node does the logging, unless the
output-level is set to a value ≥
2. This can be done directly in the
fdf-output 2 # Turn on logging for all nodes fdf-output 0 # Turn off logging completely
No debugging is done, unless the
debug-level is set to a value >
The most meaningful way to use this feature is to set the debugging
level before the FDF data structures are built. This can be achieved by
calling the routine
fdf_setdebug with the appropriate level and file
name before the call to
fdf_init. This gives full control over the
Alternatively, if the library is compiled with the pre-processor symbol
FDF_DEBUG defined, it will set the debug level to
2 (exhaustive) for
all nodes in the system. (It will also set the output level to
If the debugging level (≥
2) is only specified in the FDF file itself,
the library will provide a print-out of the final data structure
generated (in all nodes).