fenics team mailing list archive
-
fenics team
-
Mailing list archive
-
Message #01150
Re: [Branch ~fenics-core/fenics-doc/main] Rev 122: Try to fix error in mixed Poisson demo reported by testing script
-
To:
Anders Logg <logg@xxxxxxxxx>
-
From:
Marie Rognes <meg@xxxxxxxxx>
-
Date:
Tue, 31 Aug 2010 12:21:12 +0200
-
Cc:
FEniCS Team <fenics@xxxxxxxxxxxxxxxxxxx>
-
In-reply-to:
<20100831101740.GZ32356@olorin>
-
User-agent:
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100516 Thunderbird/3.0.4
On 31. aug. 2010 12:17, Anders Logg wrote:
> On Tue, Aug 31, 2010 at 12:11:17PM +0200, Marie Rognes 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
>>
>> 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.
>>
> Strange, I got a different error.
Is that "got" or "get"?
--
Marie
> You had used 'product space' in one
> place and 'combined space' in the other. I tried to change it but the
> error message was still there.
>
>
Follow ups
References