[MOAB-dev] commit/MOAB: danwu: In NCHelper::create_conventional_tags(), when creating tag __<dim_name>_LOC_MINMAX and tag __<dim_name>_LOC_VALS for time dimension, the name could also be Time (e.g. for MPAS) or t instead of time.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Nov 20 16:56:05 CST 2013


1 new commit in MOAB:

https://bitbucket.org/fathomteam/moab/commits/04dad6d17de9/
Changeset:   04dad6d17de9
Branch:      master
User:        danwu
Date:        2013-11-20 23:55:55
Summary:     In NCHelper::create_conventional_tags(), when creating tag __<dim_name>_LOC_MINMAX and tag __<dim_name>_LOC_VALS for time dimension, the name could also be Time (e.g. for MPAS) or t instead of time.

Affected #:  1 file

diff --git a/src/io/NCHelper.cpp b/src/io/NCHelper.cpp
index bc41ab2..62e7383 100644
--- a/src/io/NCHelper.cpp
+++ b/src/io/NCHelper.cpp
@@ -139,7 +139,7 @@ ErrorCode NCHelper::create_conventional_tags(const std::vector<int>& tstep_nums)
 
   // __<dim_name>_LOC_MINMAX (for time)
   for (unsigned int i = 0; i != dimNamesSz; i++) {
-    if (dimNames[i] == "time") {
+    if (dimNames[i] == "time" || dimNames[i] == "Time" || dimNames[i] == "t") {
       std::stringstream ss_tag_name;
       ss_tag_name << "__" << dimNames[i] << "_LOC_MINMAX";
       tag_name = ss_tag_name.str();
@@ -158,7 +158,7 @@ ErrorCode NCHelper::create_conventional_tags(const std::vector<int>& tstep_nums)
 
   // __<dim_name>_LOC_VALS (for time)
   for (unsigned int i = 0; i != dimNamesSz; i++) {
-    if (dimNames[i] == "time") {
+    if (dimNames[i] == "time" || dimNames[i] == "Time" || dimNames[i] == "t") {
       std::vector<int> val;
       if (!tstep_nums.empty())
         val = tstep_nums;

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