[MOAB-dev] commit/MOAB: danwu: Removed a compiler warning for NCWriteGCRM.cpp (variable 'num_timesteps' set but not used).

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue May 13 13:47:09 CDT 2014


1 new commit in MOAB:

https://bitbucket.org/fathomteam/moab/commits/7be3f66f1196/
Changeset:   7be3f66f1196
Branch:      master
User:        danwu
Date:        2014-05-13 20:46:29
Summary:     Removed a compiler warning for NCWriteGCRM.cpp (variable 'num_timesteps' set but not used).

Affected #:  1 file

diff --git a/src/io/NCWriteGCRM.cpp b/src/io/NCWriteGCRM.cpp
index b9f412c..6d245b6 100644
--- a/src/io/NCWriteGCRM.cpp
+++ b/src/io/NCWriteGCRM.cpp
@@ -289,7 +289,7 @@ ErrorCode NCWriteGCRM::write_nonset_variables(std::vector<WriteNC::VarData>& vda
       num_lev = 1;
     }
 
-    for (unsigned int t = 0; t < tstep_nums.size(); t++) {
+    for (unsigned int t = 0; t < num_timesteps; t++) {
       // We will write one time step, and count will be one; start will be different
       // Use tag_get_data instead of tag_iterate to copy tag data, as localEntsOwned
       // might not be contiguous.

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