dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #06982
Re: further demo problems
Ilmar Wilbers skrev den 31/03-2008 følgende:
> Ilmar Wilbers wrote:
> > demo/mesh/meshfunction/python
> > demo/mesh/partitioning/python
> > demo/mesh/refinement/python
> > demo/pde/dg/python
> > demo/pde/mixed-poisson/python
> > The plot is only displayed a few milliseconds (Viper problem).
> >
> >
> It would be better to replace
>
> plot(sigma)
> plot(u)
> interactive()
>
> with
>
> plot(sigma, interactive=True)
> plot(u, interactive=True)
You can move the upper plot and interact with both. Hemce, I will not change
behaviour.
Ola
> in demo/pde/mixed-poisson/python, else the two plots will be on top of
> each other and both will be closed upon pressing 'q'. The rest it fine.
> > demo/mesh/subdomains/cpp
> > demo/mesh/subdomains/python
> > Maybe give some output from running the program? Like: 'generated file
> > subdomains.xml'?
> >
> >
> No changes.
> > demo/ode
> > Demos are not compiled, do not follow the directory structure of the
> > other demos, and don't work.
> >
> >
> No changes.
> > demo/pde/convection-diffusion/python
> > ...
> > Applying boundary conditions to linear system.
> > Traceback (most recent call last):
> > File "demo.py", line 65, in <module>
> > solve(A, u1.vector(), b)
> > File "/usr/local/lib/python2.5/site-packages/dolfin/dolfin.py", line
> > 3683, in solve
> > return _dolfin.solve(*args)
> > TypeError: in method 'solve', argument 2 of type 'dolfin::Vector &'
> >
> >
> Seems fine. But should add interactive=True to plot.
> > demo/pde/elasticity/cpp
> > The plot looks completely weird! Python version gives the correct plot.
> >
> >
> Still broken.
> > demo/pde/mixed-poisson/python
> > demo/pde/stokes/stabilized/python
> > ...
> > Ordering mesh entities...
> > swig/python detected a memory leak of type 'SubFunction *', no
> > destructor found.
> >
> >
> Still there, but that is OK, perhaps?
> > demo/pde/periodic/python
> > ...
> > Applying boundary conditions to linear system.
> > Traceback (most recent call last):
> > File "demo.py", line 68, in <module>
> > u = pde.solve()
> > File "/usr/local/lib/python2.5/site-packages/dolfin/assemble.py",
> > line 193, in solve
> > cpp_DirichletBC.apply(bc, A, b, self.dof_maps.sub(1), compiled_form)
> > TypeError: unbound method apply() must be called with cpp_DirichletBC
> > instance as first argument (got PeriodicBC instance instead)
> >
> >
> No changes.
> > demo/pde/stokes/stabilized/python
> > demo/pde/stokes/taylor-hood/python
> > Only the second of two plot is displayed.
> >
> >
> The same goes for these two,
>
> plot(U)
> plot(P)
> interactive()
>
> should be replaced by
>
> # Plot solution
> plot(U, interactive=True)
> plot(P, interactive=True)
> > demo/quadrature/python
> > ilmarw@*****:python$ python demo.py lobatto 10
> > Traceback (most recent call last):
> > File "demo.py", line 43, in <module>
> > sys.exit(main(sys.argv[1:]))
> > File "demo.py", line 33, in main
> > q = LobattoQuadrature(n);
> > NameError: global name 'LobattoQuadrature' is not defined
> >
> >
> Fixed...
> > In addition, there are a few 'fix me' demos.
> >
> > ilmar
> > _______________________________________________
> > DOLFIN-dev mailing list
> > DOLFIN-dev@xxxxxxxxxx
> > http://www.fenics.org/mailman/listinfo/dolfin-dev
> >
>
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
References