← Back to team overview

yade-dev team mailing list archive

[Bug 897237] Re: bug in neverErase?!

 

I tried to fix the kn and ks:

	if (uN<0) {
		if (neverErase) {
		  phys->kn = 0.0;
		  phys->ks = 0.0;
		  phys->shearForce = phys->normalForce = Vector3r::Zero();
		}
		else {scene->interactions->requestErase(id1,id2); return;}
	}

Now my script is running to the end, but it is still crashing after the
last step.

ValueError: cannot convert float NaN to integer

I think there are more values, that should be set to zero.
What about kno, kso, kr, ktw and so on?

In the case with Pwavetimestep it is still crashing at the first step:

1682  FATAL yade.ThreadRunner /home/me/YADE/yade/core/ThreadRunner.cpp:31 run: Exception occured:                                                                                                                
Body #0 has velocity==NaN!                                                                                                                                                                                       
1719  ERROR yade.qt4   py/wrapper/yadeWrapper.cpp:368 wait: Simulation error encountered.                                                                                                                        
Traceback (most recent call last):                                                                                                                                                                               
  File "/home/me/YADE/YADE-testing/bin/yade-bzr2970", line 183, in runScript                                                                                                                                     
    execfile(script,globals())                                                                                                                                                                                   
  File "macropore_neverErase.py", line 114, in <module>                                                                                                                                                          
    O.run(1000,True)                                                                                                                                                                                             
RuntimeError: std::exception

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

Title:
  bug in neverErase?!

Status in Yet Another Dynamic Engine:
  New

Bug description:
  If I set neverErase=True Yade crashes with following output:

  O.run(3000,True)                                                                                                                                                                                             
  RuntimeError: std::exception 

  and also:

  Traceback (most recent call last):                                                                                                                                                                               
    File "/home/me/YADE/YADE2970/lib/yade-bzr2970/py/yade/qt/__init__.py", line 192, in refreshEvent                                                                                                       15:01:13
      self.refreshValues()                                                                                                                                                                                 15:01:30
    File "/home/me/YADE/YADE2970/lib/yade-bzr2970/py/yade/qt/__init__.py", line 265, in refreshValues                                                                                                      15:01:34
      s=int(t); ms=int(t*1000)%1000; us=int(t*1000000)%1000; ns=int(t*1000000000)%1000                                                                                                                             
  ValueError: cannot convert float NaN to integer  

  
  You can reproduce the bug with the attached script (similar to the one i submitted with version 2960).
  First try to set Law2_ScGeom_MindlinPhys_Mindlin(neverErase=False), this will work.
  Then set neverErase=True and yade crashes.

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


References