Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
west-public
West
Commits
7197d7b9
Commit
7197d7b9
authored
Aug 06, 2019
by
Marco Govoni
Browse files
Added F90
parent
e40ef590
Changes
1
Hide whitespace changes
Inline
Side-by-side
Libraries/Forpy/forpy_mod.
f
90
→
Libraries/Forpy/forpy_mod.
F
90
View file @
7197d7b9
...
...
@@ -2169,10 +2169,16 @@ function forpy_initialize_unicode() result(ierror)
type
(
c_ptr
)
::
a_unicode
type
(
PyObject
),
pointer
::
ptr
character
(
kind
=
C_CHAR
),
dimension
(
1
)
::
a
character
(
kind
=
C_CHAR
),
dimension
(
7
)
::
b
a
=
[
C_NULL_CHAR
]
b
=
[
's'
,
't'
,
'r'
,
'i'
,
'c'
,
't'
,
C_NULL_CHAR
]
character
(
kind
=
C_CHAR
)
::
a
=
""
,
b
=
"strict"
a_unicode
=
PyUnicode_DecodeUTF8
(
a
,
0_PY_SSIZE_T_KIND
,
b
//
C_NULL_CHAR
)
! fix for PGI compiler: pgi does not like if a and b are
! string literals in this function call
a_unicode
=
PyUnicode_DecodeUTF8
(
a
,
0_PY_SSIZE_T_KIND
,
b
)
if
(
.not.
c_associated
(
a_unicode
))
then
ierror
=
EXCEPTION_ERROR
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment