[MOAB-dev] r4969 - MOAB/trunk/src/parallel
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Wed Jun 8 11:20:11 CDT 2011
Author: kraftche
Date: 2011-06-08 11:20:11 -0500 (Wed, 08 Jun 2011)
New Revision: 4969
Modified:
MOAB/trunk/src/parallel/ParallelComm.cpp
Log:
fix warnings for 32-bit build
Modified: MOAB/trunk/src/parallel/ParallelComm.cpp
===================================================================
--- MOAB/trunk/src/parallel/ParallelComm.cpp 2011-06-08 16:16:29 UTC (rev 4968)
+++ MOAB/trunk/src/parallel/ParallelComm.cpp 2011-06-08 16:20:11 UTC (rev 4969)
@@ -965,19 +965,19 @@
ind, false, L1hloc, L1hrem, L1p, L2hloc, L2hrem, L2p, new_ents);
RRA("Unpacking entities failed.");
if (myDebug->get_verbosity() == 3) {
- myDebug->tprintf(4, "unpack_entities buffer space: %ld bytes.\n", buff_ptr-tmp_buff);
+ myDebug->tprintf(4, "unpack_entities buffer space: %ld bytes.\n", (long int)(buff_ptr-tmp_buff));
tmp_buff = buff_ptr;
}
result = unpack_sets(buff_ptr, new_ents, store_remote_handles, from_proc);
RRA("Unpacking sets failed.");
if (myDebug->get_verbosity() == 3) {
- myDebug->tprintf(4, "unpack_sets buffer space: %ld bytes.\n", buff_ptr - tmp_buff);
+ myDebug->tprintf(4, "unpack_sets buffer space: %ld bytes.\n", (long int)(buff_ptr - tmp_buff));
tmp_buff = buff_ptr;
}
result = unpack_tags(buff_ptr, new_ents, store_remote_handles, from_proc);
RRA("Unpacking tags failed.");
if (myDebug->get_verbosity() == 3) {
- myDebug->tprintf(4, "unpack_tags buffer space: %ld bytes.\n", buff_ptr - tmp_buff);
+ myDebug->tprintf(4, "unpack_tags buffer space: %ld bytes.\n", (long int)(buff_ptr - tmp_buff));
tmp_buff = buff_ptr;
}
@@ -1190,7 +1190,7 @@
PACK_DBLS(buff->buff_ptr, &tmp_coords[0], 3*num_ents);
RRA("Couldn't get vertex coordinates.");
- myDebug->tprintf(4, "Packed %lu ents of type %s\n", these_ents.size(),
+ myDebug->tprintf(4, "Packed %lu ents of type %s\n", (unsigned long)these_ents.size(),
CN::EntityTypeName(TYPE_FROM_HANDLE(*these_ents.begin())));
}
@@ -1378,7 +1378,7 @@
// substitute destination handles
RRA("Trouble getting remote handles when packing entities.");
- myDebug->tprintf(4, "Packed %lu ents of type %s\n", these_ents.size(),
+ myDebug->tprintf(4, "Packed %lu ents of type %s\n", (unsigned long)these_ents.size(),
CN::EntityTypeName(TYPE_FROM_HANDLE(*these_ents.begin())));
return result;
@@ -4477,7 +4477,7 @@
RRA("get_sent_ents failed.");
myDebug->tprintf(1, "allsent ents compactness (size) = %f (%lu)\n", allsent.compactness(),
- allsent.size());
+ (unsigned long)allsent.size());
More information about the moab-dev
mailing list