yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #07835
[Branch ~yade-dev/yade/trunk] Rev 2905: - Fix segfault due to uninitialised normal to walls
------------------------------------------------------------
revno: 2905
committer: Emanuele Catalano <catalano@xxxxxxxxxxx
branch nick: yade
timestamp: Tue 2011-08-23 15:22:46 +0200
message:
- Fix segfault due to uninitialised normal to walls
modified:
lib/triangulation/FlowBoundingSphere.hpp
pkg/dem/FlowEngine.hpp
--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'lib/triangulation/FlowBoundingSphere.hpp'
--- lib/triangulation/FlowBoundingSphere.hpp 2011-08-23 10:24:56 +0000
+++ lib/triangulation/FlowBoundingSphere.hpp 2011-08-23 13:22:46 +0000
@@ -94,7 +94,6 @@
double Permeameter ( double P_Inf, double P_Sup, double Section, double DeltaY, const char *file );
double Sample_Permeability( double& x_Min,double& x_Max ,double& y_Min,double& y_Max,double& z_Min,double& z_Max, string key);
double Compute_HydraulicRadius (Cell_handle cell, int j );
-// double PressureProfile (const char *filename, Real& time, int& intervals );
double dotProduct ( Vecteur x, Vecteur y );
double Compute_EffectiveRadius(Cell_handle cell, int j);
=== modified file 'pkg/dem/FlowEngine.hpp'
--- pkg/dem/FlowEngine.hpp 2011-08-23 10:24:56 +0000
+++ pkg/dem/FlowEngine.hpp 2011-08-23 13:22:46 +0000
@@ -132,6 +132,7 @@
((bool, viscousShear, false,,"Compute viscous shear terms as developped by Donia Marzougui"))
,,
timingDeltas=shared_ptr<TimingDeltas>(new TimingDeltas);
+ for (int i=0; i<6; ++i){normal[i]=Vector3r::Zero();}
normal[wall_bottom].y()=1;
normal[wall_top].y()=-1;
normal[wall_left].x()=1;