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

Nan Zhang Nan.Zhang at Colorado.EDU
Sun Jan 24 19:19:27 PST 2016


Hi all,

I tried to set up a shell-layer composition on the core mantle boundary,
and used:
***************************************
subsection Compositional initial conditions
  set Model name = function

  subsection Function
    set Variable names      = x,y,z
    set Function expression = if(std::sqrt(x*x+y*y+z*z)<3731000, 1, 0)
  end
end
***************************************

ASPECT returns error like:
***************************************
ERROR: FunctionParser failed to parse
ERROR: FunctionParser failed to parse
        'Compositional initial conditions.Function'
        'Compositional initial conditions.Function'
with expression
with expression
        '       'ERROR: FunctionParser failed to parse
if(std::sqrt(x*x+y*y+z*z)<3731000, 1, 0) if(std::sqrt(x*x+y*y+z*z)<3731000,
1, 0)        'Compositional initial conditions.Function'
'with expression
'       'ERROR: FunctionParser failed to parse
if(std::sqrt(x*x+y*y+z*z)<3731000, 1, 0)'ERROR: FunctionParser failed to
parse
***************************************

I wonder how to set the function of composition initial condition
appropriately?

Bests,
Nan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/aspect-devel/attachments/20160125/6a917970/attachment.html>


More information about the Aspect-devel mailing list