[MOAB-dev] write Range to file

Grindeanu, Iulian R. iulian at mcs.anl.gov
Mon May 19 14:55:54 CDT 2014


you will have to add the range to a set, and write the set only.
the "range" in write has to be a range of sets, not any entities.
________________________________
From: moab-dev-bounces at mcs.anl.gov [moab-dev-bounces at mcs.anl.gov] on behalf of kanaev at ibrae.ac.ru [kanaev at ibrae.ac.ru]
Sent: Monday, May 19, 2014 1:36 PM
To: MOAB dev
Subject: [MOAB-dev] write Range to file

 Hello MOAB-dev,
 I'm trying to write a file containing only quads:

  Core *mb = new Core();
  Range adjs;

  ErrorCode result = MB_SUCCESS;

  result = mb->load_mesh(argv[1]);
  PRINT_LAST_ERROR;

  result = mb->get_entities_by_dimension(0, 2, adjs, Interface::UNION);
  PRINT_LAST_ERROR;

  adjs.print();

 result = mb->write_file("quads.h5m",0,0,adjs,0,0);


 After i compile this and run with any file i got a following message:
 Writer with name MOAB for file quads.h5m using extension h5m was unsuccessful
Using default writer WriteHDF5Parallel for file quads.h5m

and there's no file quads.h5m written
What is the right way of doing that?

Thanks
Anton

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/moab-dev/attachments/20140519/e5f7f9df/attachment.html>


More information about the moab-dev mailing list