Skip to content

Where to place declaration of struct SimulationData #145

@MatthiasFreimuth

Description

@MatthiasFreimuth

Is there a reason, why SimulationData is filled/ initialised early in nonlingeo_precice.c and not just right before it is used in Precice_Setup?
For a testcase of mine it happens, that the data within SimulationData seems to be alternated in between declaration and usage and therefore some values are not correct when calling Precice_Setup. I would guess that the size of some fields inside the struct differ in between, so we have a problem of memory allocation or access.
For my case it helped to move the struct SimulationData part right in front of the Precice_Setup call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions