Git Product home page Git Product logo

Comments (7)

bknight1 avatar bknight1 commented on July 30, 2024 1

Hey @jlikermanUPC, I'll move this to the UW2 repo and take a look! Thanks for reporting the issue.

from underworld2.

bknight1 avatar bknight1 commented on July 30, 2024

Okay I've run a few tests, I'm not sure how your script is set up to restart the model but the following works:

  1. Run the model setup script again, all the way to the original 'Model.run_for' line.
  2. replace the Model.run_for with the restart parameters (e.g.) 'Model.run_for(1. * u.megayears, checkpoint_interval=0.007*u.megayears, restartStep=-1, restartDir=Model.outputDir )'
    This will load the last timestep and start the model again.

I've tested this on UW v2.13.1b with the following script. If your script still isn't working it would be easier to troubleshoot if I had access to it.

Cheers

Restart_test.ipynb.txt

from underworld2.

jlikermanUPC avatar jlikermanUPC commented on July 30, 2024

Hi Ben!,

Indeed, it is working. And if I run my model a few steps, the restart also works. Could it be that if the passive tracers come out of the model, that's where the problem arises? I'll run some tests and keep you posted. If there are still problems, I'll share the script with you.

Thanks!

from underworld2.

bknight1 avatar bknight1 commented on July 30, 2024

All good, let me know how it goes @jlikermanUPC

I just tried the test script again with a lower and larger number of particles than that created in the model so I don't think it's that. From the error message it is an error with a mapping function, which is usually a dictionary that maps the material to the material parameters (viscosity, density etc). I'm not sure why the passive tracers would be causing this to be honest. It usually occurs when there is a material index that isn't mapped to a density or viscosity value/function. Was your reload call (Model.run_for) before you'd set up the viscosity mapping to the materials?

from underworld2.

bknight1 avatar bknight1 commented on July 30, 2024

Hey @jlikermanUPC, how did you get on?

from underworld2.

jlikermanUPC avatar jlikermanUPC commented on July 30, 2024

Hi @bknight1, so far I haven't had errors again.

I'm going to close the issue for now.

Thanks!

from underworld2.

bknight1 avatar bknight1 commented on July 30, 2024

All good, happy to help!

from underworld2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.