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

Wolfgang Bangerth bangerth at tamu.edu
Sun Jan 24 19:38:06 PST 2016


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/



More information about the Aspect-devel mailing list