precice / PreCICE.jl

Julia language bindings for preCICE
GNU Lesser General Public License v3.0
11 stars 1 forks source link

Add missing API functions #50

Closed erikscheurer closed 1 year ago

erikscheurer commented 1 year ago

This PR adds functions that are missing from the preCICE API.

This includes:

The realization of the last point is still up for discussion. At the moment, I have an optional argument as -1.0 and a case distinction in the function itself which I think is not ideal. In the python bindings the optional argument is None, however, in Julia, if you do this, you can't give the argument Type as Float64 because nothing is of type Nothing. Another option is to simply use multiple dispatch for the function, so create multiple functions just like in the API, however, I did not get this to work at the moment. Trying to run the solverdummies, they could not find the correct function when the functioncall is separated.