Thanks.  The write_ascii() predates the 1D support in libMesh, and was never
updated.

I'll fix that.

-Ben


On 10/30/07 11:18 AM, "Ingo Schmidt" <[EMAIL PROTECTED]> wrote:

> Dear libmesh community,
> 
> I've detected a bug at the TecplotIO::write_ascii() function. I'm
> messing around with "1D" boundary meshes. But I had problems to open
> such *.plt or *.dat files generated from such meshes (Tecplot aborts the
> procedure). So I checked the source code and found that irreproducible
> if condition
> 
> 00187     if (mesh.mesh_dimension() != 1)
> 00188       {
> 00189         out << "Zone f=fepoint, n=" << mesh.n_nodes() << ", e=" <<
> mesh.n_active_sub_elem();
> 00190         
> 00191         if (mesh.mesh_dimension() == 2)
> 00192           out << ", et=quadrilateral\n";
> 00193         else if (mesh.mesh_dimension() == 3)
> 00194           out << ", et=brick\n";
> 00195       }
> 
> for my case it is enough to change it to
> 
>   out << "Zone f=fepoint, n=" << mesh.n_nodes() << ", e=" <<
> mesh.n_active_sub_elem();
>   if (mesh.mesh_dimension() == 1)
> out << ", et=lineseg\n";
>   else if (mesh.mesh_dimension() == 2)
>        out << ", et=quadrilateral\n";
>   else if (mesh.mesh_dimension() == 3)
>        out << ", et=brick\n";
> 
> 
> Additionally it could be more comfortable to add the color option (e.g.
> c=black) to predefine the mesh color.
> 
> Best regards
> 
> Ingo


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to