Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate vector-valued data #11

Open
uekerman opened this issue Feb 21, 2024 · 0 comments
Open

Investigate vector-valued data #11

uekerman opened this issue Feb 21, 2024 · 0 comments

Comments

@uekerman
Copy link
Member

Currently seems unsupported, meaning we only take the first entry:

# Convert data to list for FMU
if participant.get_data_dimensions(mesh_name, read_data_name) > 1:
# why does this work with one-entry vectors? A (1,2) vector is written on a single scalar FMU variable.
# This is not correct
# The program should abort if data_type = vector and the number of entries
# in vr_read / vr_write do not match the number of elements in read_data / write_data
# preCICE aborts for write_data() with the wrong dimensions, that is ok for now
read_data = read_data[0]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant