[MOAB-dev] commit/MOAB: danwu: For structured grids like CAM_EUL or CAM_FV, we should create COORDS tag only once after the mesh is created.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue May 6 16:36:27 CDT 2014


1 new commit in MOAB:

https://bitbucket.org/fathomteam/moab/commits/6cfd0fad235d/
Changeset:   6cfd0fad235d
Branch:      master
User:        danwu
Date:        2014-05-06 23:36:06
Summary:     For structured grids like CAM_EUL or CAM_FV, we should create COORDS tag only once after the mesh is created.

Affected #:  1 file

diff --git a/src/io/NCHelper.cpp b/src/io/NCHelper.cpp
index 0e970d9..5848623 100644
--- a/src/io/NCHelper.cpp
+++ b/src/io/NCHelper.cpp
@@ -1026,6 +1026,10 @@ ErrorCode ScdNCHelper::create_mesh(Range& faces)
   Range edges;
   mbImpl->get_adjacencies(faces, 1, true, edges, Interface::UNION);
 
+  // Create COORDS tag for quads
+  rval = create_quad_coordinate_tag();
+  ERRORR(rval, "Trouble creating coordinate tags to entities quads");
+
   return MB_SUCCESS;
 }
 
@@ -1037,10 +1041,6 @@ ErrorCode ScdNCHelper::read_variables(std::vector<std::string>& var_names, std::
   ErrorCode rval = read_variable_setup(var_names, tstep_nums, vdatas, vsetdatas);
   ERRORR(rval, "Trouble setting up read variable.");
 
-  // Create COORDS tag for quads
-  rval = create_quad_coordinate_tag();
-  ERRORR(rval, "Trouble creating coordinate tags to entities quads");
-
   if (!vsetdatas.empty()) {
     rval = read_variable_to_set(vsetdatas, tstep_nums);
     ERRORR(rval, "Trouble read variables to set.");

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