On May 2, 2011, at 9:03 AM, Julien Derr wrote:

> Here is the script, if you have time to take a look, 

I ran it for over 130 steps and it didn't fail. It slows my machine down too 
much to let it run longer. 

Does it really need to be such a big problem? Does it fail in a 100x100 mesh? 

I realize it seems random, but how many steps does it typically take before you 
get the recursion error?

I don't know that it matters, but what version of FiPy are you running? `python 
-c "import fipy; print fipy.__version__"`

> 
> note that I don't have this error if I remove the noise  line 106 in the 
> deposition rate.

That's interesting, although I don't know why it would matter.

> 
> #depositionrate
> #no noise:
> #depositionRateVariable =  (abs(v0*c.getGrad().dot(phi.getGrad())) + 
> v0*c.getGrad().dot(phi.getGrad())  ) /2.0   + 1E-18
> 
> #with noise
> depositionRateVariable = abs(GaussianNoiseVariable(mesh=mesh, mean=1., 
> variance=0.02))*( (abs(v0*c.getGrad().dot(phi.getGrad())) + 
> v0*c.getGrad().dot(phi.getGrad())  ) /2.0  ) + 1E-18

Is it accurate that depositionRateVariable is not used in 
CUSTOMbuildMetalIonDiffusionEquation, but is only used to set the value of 
extensionVelocityVariable? _CUSTOMMetalIonSourceVariable doesn't seem to use it.





Reply via email to