Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xdmf
Xdmf
Commits
14252b3f
Commit
14252b3f
authored
Sep 16, 2010
by
Kenneth D. Renard (Cont ARL/CISD) kdrenard
Committed by
Kenneth Leiter
Sep 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX: Updates to reflect API changes in Xdmf2Array
parent
fe1a4401
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
core/XdmfArray.hpp
core/XdmfArray.hpp
+0
-2
core/XdmfCore.i
core/XdmfCore.i
+2
-2
No files found.
core/XdmfArray.hpp
View file @
14252b3f
...
...
@@ -330,8 +330,6 @@ public:
template
<
typename
T
>
bool
swap
(
std
::
vector
<
T
>
&
array
);
std
::
string
getDimensionString
()
const
;
/**
* Exchange the contents of the vector with the contents of this XdmfArray. No copy is made. The internal arrays are swapped.
*
...
...
core/XdmfCore.i
View file @
14252b3f
...
...
@@ -129,8 +129,8 @@ swig -v -c++ -python -o XdmfCorePython.cpp XdmfCore.i
%
extend
XdmfArray
{
PyObject
*
getBuffer
()
{
void
*
vp
=
$
self-
>
getValues
Poi
nter
()
;
Py_ssize_t
sz
=
$
self-
>
s
ize
()
*
$
self-
>
getElementSize
()
;
void
*
vp
=
$
self-
>
getValues
I
nter
nal
()
;
Py_ssize_t
sz
=
$
self-
>
getS
ize
()
*
$
self-
>
getElementSize
()
;
PyObject
*
c
=
PyBuffer_FromMemory
(
vp
,
sz
)
;
return
(
c
)
;
}
...
...
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