<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">you will have to add the range to a set, and write the set only.<br>
the "range" in write has to be a range of sets, not any entities.<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF700567"><font color="#000000" face="Tahoma" size="2"><b>From:</b> moab-dev-bounces@mcs.anl.gov [moab-dev-bounces@mcs.anl.gov] on behalf of kanaev@ibrae.ac.ru [kanaev@ibrae.ac.ru]<br>
<b>Sent:</b> Monday, May 19, 2014 1:36 PM<br>
<b>To:</b> MOAB dev<br>
<b>Subject:</b> [MOAB-dev] write Range to file<br>
</font><br>
</div>
<div></div>
<div>
<div> Hello MOAB-dev, </div>
<div> I'm trying to write a file containing only quads: </div>
<div> </div>
<div> Core *mb = new Core(); </div>
<div> Range adjs; </div>
<div><br>
</div>
<div> ErrorCode result = MB_SUCCESS; </div>
<div><br>
</div>
<div> result = mb->load_mesh(argv[1]); </div>
<div> PRINT_LAST_ERROR; </div>
<div> </div>
<div> result = mb->get_entities_by_dimension(0, 2, adjs, Interface::UNION); </div>
<div> PRINT_LAST_ERROR; </div>
<div> </div>
<div> adjs.print(); </div>
<div><br>
</div>
<div> result = mb->write_file("quads.h5m",0,0,adjs,0,0); </div>
<div> </div>
<div> </div>
<div> After i compile this and run with any file i got a following message: </div>
<div> Writer with name MOAB for file quads.h5m using extension h5m was unsuccessful
</div>
<div>Using default writer WriteHDF5Parallel for file quads.h5m </div>
<div> </div>
<div>and there's no file quads.h5m written </div>
<div>What is the right way of doing that? </div>
<div> </div>
<div>Thanks </div>
<div>Anton </div>
<div> </div>
</div>
</div>
</div>
</body>
</html>