[MOAB-dev] commit/MOAB: iulian07: correct a bug

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Fri Oct 25 11:23:39 CDT 2013


1 new commit in MOAB:

https://bitbucket.org/fathomteam/moab/commits/fa78bfc128fa/
Changeset:   fa78bfc128fa
Branch:      master
User:        iulian07
Date:        2013-10-25 18:22:37
Summary:     correct a bug
start index for variable sent to different processors

Affected #:  1 file

diff --git a/src/io/NCHelperMPAS.cpp b/src/io/NCHelperMPAS.cpp
index 269312c..207fb7d 100644
--- a/src/io/NCHelperMPAS.cpp
+++ b/src/io/NCHelperMPAS.cpp
@@ -960,7 +960,7 @@ ErrorCode NCHelperMPAS::redistribute_local_cells(int start_cell_idx)
     int success = NCFUNC(inq_varid)(_fileId, "xCell", &xCellVarId);
     ERRORS(success, "Failed to get variable id of xCell.");
     std::vector<double> xCell(nLocalCells);
-    NCDF_SIZE read_start = 0;
+    NCDF_SIZE read_start = static_cast<NCDF_SIZE>(start_cell_idx-1);
     NCDF_SIZE read_count = static_cast<NCDF_SIZE>(nLocalCells);
     success = NCFUNCAG(_vara_double)(_fileId, xCellVarId, &read_start, &read_count, &xCell[0]);
     ERRORS(success, "Failed to read xCell data.");

Repository URL: https://bitbucket.org/fathomteam/moab/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.


More information about the moab-dev mailing list