1d plot
Dear all,
I wrote a script for a 1-dimensional Dirichlet problem for Helmholtz equation but, when I try to plot the solution simply with plot(u), I get the following error message
Solving linear variational problem.
Object cannot be plotted directly, projecting to piecewise linears.
Traceback (most recent call last):
File "Helmholtz1D_
plot(ur)
File "/Applications/
return viper_dolfin.
File "/Users/
File "/Users/
File "/Users/
File "/Users/
File "/Users/
File "/Users/
File "/Users/
TypeError: function takes exactly 2 arguments (1 given)
The same script rewritten for a 2-dimensional case works perfectly fine. What should I add to the plot command?
Best wishes
Jacopo
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Johan Hake
- Solved:
- Last query:
- Last reply: