This function invokes the vectorial Lua function, in which the barycentric coordinates are computed from treeIds of an element.
Lua function defined in the script is connected to the conf handle and return the result of the function. The Lua function takes barycentric coordinate as input argument i.e fun_name(x,y,z)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | fun_ref | Lua reference to the function to evaluate. |
||
type(flu_State) | :: | conf | lua state |
|||
integer(kind=long_k), | intent(in) | :: | treeIds(n) | treeIds of elements in given level |
||
type(treelmesh_type), | intent(in) | :: | tree | global treelm mesh |
||
integer, | intent(in) | :: | n | number of return values |
||
integer, | intent(in) | :: | ncomp | Number of components in each returned value |
return value
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(aot_fun_type), | private | :: | fun | ||||
integer, | private | :: | iError(nComp) | ||||
integer, | private | :: | iDir | ||||
integer, | private | :: | jDir | ||||
real(kind=rk), | private | :: | coord(3) |