A module to produce Lua scripts with nested tables.
This module eases the output of readable Lua scripts. It takes care of indentation with nested tables, and provides a concise interface to output Fortran data into Lua tables. Therefore this module is somehow the counter-part to the reading functions, however it is almost completely independent and relies purely on Fortran output methods. Thus this module could stand alone, along with the flu_kinds_module without the Lua library.
Put Fortran intrinsic types into the script.
Put integer variables into the Lua script.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | |||
integer(kind=int_k), | intent(in) | :: | val | |||
character(len=*), | intent(in), | optional | :: | vname | ||
logical, | intent(in), | optional | :: | advance_previous |
Put long variables into the Lua script.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | |||
integer(kind=long_k), | intent(in) | :: | val | |||
character(len=*), | intent(in), | optional | :: | vname | ||
logical, | intent(in), | optional | :: | advance_previous |
Put real variables into the Lua script.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | |||
real(kind=single_k), | intent(in) | :: | val | |||
character(len=*), | intent(in), | optional | :: | vname | ||
logical, | intent(in), | optional | :: | advance_previous |
Put double variables into the Lua script.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | |||
real(kind=double_k), | intent(in) | :: | val | |||
character(len=*), | intent(in), | optional | :: | vname | ||
logical, | intent(in), | optional | :: | advance_previous |
Put logical variables into the Lua script.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | |||
logical, | intent(in) | :: | val | |||
character(len=*), | intent(in), | optional | :: | vname | ||
logical, | intent(in), | optional | :: | advance_previous |
Put string variables into the Lua script.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | |||
character(len=*), | intent(in) | :: | val | |||
character(len=*), | intent(in), | optional | :: | vname | ||
logical, | intent(in), | optional | :: | advance_previous |
This is a vectorized version of the value output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | Lua script to write the array into. |
||
integer(kind=int_k), | intent(in) | :: | val(:) | Actual data to write into the script |
||
character(len=*), | intent(in), | optional | :: | vname | Name for this array |
|
logical, | intent(in), | optional | :: | advance_previous | Flag if this array should be put on the same line as the last entry of the parent table. |
|
integer, | intent(in), | optional | :: | max_per_line | Maximal number of entries to put into a single line. Defaults to 8. |
This is a vectorized version of the value output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | Lua script to write the array into. |
||
integer(kind=long_k), | intent(in) | :: | val(:) | Actual data to write into the script |
||
character(len=*), | intent(in), | optional | :: | vname | Name for this array |
|
logical, | intent(in), | optional | :: | advance_previous | Flag if this array should be put on the same line as the last entry of the parent table. |
|
integer, | intent(in), | optional | :: | max_per_line | Maximal number of entries to put into a single line. Defaults to 8. |
This is a vectorized version of the value output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | Lua script to write the array into. |
||
real(kind=single_k), | intent(in) | :: | val(:) | Actual data to write into the script |
||
character(len=*), | intent(in), | optional | :: | vname | Name for this array |
|
logical, | intent(in), | optional | :: | advance_previous | Flag if this array should be put on the same line as the last entry of the parent table. |
|
integer, | intent(in), | optional | :: | max_per_line | Maximal number of entries to put into a single line. Defaults to 5. |
This is a vectorized version of the value output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | Lua script to write the array into. |
||
real(kind=double_k), | intent(in) | :: | val(:) | Actual data to write into the script |
||
character(len=*), | intent(in), | optional | :: | vname | Name for this array |
|
logical, | intent(in), | optional | :: | advance_previous | Flag if this array should be put on the same line as the last entry of the parent table. |
|
integer, | intent(in), | optional | :: | max_per_line | Maximal number of entries to put into a single line. Defaults to 3. |
This is a vectorized version of the value output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | Lua script to write the array into. |
||
logical, | intent(in) | :: | val(:) | Actual data to write into the script |
||
character(len=*), | intent(in), | optional | :: | vname | Name for this array |
|
logical, | intent(in), | optional | :: | advance_previous | Flag if this array should be put on the same line as the last entry of the parent table. |
|
integer, | intent(in), | optional | :: | max_per_line | Maximal number of entries to put into a single line. Defaults to 10. |
This is a vectorized version of the value output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | Lua script to write the array into. |
||
character(len=*), | intent(in) | :: | val(:) | Actual data to write into the script |
||
character(len=*), | intent(in), | optional | :: | vname | Name for this array |
|
logical, | intent(in), | optional | :: | advance_previous | Flag if this array should be put on the same line as the last entry of the parent table. |
|
integer, | intent(in), | optional | :: | max_per_line | Maximal number of entries to put into a single line. Defaults to 1. |
Put integer variables into the Lua script.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | |||
integer(kind=int_k), | intent(in) | :: | val | |||
character(len=*), | intent(in), | optional | :: | vname | ||
logical, | intent(in), | optional | :: | advance_previous |
Put long variables into the Lua script.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | |||
integer(kind=long_k), | intent(in) | :: | val | |||
character(len=*), | intent(in), | optional | :: | vname | ||
logical, | intent(in), | optional | :: | advance_previous |
Put real variables into the Lua script.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | |||
real(kind=single_k), | intent(in) | :: | val | |||
character(len=*), | intent(in), | optional | :: | vname | ||
logical, | intent(in), | optional | :: | advance_previous |
Put double variables into the Lua script.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | |||
real(kind=double_k), | intent(in) | :: | val | |||
character(len=*), | intent(in), | optional | :: | vname | ||
logical, | intent(in), | optional | :: | advance_previous |
Put logical variables into the Lua script.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | |||
logical, | intent(in) | :: | val | |||
character(len=*), | intent(in), | optional | :: | vname | ||
logical, | intent(in), | optional | :: | advance_previous |
Put string variables into the Lua script.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | |||
character(len=*), | intent(in) | :: | val | |||
character(len=*), | intent(in), | optional | :: | vname | ||
logical, | intent(in), | optional | :: | advance_previous |
This is a vectorized version of the value output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | Lua script to write the array into. |
||
integer(kind=int_k), | intent(in) | :: | val(:) | Actual data to write into the script |
||
character(len=*), | intent(in), | optional | :: | vname | Name for this array |
|
logical, | intent(in), | optional | :: | advance_previous | Flag if this array should be put on the same line as the last entry of the parent table. |
|
integer, | intent(in), | optional | :: | max_per_line | Maximal number of entries to put into a single line. Defaults to 8. |
This is a vectorized version of the value output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | Lua script to write the array into. |
||
integer(kind=long_k), | intent(in) | :: | val(:) | Actual data to write into the script |
||
character(len=*), | intent(in), | optional | :: | vname | Name for this array |
|
logical, | intent(in), | optional | :: | advance_previous | Flag if this array should be put on the same line as the last entry of the parent table. |
|
integer, | intent(in), | optional | :: | max_per_line | Maximal number of entries to put into a single line. Defaults to 8. |
This is a vectorized version of the value output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | Lua script to write the array into. |
||
real(kind=single_k), | intent(in) | :: | val(:) | Actual data to write into the script |
||
character(len=*), | intent(in), | optional | :: | vname | Name for this array |
|
logical, | intent(in), | optional | :: | advance_previous | Flag if this array should be put on the same line as the last entry of the parent table. |
|
integer, | intent(in), | optional | :: | max_per_line | Maximal number of entries to put into a single line. Defaults to 5. |
This is a vectorized version of the value output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | Lua script to write the array into. |
||
real(kind=double_k), | intent(in) | :: | val(:) | Actual data to write into the script |
||
character(len=*), | intent(in), | optional | :: | vname | Name for this array |
|
logical, | intent(in), | optional | :: | advance_previous | Flag if this array should be put on the same line as the last entry of the parent table. |
|
integer, | intent(in), | optional | :: | max_per_line | Maximal number of entries to put into a single line. Defaults to 3. |
This is a vectorized version of the value output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | Lua script to write the array into. |
||
logical, | intent(in) | :: | val(:) | Actual data to write into the script |
||
character(len=*), | intent(in), | optional | :: | vname | Name for this array |
|
logical, | intent(in), | optional | :: | advance_previous | Flag if this array should be put on the same line as the last entry of the parent table. |
|
integer, | intent(in), | optional | :: | max_per_line | Maximal number of entries to put into a single line. Defaults to 10. |
This is a vectorized version of the value output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(aot_out_type), | intent(inout) | :: | put_conf | Lua script to write the array into. |
||
character(len=*), | intent(in) | :: | val(:) | Actual data to write into the script |
||
character(len=*), | intent(in), | optional | :: | vname | Name for this array |
|
logical, | intent(in), | optional | :: | advance_previous | Flag if this array should be put on the same line as the last entry of the parent table. |
|
integer, | intent(in), | optional | :: | max_per_line | Maximal number of entries to put into a single line. Defaults to 1. |