Anup,

I am trying to solve a mechanics problem in a 2D parallelogram (reference
body) in a 3D space. In doing so I have started with
generating grids and just want to plot it in eps file. I am expecting a
parallelogram at z=0 surface in a 3D space.  However, when
 I execute the command write_eps I get the following error (in blue). The
piece of the code for triangulation and save eps is in
the below. I shall be thankful if someone can suggest what is going wrong.

Nothing is in fact going wrong:


An error occurred in line <3439> of file
</opt/deal.II/tmp/unpack/deal.II-v8.4.1/source/grid/grid_out.cc> in function
    void dealii::internal::{anonymous}::write_eps(const
dealii::Triangulation<2, 3>&, std::ostream&, const dealii::Mapping<2, 3>*,
const dealii::GridOutFlags::Eps<2>&, const dealii::GridOutFlags::Eps<3>&)
The violated condition was:
    false
The name and call sequence of the exception was:
    ExcNotImplemented()

As the exception suggests, the function is simply not implemented for the case of a 2d mesh in 3d space. The current developer version would have also printed the following message:

                  "You are trying to use functionality in deal.II that is "
                  "currently not implemented. In many cases, this indicates "
                  "that there simply didn't appear much of a need for it, or "
                  "that the author of the original code did not have the "
                  "time to implement a particular case. If you hit this "
                  "exception, it is therefore worth the time to look into "
                  "the code to find out whether you may be able to "
                  "implement the missing functionality. If you do, please "
                  "consider providing a patch to the deal.II development "
                  "sources (see the deal.II website on how to contribute).");


I don't think it would actually be very difficult to implement it, and the error message also contains the location where you would have to look to add this implementation. An easier approach would probably to output the mesh in any of the other supported file formats.

Best
 Wolfgang


--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 [email protected]
                           www: http://www.math.colostate.edu/~bangerth/

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to