Thanks, problem solved.

** Changed in: yade
       Status: New => Fix Committed

-- 
You received this bug notification because you are a member of Yade
developers, which is the registrant for Yade.
https://bugs.launchpad.net/bugs/903111

Title:
  O.load() gives error message

Status in Yet Another Dynamic Engine:
  Fix Committed

Bug description:
  After saving my model and load it, this error occurs:

    File "/home/me/YADE/YADE2981/bin/yade-bzr2981", line 183, in runScript
      execfile(script,globals())
    File "3-settling.py", line 5, in <module>
      O.load(save_file_name2)
  RuntimeError: Scene::postLoad: Internal inconsistency, shared materials not 
preserved when loaded; please report bug.

  In Scene.cpp lines 62 to 66 are responsible for this meassage:

        // this might be removed at some point, since it is checked by 
regression tests now
        FOREACH(const shared_ptr<Body>& b, *bodies){
                if(!b || !b->material || b->material->id<0) continue; // not a 
shared material
                if(b->material!=materials[b->material->id]) throw 
std::logic_error("Scene::postLoad: Internal inconsistency, shared materials not 
preserved when loaded; please report bug.");
        }

  Can we safely remove these lines (see comment) to avoid the error
  message?

To manage notifications about this bug go to:
https://bugs.launchpad.net/yade/+bug/903111/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to