Re: [deal.II] How can I display a 1d triangulation?

2018-02-14 Thread Yotam Avital
OK, thanks. 


On Tuesday, February 13, 2018 at 4:14:29 PM UTC+2, Wolfgang Bangerth wrote:
>
> On 02/13/2018 03:05 AM, Yotam Avital wrote: 
> > 
> > I was hoping this is to due with GridOut trying to use its 2d method on 
> my 1d 
> > triangulation, so I after going through the code, I added the following 
> > 
> > | 
> > GridOutFlags::Eps<1>epsflag; 
> > grid_out.set_flags(epsflag); 
> > | 
> > 
> > right before I write the grid to the eps file (line 59) 
> > 
> > however I get the same error message. is there a way to print the 1d 
> grid? 
>
> The problem is just that the output writers for EPS format is not 
> implemented 
> in 1d. But you can use the gnuplot, vtk, vtu, ... writers instead, and 
> they 
> should work. 
>
> Best 
>   W. 
>
> -- 
>  
> Wolfgang Bangerth  email: bang...@colostate.edu 
>  
> 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 dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [deal.II] How can I display a 1d triangulation?

2018-02-13 Thread Wolfgang Bangerth

On 02/13/2018 03:05 AM, Yotam Avital wrote:


I was hoping this is to due with GridOut trying to use its 2d method on my 1d 
triangulation, so I after going through the code, I added the following


|
GridOutFlags::Eps<1>epsflag;
grid_out.set_flags(epsflag);
|

right before I write the grid to the eps file (line 59)

however I get the same error message. is there a way to print the 1d grid?


The problem is just that the output writers for EPS format is not implemented 
in 1d. But you can use the gnuplot, vtk, vtu, ... writers instead, and they 
should work.


Best
 W.

--

Wolfgang Bangerth  email: bange...@colostate.edu
   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 dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[deal.II] How can I display a 1d triangulation?

2018-02-13 Thread Yotam Avital
This is a seemingly simple problem.

I want to develop a code to model a 1d system of equations. I decided to go 
through the tutorial and add/change what I need in my model. I use python 
regularly, but my c skills are rusty (to say the least). I changed the 
stap-1 code file from  (line 39)

Triangulation<2> triangulation;

to 

Triangulation<1> triangulation;

but i get an error that 

An error occurred in line <3526> of file  in function
void dealii::internal::{anonymous}::write_eps(const dealii::
Triangulation<1, 1>&, std::ostream&, const dealii::Mapping<1>*, const dealii
::GridOutFlags::Eps<2>&, const dealii::GridOutFlags::Eps<3>&)
The violated condition was: 
false
Additional information: 
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 was hoping this is to due with GridOut trying to use its 2d method on my 
1d triangulation, so I after going through the code, I added the following 

GridOutFlags::Eps<1> epsflag;
grid_out.set_flags(epsflag);
  
right before I write the grid to the eps file (line 59)

however I get the same error message. is there a way to print the 1d grid? 

Thank you. 

-- 
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 dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.