[aspect-devel] The problem of setting up initial composition

Nan Zhang Nan.Zhang at Colorado.EDU
Sun Jan 24 21:23:35 PST 2016


Hi Wolfgang,

Thanks for your fast reply. While, when I changed to sqrt, I still got
error like:
*************************************************************************
ERROR: FunctionParser failed to parse
        'Compositional initial conditions.Function'
with expression
        'if(sqrt(x*x+y*y+z*z)<3731000, 1, 0)'ERROR: FunctionParser failed
to parse
ERROR: FunctionParser failed to parse
ERROR: FunctionParser failed to parse
ERROR: FunctionParser failed to parse
ERROR: FunctionParser failed to parse
        'Compositional initial conditions.Function'
        'Compositional initial conditions.Function'
        'Compositional initial conditions.Function'
        'Compositional initial conditions.Function'
...
*************************************************************************

I attached my input file below.

Nan

On Mon, Jan 25, 2016 at 11:38 AM, Wolfgang Bangerth <bangerth at tamu.edu>
wrote:

> On 01/24/2016 09:19 PM, Nan Zhang wrote:
>
>>
>>      set Function expression = if(std::sqrt(x*x+y*y+z*z)<3731000, 1, 0)
>>
>
> You need to use std::sqrt in C++ code, but for the function parser, it is
> simply 'sqrt'.
>
> Best
>  W.
>
> --
> ------------------------------------------------------------------------
> Wolfgang Bangerth               email:            bangerth at math.tamu.edu
>                                 www: http://www.math.tamu.edu/~bangerth/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/aspect-devel/attachments/20160125/b992b8b0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shell_plate0.prm
Type: application/octet-stream
Size: 2897 bytes
Desc: not available
URL: <http://lists.geodynamics.org/pipermail/aspect-devel/attachments/20160125/b992b8b0/attachment.obj>


More information about the Aspect-devel mailing list