Commit 273290a2 authored by Andrew J. Burns (Cont's avatar Andrew J. Burns (Cont

taking care of the intel compiler warnings

parent b5dd7763
...@@ -183,8 +183,11 @@ swig -v -c++ -python -o XdmfCorePython.cpp XdmfCore.i ...@@ -183,8 +183,11 @@ swig -v -c++ -python -o XdmfCorePython.cpp XdmfCore.i
#endif #endif
/*This causes it to avoid throwing a warning for redefining fuctions that are defined for XdmfArray. /*This causes it to avoid throwing a warning for redefining fuctions that are defined for XdmfArray.
I this case doing so was intentional.*/ I do this because doing so was intentional.*/
#pragma SWIG nowarn=302 #pragma SWIG nowarn=302
/*This causes it to avoid throwing a warning about overloaded functions.
We are doing this intentionally so suppressing the warning makes sense.*/
#pragma SWIG nowarn=509
// Provide accessors from python lists to XdmfArrays // Provide accessors from python lists to XdmfArrays
%extend XdmfArray { %extend XdmfArray {
......
...@@ -532,10 +532,12 @@ XdmfHDF5Writer::write(XdmfArray & array, ...@@ -532,10 +532,12 @@ XdmfHDF5Writer::write(XdmfArray & array,
status = H5Sclose(checkspace); status = H5Sclose(checkspace);
} }
if (mMode == Overwrite) { if (mMode == Overwrite) {
fileSize = fileSize - checksize;//remove previous set's size, since it's overwritten if (checksize > fileSize) {
if (fileSize < 0) {
fileSize = 0; fileSize = 0;
} }
else {
fileSize = fileSize - checksize;//remove previous set's size, since it's overwritten
}
if (fileSize == 0) { if (fileSize == 0) {
fileSize += 800; fileSize += 800;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment