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
Ben Boeckel
Xdmf
Commits
26bed716
Commit
26bed716
authored
Mar 26, 2013
by
Kenneth Leiter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
COMP: Get rid of some GCC compiler warnings.
parent
456d231f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
11 deletions
+14
-11
XdmfMap.cpp
XdmfMap.cpp
+1
-1
core/XdmfHDF5Writer.cpp
core/XdmfHDF5Writer.cpp
+3
-3
utils/XdmfExodusWriter.cpp
utils/XdmfExodusWriter.cpp
+6
-3
utils/XdmfFortran.cpp
utils/XdmfFortran.cpp
+4
-4
No files found.
XdmfMap.cpp
View file @
26bed716
...
...
@@ -68,7 +68,7 @@ XdmfMap::New(const std::vector<shared_ptr<XdmfAttribute> > & globalNodeIds)
for
(
std
::
map
<
task_id
,
node_id
>::
const_iterator
iter
=
currMap
.
begin
();
iter
!=
currMap
.
end
();
++
iter
)
{
if
(
iter
->
first
!=
i
)
{
if
(
iter
->
first
!=
(
int
)
i
)
{
map
->
insert
(
iter
->
first
,
j
,
iter
->
second
);
}
}
...
...
core/XdmfHDF5Writer.cpp
View file @
26bed716
...
...
@@ -60,7 +60,7 @@ public:
closeFile
()
{
if
(
mHDF5Handle
>=
0
)
{
herr_t
status
=
H5Fclose
(
mHDF5Handle
);
/*
herr_t status =
*/
H5Fclose
(
mHDF5Handle
);
mHDF5Handle
=
-
1
;
}
};
...
...
@@ -87,8 +87,8 @@ public:
H5F_ACC_RDWR
,
fapl
);
hsize_t
numObjects
;
herr_t
status
=
H5Gget_num_objs
(
mHDF5Handle
,
&
numObjects
);
/*
herr_t status =
*/
H5Gget_num_objs
(
mHDF5Handle
,
&
numObjects
);
toReturn
=
numObjects
;
}
else
{
...
...
utils/XdmfExodusWriter.cpp
View file @
26bed716
...
...
@@ -273,11 +273,14 @@ XdmfExodusWriter::write(const std::string & filePath,
if
(
currGrid
->
getTopology
()
->
getType
()
==
XdmfTopologyType
::
Hexahedron_27
())
{
itmp
[
0
]
=
*
ptr
;
*
(
ptr
++
)
=
ptr
[
6
];
*
ptr
=
ptr
[
6
];
ptr
++
;
itmp
[
1
]
=
*
ptr
;
*
(
ptr
++
)
=
ptr
[
3
];
*
ptr
=
ptr
[
3
];
ptr
++
;
itmp
[
2
]
=
*
ptr
;
*
(
ptr
++
)
=
ptr
[
3
];
*
ptr
=
ptr
[
3
];
ptr
++
;
itmp
[
3
]
=
*
ptr
;
for
(
unsigned
int
j
=
0
;
j
<
4
;
++
j
,
++
ptr
)
{
*
ptr
=
itmp
[
j
];
...
...
utils/XdmfFortran.cpp
View file @
26bed716
...
...
@@ -384,7 +384,7 @@ XdmfFortran::addInformation(const char * const key,
void
XdmfFortran
::
addPreviousAttribute
(
const
int
attributeId
)
{
if
(
attributeId
>=
mPreviousAttributes
.
size
())
{
if
(
attributeId
>=
(
int
)
mPreviousAttributes
.
size
())
{
XdmfError
::
message
(
XdmfError
::
FATAL
,
"Invalid attribute id"
);
}
mAttributes
.
push_back
(
mPreviousAttributes
[
attributeId
]);
...
...
@@ -393,7 +393,7 @@ XdmfFortran::addPreviousAttribute(const int attributeId)
void
XdmfFortran
::
addPreviousInformation
(
const
int
informationId
)
{
if
(
informationId
>=
mPreviousInformations
.
size
())
{
if
(
informationId
>=
(
int
)
mPreviousInformations
.
size
())
{
XdmfError
::
message
(
XdmfError
::
FATAL
,
"Invalid information id"
);
}
mInformations
.
push_back
(
mPreviousInformations
[
informationId
]);
...
...
@@ -440,7 +440,7 @@ XdmfFortran::setGeometry(const int geometryType,
void
XdmfFortran
::
setPreviousGeometry
(
const
int
geometryId
)
{
if
(
geometryId
>=
mPreviousGeometries
.
size
())
{
if
(
geometryId
>=
(
int
)
mPreviousGeometries
.
size
())
{
XdmfError
::
message
(
XdmfError
::
FATAL
,
"Invalid geometry id"
);
}
mGeometry
=
mPreviousGeometries
[
geometryId
];
...
...
@@ -449,7 +449,7 @@ XdmfFortran::setPreviousGeometry(const int geometryId)
void
XdmfFortran
::
setPreviousTopology
(
const
int
topologyId
)
{
if
(
topologyId
>=
mPreviousTopologies
.
size
())
{
if
(
topologyId
>=
(
int
)
mPreviousTopologies
.
size
())
{
XdmfError
::
message
(
XdmfError
::
FATAL
,
"Invalid topology id"
);
}
mTopology
=
mPreviousTopologies
[
topologyId
];
...
...
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