[MOAB-dev] commit/MOAB: danwu: [Bug fix] The code that sets pLocalGid is correct in NCHelperMPAS::read_ucd_variable_to_nonset_async(), but wrong in NCHelperMPAS::read_ucd_variable_to_nonset()

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Jul 2 12:37:02 CDT 2013


1 new commit in MOAB:

https://bitbucket.org/fathomteam/moab/commits/ab124b3326fe/
Changeset:   ab124b3326fe
Branch:      master
User:        danwu
Date:        2013-07-02 19:36:41
Summary:     [Bug fix] The code that sets pLocalGid is correct in NCHelperMPAS::read_ucd_variable_to_nonset_async(), but wrong in NCHelperMPAS::read_ucd_variable_to_nonset()

Affected #:  1 file

diff --git a/src/io/NCHelperMPAS.cpp b/src/io/NCHelperMPAS.cpp
index 0d4573f..9c1f075 100644
--- a/src/io/NCHelperMPAS.cpp
+++ b/src/io/NCHelperMPAS.cpp
@@ -867,6 +867,7 @@ ErrorCode NCHelperMPAS::read_ucd_variable_to_nonset(EntityHandle file_set, std::
   int success;
   Range* pLocalGid = NULL;
   // MPI_offset or size_t?
+  std::vector<int> requests(vdatas.size() * tstep_nums.size()), statuss(vdatas.size() * tstep_nums.size());
   for (unsigned int i = 0; i < vdatas.size(); i++) {
     switch (vdatas[i].entLoc) {
       case ReadNC::ENTLOCVERT:
@@ -882,10 +883,7 @@ ErrorCode NCHelperMPAS::read_ucd_variable_to_nonset(EntityHandle file_set, std::
         ERRORR(MB_FAILURE, "Unrecognized entity location type.");
         break;
     }
-  }
 
-  std::vector<int> requests(vdatas.size() * tstep_nums.size()), statuss(vdatas.size() * tstep_nums.size());
-  for (unsigned int i = 0; i < vdatas.size(); i++) {
     for (unsigned int t = 0; t < tstep_nums.size(); t++) {
       std::size_t sz = vdatas[i].numLev * vdatas[i].readCounts[t][1];

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