Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • $\begingroup$ Do you say PREcompile because the mrf must be compiled and is otherwise compiled under the hood? (The documentation doesn't mention this.) Your compile idea also works for me. I will see if my actual f[x,y,z] will compile. According to the Compile[ ] documentation, if it does not compile, Mathematica will revert to ordinary Wolfram Language code. Ordinarily this should only affect speed of execution, but in this case I'm afraid it is likely to affect whether the MeshRefinementFunction option works or not. $\endgroup$ Commented Jul 1, 2020 at 18:12
  • $\begingroup$ Thanks. The explicit Compile[ ] works on my real (non-toy) f[x,y,z]. We have achieved what amounts to success: the ability to move on to the next problem. (The next problem is that it takes hours to refine my mesh even though the tolerance is set much higher than I would like.) I am upvoting and accepting this answer. $\endgroup$ Commented Jul 3, 2020 at 13:23