← Back to team overview

fenics team mailing list archive

Re: [Branch ~fenics-core/fenics-doc/main] Rev 122: Try to fix error in mixed Poisson demo reported by testing script

 

On 31 August 2010 12:11, Marie Rognes <meg@xxxxxxxxx> wrote:
> On 31. aug. 2010 10:46, noreply@xxxxxxxxxxxxx wrote:
>
> ------------------------------------------------------------
> revno: 122
> committer: Anders Logg <logg@xxxxxxxxx>
> branch nick: fenics-doc
> timestamp: Tue 2010-08-31 10:43:34 +0200
> message:
>   Try to fix error in mixed Poisson demo reported by testing script
>   but the script still reports that something is wrong. Any ideas?
> modified:
>   source/demos/python/pde/mixed-poisson/mixed-poisson.rst
>   source/styleguides/documentationstyleguides.rst
>
>
> Which error reported by which test script?
>
> Running verify_demo_code_snippets gives me:
>
> meg@localhost ~/local/src/fenics/fenics-doc/test $ python
> verify_demo_code_snippets.py
>
> Testing that all code snippets are valid.
>
>   cpp/pde/cahn-hilliard, OK.
>   cpp/pde/hyperelasticity, OK.
>   cpp/pde/poisson, OK.
>   python/pde/cahn-hilliard
> Error:
>
> code block:
> # Model parameters
> lmbda = 1.0e-02 # surface parameter
> factor = 100 # chemical free energy multiplier
> dt = 5.0e-06 # time step
> theta = 0.5 # time stepping family, e.g. theta=1 -> backward Euler,
> theta=0.5 -> Crank-Nicolson

It's the 'factor' line causing the error, should we delete or keep it?
I can find it anywhere else in the code.

Kristian

> source_files:
> ['demo.py']
>
> in directory:
> /home/meg/local/src/fenics/fenics-doc/source/demos/python/pde/cahn-hilliard
>
> Traceback (most recent call last):
>   File "verify_demo_code_snippets.py", line 132, in <module>
>     verify_blocks(rst_file, source_files, block_source[directory])
>   File "verify_demo_code_snippets.py", line 36, in verify_blocks
>     if path.splitext(sf)[-1] == source_type])
>   File "verify_demo_code_snippets.py", line 109, in block_in_source
>     raise RuntimeError("Illegal code block.")
> RuntimeError: Illegal code block.
>
>
>
> -- Marie
>
> _______________________________________________
> Mailing list: https://launchpad.net/~fenics
> Post to     : fenics@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~fenics
> More help   : https://help.launchpad.net/ListHelp
>
>



References