Python equivalents of the functions in lib.misc
The functions in this module should be exact emulations of the external functions in the compiled library.
Compute the nodal sum of values defined on elements.
val : (nelems,nplex,nval) values at points of elements. elems : (nelems,nplex) nodal ids of points of elements. work : (nnod,nval) returns the summed values at the nodes
On return each value is replaced with the sum of values at that node. If avg=True, the values are replaced with the average instead.
The summation is done inplace, so there is no return value!