This function invokes the Lua function for barycentric coordinates of an element specified by treeIds and returns an array with the given number of components.
Note, that the returned object by the Lua function has to be a table, except if there is only one component. For arrays of length 1 the Lua return value has to be a simple scalar, not a table!
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | fun_ref | Reference of the function to open |
||
integer(kind=long_k), | intent(in) | :: | treeIds(n) | treeIds of elements in given level |
||
type(tem_time_type), | intent(in) | :: | time | timer object incl. the current time information |
||
type(treelmesh_type), | intent(in) | :: | tree | global treelm mesh |
||
integer, | intent(in) | :: | n | number of return values |
||
integer, | intent(in) | :: | ncomp | number of components per returned value |
||
type(flu_State), | intent(in) | :: | conf | lua state |
return value
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(aot_fun_type), | private | :: | fun | ||||
integer, | private | :: | iError(ncomp) | ||||
integer, | private | :: | i | ||||
integer, | private | :: | j | ||||
real(kind=rk), | private | :: | coord(3) |