Open Yushan-Wang opened 4 weeks ago
For the moment, one can only use size_of clause in read section. We would like to provide a new yaml block targeting the use of size_of, for both read and write. pesudo yaml:
size_of
read
data: array_size: int mesh_sizes: {type: array, subtype: int, size: 3} write: my_array array_size read: my_mesh_array mesh_sizes get_size: array_size: my_array mesh_sizes: my_mesh_array
When my_mesh_array is read, mesh_sizes will be set automatically. When my_array is exposed to PDI, the array_size is evaluated as well.
my_mesh_array
mesh_sizes
my_array
array_size
For the moment, one can only use
size_of
clause inread
section. We would like to provide a new yaml block targeting the use of size_of, for both read and write. pesudo yaml:When
my_mesh_array
is read,mesh_sizes
will be set automatically. Whenmy_array
is exposed to PDI, thearray_size
is evaluated as well.