<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><!--StartFragment--><p class="MsoNormal" style="margin-left:36.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1;
tab-stops:list 36.0pt"><br></p><div>Hi all,</div><div><br></div><div>It seems that dense tag memory is allocated when the tag is set for at least one entity of a given type.</div><div><br></div><div>This is documented in the MOAB User's Guide. I missed it. </div><div>"Storage for a given dense tag is not
allocated until a tag value is set on an entity; memory for a given dense tag
is allocated for all entities in a given sequence at the same time."</div><div><br></div><div>I would have expected the dense tag to be associated with the default value to all the entities in the mesh.</div><div><br></div><div>Thanks</div><div>Lorenzo</div><p class="MsoNormal" style="margin-left:36.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1;
tab-stops:list 36.0pt"><o:p></o:p></p>
<!--EndFragment-->
</div><div><br></div><br><div><div>On May 12, 2011, at 4:43 PM, Tim Tautges wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Probably when the tag was created, it was not created with a default value. This could be the case if the vtk reader created it upon finding it in the file.<br><br>One way around this would be to create a tag of the proper name/data type/storage type/default value before reading the vtk file; then the vtk reader will use that tag, and your quads will get the default value too.<br><br>The tris being set has to do with how storage for tags is allocated (based on sequences, the fundamental unit of storage in MOAB).<br><br>- tim<br><br>On 05/12/2011 09:31 AM, Lorenzo Botti wrote:<br><blockquote type="cite">I'm noticing a strange behavior of dense tags.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I'm reading a hybrid tets+prisms+tris (tris represent the boundary mesh) vtk mesh where I have an id (type int) associated to each cell in order to define boundary conditions.<br></blockquote><blockquote type="cite">The ids are correctly represented in MOAB as a dense tag over the mesh elements.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">However If I build 2D internal faces (tris and quads) with get_adjacencies only tris obtain the dense tag (set by default to 0?) while quads are tag free.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Does it work this way because no tags have been associated to quads?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks<br></blockquote><blockquote type="cite">Lorenzo<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br>-- <br>================================================================<br>"You will keep in perfect peace him whose mind is<br> steadfast, because he trusts in you." Isaiah 26:3<br><br> Tim Tautges Argonne National Laboratory<br> (<a href="mailto:tautges@mcs.anl.gov">tautges@mcs.anl.gov</a>) (telecommuting from UW-Madison)<br> phone: (608) 263-8485 1500 Engineering Dr.<br> fax: (608) 263-4499 Madison, WI 53706<br><br></div></blockquote></div><br></body></html>