AMReX Grid reader: add array prefix that indicates a scalar array is actually a component of a vector array
The AMReX Grid format does not provide a way to define vector (multicomponent) arrays. Let's make it possible to produce vector arrays from AMReX Grid files by doing the following:
-
Add a prefix string property to indicate that an array is a component of a vector array (e.g. "amrexvector_") -
Add a setter and getter for this property to the VTK reader -
Assume a postfix of "_x" to indicate that the array is the x-component of a vector array, "_y" is the y-component, and "_z" is the z-component. -
If an array has that prefix, combine it with other arrays that share that prefix and then the name of the array which is found between the prefix and the "_{x,y,z}" postfix. -
In ParaView, add a StringVectorProperty
for this prefix string. Set it's command to the setter defined in step 2 above.
Edited by Corey Wetterer-Nelson (Kitware)