3
$\begingroup$

I have a very large interpolating function and want access the function at one point in time.

I am running out of RAM running NDSolve. I am considering exporting the last time instance of NDSolve, so that I can continue the running it, using those final conditions as the initial conditions of the next run.

I just want to create an interpolating function for the final time, T.

How would I go about this?

Here is part of the code that performs this operation:

(* Numerically Solve the PDEs *)

ndsolve = NDSolve[ pdes3, {A, B, C},
    {x, -L/2, L/2}, {t, 0, T}]

I want to continue it with the following in the next run:

ndsolve = NDSolve[ pdes3, {A, B, C},
    {x, -L/2, L/2}, {t, T, 2T}]
$\endgroup$
  • 1
    $\begingroup$ I believe that this answer may help you. There are two other answers that both use that NDSolve can be made to only return the solution for given points. From my experiments with MaxMemoryUsed, however, that does not seem to reduce the memory usage. $\endgroup$ – C. E. Aug 28 at 20:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.