This routine obtains a vectorial quantity with fixed length from a Lua
table as a whole.
It is intented to ease the reading of vectors on the Fortran side by
capsulating the parsing of the Lua table internally.
Components which are not found are filled with the data given in
the default vector. For each component an error code will be returned
to indicate the success when reading it.
If the vector is not defined at all, all components will be indicated
as non-existent.
Components, which are neither defined in the Lua script, nor in the
default will be marked with the aoterr_Fatal flag.
Arguments
Type
Intent
Optional
Attributes
Name
real(kind=double_k),
intent(out)
::
val(:)
Vector read from the Lua table.
integer,
intent(out)
::
ErrCode(:)
Error code describing problems encountered in each of the components.
This array has to have the same length as val.
type(flu_State)
::
L
Handle to the lua script
integer,
intent(in),
optional
::
thandle
Handle of the parent table
character(len=*),
intent(in),
optional
::
key
Name of the variable (vector) to read.
integer,
intent(in),
optional
::
pos
Position of the (vector) to read.
real(kind=double_k),
intent(in),
optional
::
default(:)
A default vector to use, if no proper definition is found.
Components will be filled with the help of this default definition.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.