You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using f90wrap v0.2.3
I have a problem passing array of string from fortan to python
in the string example f90wrap/examples/string I changed func_return_string to
function func_return_string() result(stringout)
CHARACTER(51),dimension(10):: stringout
stringout(1) = 'yy-_-::this is a string with ASCII, / and 123...::-_-'
print*,stringout(1)
stringout(2) = 'eerde'
print*,stringout(2)
end function func_return_string
in the python code when printing the outstring I got
I'm afraid there's nothing simple to be done about this - this is what the Fortran representation of the string looks like. You can convert to a Python string with ''.join(outstring) or similar.
I am using f90wrap v0.2.3
I have a problem passing array of string from fortan to python
in the string example
f90wrap/examples/string
I changedfunc_return_string
toin the python code when printing the
outstring
I goteach element of the array is getting one letter of the first string.
The text was updated successfully, but these errors were encountered: