On Fri, Feb 12, 2010 at 10:43 AM, John Peterson
<[email protected]> wrote:
> On Thu, Feb 11, 2010 at 5:55 PM, Karen Lee <[email protected]> wrote:
>> Dear libmesh users,
>>
>> I have a few questions:
>>
>> 1) Having some problem reading tetgen meshes. Here's my sampleNode.node
>> file:
>>
>> 4 3 1 0
>> 1 1.0 1.0 1.0 1
>> 2 2.0 1.0 1.0 1
>> 3 1.0 1.0 2.0 1
>> 4 1.0 2.0 1.0 1
>>
>> and sampleNode.ele file:
>> 1 4 0 0
>> 1 1 2 3 4

This is your problem.  Our element file reader is only expecting three
values in the header: the number of elements, the number of nodes, and
the number of attributes.  After I removed the second zero one the
first line, it all ran fine.

If Tetgen's file format has changed, we should update our reader to be
aware of this fact.  In any event we should make our reader a little
more error tolerant: either die or print an error/warning message if
unexpected data is read from the file, or just be absolutely sure we
skip any entries we aren't suspecting and go to the next line.

-- 
John

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to