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
b3b06601
Commit
b3b06601
authored
Oct 07, 2010
by
Kenneth Leiter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: Get Curvilinear additions wrapped in Python and Java
parent
31b424c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
Xdmf.i
Xdmf.i
+13
-0
utils/XdmfUtils.i
utils/XdmfUtils.i
+1
-0
No files found.
Xdmf.i
View file @
b3b06601
...
...
@@ -29,6 +29,7 @@ swig -v -c++ -python -o XdmfPython.cpp Xdmf.i
#
include
<
XdmfGrid
.
hpp
>
#
include
<
XdmfGridCollection
.
hpp
>
#
include
<
XdmfGridCollectionType
.
hpp
>
#
include
<
XdmfGridCurvilinear
.
hpp
>
#
include
<
XdmfGridRectilinear
.
hpp
>
#
include
<
XdmfGridRegular
.
hpp
>
#
include
<
XdmfItemFactory
.
hpp
>
...
...
@@ -68,6 +69,10 @@ swig -v -c++ -python -o XdmfPython.cpp Xdmf.i
{
*
(
boost
::
shared_ptr
<
XdmfGridCollection
>
**
)
&
($result)
=
value
?
new
boost::shared_ptr<
XdmfGridCollection
>(value)
:
0
;
}
else
if
(
boost
::
shared_ptr
<
XdmfGridCurvilinear
>
value
=
boost
::
shared_dynamic_cast
<
XdmfGridCurvilinear
>
(
$
1
))
{
*
(
boost
::
shared_ptr
<
XdmfGridCurvilinear
>
**
)
&
($result)
=
value
?
new
boost::shared_ptr<
XdmfGridCurvilinear
>(value)
:
0
;
}
else
if
(
boost
::
shared_ptr
<
XdmfGridRectilinear
>
value
=
boost
::
shared_dynamic_cast
<
XdmfGridRectilinear
>
(
$
1
))
{
*
(
boost
::
shared_ptr
<
XdmfGridRectilinear
>
**
)
&
($result)
=
value
?
new
boost::shared_ptr<
XdmfGridRectilinear
>(value)
:
0
;
...
...
@@ -111,6 +116,7 @@ swig -v -c++ -python -o XdmfPython.cpp Xdmf.i
%
ignore
XdmfGrid
::
getSet
(
const
std
::
string
&
)
const;
%
ignore
XdmfGrid
::
getTime
()
const
;
%
ignore
XdmfGrid
::
getTopology
()
const
;
%
ignore
XdmfGridCurvilinear
::
getDimensions
()
const
;
%
ignore
XdmfGridRectilinear
::
getCoordinates
(
const
unsigned
int
)
const
;
%
ignore
XdmfGridRectilinear
::
getCoordinates
()
const
;
%
ignore
XdmfGridRectilinear
::
getDimensions
()
const
;
...
...
@@ -126,6 +132,7 @@ swig -v -c++ -python -o XdmfPython.cpp Xdmf.i
%
ignore
XdmfGeometry
::
ItemTag
;
%
ignore
XdmfGrid
::
ItemTag
;
%
ignore
XdmfGridCollection
::
ItemTag
;
%
ignore
XdmfGridCurvilinear
::
ItemTag
;
%
ignore
XdmfGridRegular
::
ItemTag
;
%
ignore
XdmfGridRectilinear
::
ItemTag
;
%
ignore
XdmfMap
::
ItemTag
;
...
...
@@ -186,6 +193,10 @@ swig -v -c++ -python -o XdmfPython.cpp Xdmf.i
{
$
result
=
SWIG_NewPointerObj
(
SWIG_as_voidptr
(
new
boost
::
shared_ptr
<
XdmfGridCollection
>
(
gridCollection
)),
SWIGTYPE_p_boost__shared_ptrT_XdmfGridCollection_t
,
SWIG_POINTER_OWN
)
;
}
else
if
(
boost
::
shared_ptr
<
XdmfGridCurvilinear
>
gridCurvilinear
=
boost
::
shared_dynamic_cast
<
XdmfGridCurvilinear
>
(
$
1
))
{
$
result
=
SWIG_NewPointerObj
(
SWIG_as_voidptr
(
new
boost
::
shared_ptr
<
XdmfGridCurvilinear
>
(
gridCurvilinear
)),
SWIGTYPE_p_boost__shared_ptrT_XdmfGridCurvilinear_t
,
SWIG_POINTER_OWN
)
;
}
else
if
(
boost
::
shared_ptr
<
XdmfGridRectilinear
>
gridRectilinear
=
boost
::
shared_dynamic_cast
<
XdmfGridRectilinear
>
(
$
1
))
{
$
result
=
SWIG_NewPointerObj
(
SWIG_as_voidptr
(
new
boost
::
shared_ptr
<
XdmfGridRectilinear
>
(
gridRectilinear
)),
SWIGTYPE_p_boost__shared_ptrT_XdmfGridRectilinear_t
,
SWIG_POINTER_OWN
)
;
...
...
@@ -232,6 +243,7 @@ swig -v -c++ -python -o XdmfPython.cpp Xdmf.i
%
shared_ptr
(
XdmfGrid
)
%
shared_ptr
(
XdmfGridCollection
)
%
shared_ptr
(
XdmfGridCollectionType
)
%
shared_ptr
(
XdmfGridCurvilinear
)
%
shared_ptr
(
XdmfGridRectilinear
)
%
shared_ptr
(
XdmfGridRegular
)
%
shared_ptr
(
XdmfItemFactory
)
...
...
@@ -252,6 +264,7 @@ swig -v -c++ -python -o XdmfPython.cpp Xdmf.i
%
include
XdmfGrid
.
hpp
%
include
XdmfGridCollection
.
hpp
%
include
XdmfGridCollectionType
.
hpp
%
include
XdmfGridCurvilinear
.
hpp
%
include
XdmfGridRectilinear
.
hpp
%
include
XdmfGridRegular
.
hpp
%
include
XdmfItemFactory
.
hpp
...
...
utils/XdmfUtils.i
View file @
b3b06601
...
...
@@ -29,6 +29,7 @@ swig -v -c++ -python -o XdmfUtilsPython.cpp XdmfUtils.i
#
include
<
XdmfGrid
.
hpp
>
#
include
<
XdmfGridCollection
.
hpp
>
#
include
<
XdmfGridCollectionType
.
hpp
>
#
include
<
XdmfGridCurvilinear
.
hpp
>
#
include
<
XdmfGridRectilinear
.
hpp
>
#
include
<
XdmfGridRegular
.
hpp
>
#
include
<
XdmfItemFactory
.
hpp
>
...
...
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