Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xdmf
Xdmf
Commits
198c3f5f
Commit
198c3f5f
authored
Dec 13, 2010
by
Brian Panneton
Browse files
Merge branch 'tidyup'
parents
e58278dd
2bc4f259
Changes
3
Hide whitespace changes
Inline
Side-by-side
core/XdmfCore.i
View file @
198c3f5f
...
...
@@ -23,6 +23,9 @@ swig -v -c++ -python -o XdmfCorePython.cpp XdmfCore.i
#
include
<
XdmfSystemUtils
.
hpp
>
#
include
<
XdmfVisitor
.
hpp
>
#
include
<
XdmfWriter
.
hpp
>
#
include
<
ProjectVersion
.
hpp
>
#
include
<
XdmfVersion
.
hpp
>
%
}
#
ifdef
SWIGJAVA
...
...
@@ -288,7 +291,6 @@ swig -v -c++ -python -o XdmfCorePython.cpp XdmfCore.i
%
include
XdmfItem
.
hpp
%
include
XdmfItemProperty
.
hpp
%
include
XdmfVisitor
.
hpp
%
include
XdmfHeavyDataController
.
hpp
%
include
XdmfHeavyDataWriter
.
hpp
...
...
@@ -299,6 +301,15 @@ swig -v -c++ -python -o XdmfCorePython.cpp XdmfCore.i
%
include
XdmfHDF5Writer
.
hpp
%
include
XdmfWriter
.
hpp
%
include
CMake
/
VersionSuite
/
ProjectVersion
.
hpp
%
include
XdmfVersion
.
hpp
#
ifdef
SWIGPYTHON
%
pythoncode
{
XdmfVersion
=
_XdmfCore
.
cvar
.
XdmfVersion
}
;
#
endif
#
ifdef
XDMF_BUILD_DSM
%
include
XdmfHDF5ControllerDSM
.
hpp
%
include
XdmfHDF5WriterDSM
.
hpp
...
...
core/tests/Python/CMakeLists.txt
View file @
198c3f5f
...
...
@@ -14,6 +14,7 @@ ADD_TEST_PYTHON_PYTHONPATH("${CMAKE_BINARY_DIR}")
# ---------------------
ADD_TEST_PYTHON
(
TestXdmfArray
)
ADD_TEST_PYTHON
(
TestXdmfEquals
)
ADD_TEST_PYTHON
(
TestXdmfVersion
)
# Add any python cleanup here:
# Note: We don't want to use a foreach loop to test the files incase we
...
...
@@ -22,6 +23,7 @@ ADD_TEST_PYTHON(TestXdmfEquals)
# ---------------------------------------
CLEAN_TEST_PYTHON
(
TestXdmfArray
)
CLEAN_TEST_PYTHON
(
TestXdmfEquals
)
CLEAN_TEST_PYTHON
(
TestXdmfVersion
)
# Add a custom target for all python tests
# Note: ${TARGETS} is set in ADD_TEST_PYTHON
...
...
core/tests/Python/TestXdmfVersion.py
0 → 100644
View file @
198c3f5f
from
XdmfCore
import
*
if
__name__
==
"__main__"
:
print
XdmfVersion
.
getFull
()
print
XdmfVersion
.
getShort
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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