[aspect-devel] available math functions

Jonathan Perry-Houts jperryh2 at uoregon.edu
Thu Dec 29 15:14:38 PST 2016


I implemented erfc in deal.ii's FunctionParser a while ago (so you 
should have it). Adding erf would be just as easy if you need it. Here's 
my pull request to deal.ii for reference:
https://github.com/dealii/dealii/pull/1769

-JPH

On 12/29/2016 11:50 AM, FELIPE ORELLANA ROVIROSA wrote:
>
>  Hi all,
>
>   Happy holidays !
>
>  I just tried to implement a simple model on Aspect, which contained the
> error function
>
>    I invoked it as erf(..)
>
>  and I got errors. Then I pasted the corresponding code line on matlab
> and it worked..so it is something with Aspect that I am not doing right.
>
>    Is the error function available on Aspect? what math library is
> Aspect bundled with?
>
> Felipe
> ps: This is the Aspect error I got:
>
>    ERROR: FunctionParser failed to parse
>     'Initial conditions.Function'
> with expression
>     '300 + 1500*erf(0.5*z/((36.0658*1e7)^0.5));'ERROR: FunctionParser
> failed to parse
> ERROR: FunctionParser failed to parse
>
> ...
> ..
>
>
>
>
> _______________________________________________
> Aspect-devel mailing list
> Aspect-devel at geodynamics.org
> http://lists.geodynamics.org/cgi-bin/mailman/listinfo/aspect-devel
>


More information about the Aspect-devel mailing list