[MOAB-dev] r5650 - MOAB/trunk/src/io
hayes6 at mcs.anl.gov
hayes6 at mcs.anl.gov
Wed Aug 1 10:49:05 CDT 2012
Author: hayes6
Date: 2012-08-01 10:49:05 -0500 (Wed, 01 Aug 2012)
New Revision: 5650
Modified:
MOAB/trunk/src/io/ReadNC.cpp
Log:
resolve build issue with floor function argument type
Modified: MOAB/trunk/src/io/ReadNC.cpp
===================================================================
--- MOAB/trunk/src/io/ReadNC.cpp 2012-08-01 03:30:55 UTC (rev 5649)
+++ MOAB/trunk/src/io/ReadNC.cpp 2012-08-01 15:49:05 UTC (rev 5650)
@@ -597,11 +597,11 @@
if (isParallel) {
if (rank < num_quads%procs) {
- num_local_quads = int(floor(num_quads/procs))+1;
+ num_local_quads = int(floor(1.0*num_quads/procs))+1;
start_idx = 4*rank*num_local_quads;
}
else {
- num_local_quads = int(floor(num_quads/procs));
+ num_local_quads = int(floor(1.0*num_quads/procs));
start_idx = 4*(num_quads%procs + rank*num_local_quads);
}
}
More information about the moab-dev
mailing list