Closed davidscn closed 2 years ago
Thanks @DavidSCN for pointing out the outdated link! We will update this :+1:
The action actionWriteInitialData
is found in the Python bindings as action_write_initial_data. Is this what you are looking for?
The action actionWriteInitialData is found in the Python bindings as action_write_initial_data. Is this what you are looking for?
Yes. Is it supposed to be used directly in fenics? Later, I saw that the function is actually already used in the adapter during initialization.
Yes. Is it supposed to be used directly in fenics? Later, I saw that the function is actually already used in the adapter during initialization.
Using this particular function in FEniCS depends on how you want to couple your FEniCS code using preCICE. If you directly want to use the Python bindings in the FEniCS code then yes you will need to use this function directly in the code. If you want to use the adapter (highly recommended) then the action of writing initial data is taken care off in the initialize function of the adapter so that the user does not have to worry about it.
https://github.com/precice/fenics-adapter/blob/69a16bdf9d237e512e2e1ae9ef4ed1bb983ea5b9/fenicsprecice/fenicsprecice.py#L560
The referenced link doesn't work and is outdated (amongst others in this file). In particular, I'm looking for the action
actionWriteInitialData
, but I couldn't find any documentation on this. Is it available at all?