← Back to team overview

dolfin team mailing list archive

Re: [Question #153511]: nonlinear poisson problem adaptive

 

Question #153511 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/153511

Johan Hake posted a new comment:
Please provide a minimal working example that reproduce the error.

Johan

On Tuesday April 19 2011 14:26:28 Chaffra wrote:
> New question #153511 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/153511
> 
> I am trying to solve a complex nonlinear poisson problem adaptively. I can
> solve my equations using the newton_solver but the adaptive solve gives me
> the error below. Any ideas what this means or where  my mistake might be?
> 
> ...
> Generating forms required for error control.
>   Calling FFC just-in-time (JIT) compiler, this may take some time.
> Linear forms must be defined using test functions only: (1, 'k', 2, 2)
> ERROR: An unexpected error occurred while tokenizing input
> The following traceback may be corrupted or invalid
> The error message is: ('EOF in multi-line statement', (4, 0))
> ---------------------------------------------------------------------------
> UFLException                              Traceback (most recent call last)
> 
> ....
> 
> /usr/local/lib/python2.6/dist-packages/ffc/quadrature/quadraturetransformer
> base.pyc in _create_loop_entry(self, key) 717             # TODO: Make sure
> test function indices are always rearranged to 0.
> 
>     718             ffc_assert(key[0] == -2 or key[0] == 0, \
> --> 719                         "Linear forms must be defined using test
> functions only: " + repr(key)) 720             index_j, entry, range_j,
> space_dim_j = key
>     721             loop = ((indices[index_j], 0, range_j),)
> 
> ....
> /usr/local/lib/python2.6/dist-packages/ufl/log.pyc in error(self, *message)
>     122         "Write error message and raise an exception."
>     123         self._log.error(*message)
> --> 124         raise UFLException(self._format_raw(*message))
>     125
>     126     def begin(self, *message):
> 
> UFLException: Linear forms must be defined using test functions only: (1,
> 'k', 2, 2) WARNING: Failure executing file: <poisson.py>

-- 
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.