[Yade-dev] : Compilation on K/Ubuntu 18.04

2018-05-14 Thread Klaus Thoeni
Hi guys,

I remember a discussion with a CGAL problem to get yade ready for 18.04
LTS. From the discussion it looks that everything is solved. However, I
just did a fresh install of Kubuntu 18.04 and tried to compile the code
(latest trunk version).

cmake went fine but compilation didn't work as expected. I got an error
related to some CGAL commands used in DFNFlow.cpp:

/home/yade/YADE-git/trunk/pkg/pfv/DFNFlow.cpp: In member function ‘void
DFNFlowEngine::interpolateCrack(TemplateFlowEngine_DFNFlowEngineT >, DFNBoundingSphere>::Tesselation&,
TemplateFlowEngine_DFNFlowEngineT >,
DFNBoundingSphere>::Tesselation&)’:
/home/yade/YADE-git/trunk/pkg/pfv/DFNFlow.cpp:216:136: error: no match for
‘operator-’ (operand types are
‘CGAL::Regular_triangulation_vertex_base_3,
CGAL::Boolean_tag, CGAL::Boolean_tag >,
CGAL::Alpha_shape_cell_base_3,
CGAL::Boolean_tag, CGAL::Boolean_tag >, CGAL::Sequential_tag>
> >::Point {aka CGAL::Weighted_point_3}’ and ‘const
CGAL::Origin’)
   if (newCell->info().fictious()==0) for (int k=0;k<4;k++) center = center
+ 0.25*(Tes.vertex(newCell->vertex(k)->info().id())->point()-CGAL::ORIGIN);

^


/home/yade/YADE-git/trunk/pkg/pfv/DFNFlow.cpp:218:71: error: no matching
function for call to ‘CGAL::Regular_triangulation_3,
CGAL::Boolean_tag, CGAL::Boolean_tag >,
CGAL::Alpha_shape_cell_base_3,
CGAL::Boolean_tag, CGAL::Boolean_tag >,
CGAL::Sequential_tag>, CGAL::Default>::locate(Point)’
   CellHandle oldCell = Tri.locate(Point(center[0],center[1],center[2]));
   ^
In file included from /usr/include/CGAL/Regular_triangulation_3.h:45:0,
 from
/home/yade/YADE-git/trunk/lib/triangulation/RegularTriangulation.h:13,
 from
/home/yade/YADE-git/trunk/lib/triangulation/Tesselation.h:9,
 from
/home/yade/YADE-git/trunk/pkg/dem/TesselationWrapper.hpp:15,
 from
/home/yade/YADE-git/build/pkg/pfv/FlowEngine_DFNFlowEngineT.hpp:38,
 from /home/yade/YADE-git/trunk/pkg/pfv/DFNFlow.cpp:20:
/usr/include/CGAL/Triangulation_3.h:1012:3: note: candidate:
CGAL::Triangulation_3::Cell_handle
CGAL::Triangulation_3::locate(const Point&,
CGAL::Triangulation_3::Vertex_handle, bool*)
const [with GT = CGAL::Epick; Tds_ =
CGAL::Triangulation_data_structure_3,
CGAL::Boolean_tag, CGAL::Boolean_tag >,
CGAL::Alpha_shape_cell_base_3,
CGAL::Boolean_tag, CGAL::Boolean_tag >,
CGAL::Sequential_tag>; Lock_data_structure_ = CGAL::Default;
CGAL::Triangulation_3::Cell_handle =
CGAL::internal::CC_iterator,
CGAL::Boolean_tag, CGAL::Boolean_tag >,
CGAL::Alpha_shape_cell_base_3,
CGAL::Boolean_tag, CGAL::Boolean_tag >, CGAL::Sequential_tag>
> >, CGAL::Hidden_points_memory_policy,
std::__cxx11::list > > >,
CGAL::Boolean_tag, CGAL::Boolean_tag >, CGAL::Default,
CGAL::Default, CGAL::Default>, false>; CGAL::Triangulation_3::Point = CGAL::Weighted_point_3;
CGAL::Triangulation_3

[Yade-dev] [Bug 1767601] Re: segmentation fault after erasing some particles

2018-05-14 Thread Jérôme Duriez
Hi,

I launched this script with Yade 2018-04-19.git-79b2edb.

I got the repeated output of "porosity X" with the porosity X-value soon
getting negativ, and then decreasing againt until ~ -1e100, then I
stopped manually the simulation.

I did not get any segmentation fault. Could you clarify the situation,
please ?

** Changed in: yade
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.
https://bugs.launchpad.net/bugs/1767601

Title:
  segmentation fault after erasing some particles

Status in Yade:
  Incomplete

Bug description:
  Dear all,
  I built a simple script according to script-session1.py (B.Chareyre). I tried 
to erase some particles, it was done without any problem. but after finishing 
the simulation, as soon as  I tried to run more iterations, it showed 
segmentation fault and quit  yade.
  The length of O.bodies is similar to The one before erasing.(Does not change 
after erasing)
  you can see my question in:
  https://answers.launchpad.net/yade/+question/668274
  I'm using Ubuntu 14.04 LTS and yadedaily version: 2018.02b-85-f861843~trusty

  And here is my script:

  
  # -*- coding: utf-8 -*-
  from yade import pack, plot
  young=1e8
  compFricDegree = 5
  finalFricDegree = 35
  mn,mx=Vector3(0,0,0),Vector3(.005,.005,.005)

  
O.materials.append(FrictMat(young=young,poisson=0.5,frictionAngle=radians(compFricDegree),density=2600,label='spheres'))
  
O.materials.append(FrictMat(young=young,poisson=0.5,frictionAngle=0,density=0,label='walls'))
  walls=aabbWalls([mn,mx],thickness=0,material='walls')
  wallIds=O.bodies.append(walls)
  psdSizes=[.1,.6,.8,.0002,.0004,.0005,.0008,.001]
  psdCumm=[0,.0175,.025,.4,.5,.7,.85,1]
  sp=pack.SpherePack()
  
sp.makeCloud(mn,mx,psdSizes=psdSizes,psdCumm=psdCumm,distributeMass=True,num=500)
  sp.toSimulation(material='spheres')
  triax=TriaxialStressController(
maxMultiplier=1.001,
finalMaxMultiplier=1.0001,
thickness = 0,
stressMask = 7,
internalCompaction=True,
  )

  newton=NewtonIntegrator(damping=0.2)
  O.engines=[
ForceResetter(),
InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Box_Aabb()]),
InteractionLoop(
[Ig2_Sphere_Sphere_ScGeom(),Ig2_Box_Sphere_ScGeom()],
[Ip2_FrictMat_FrictMat_FrictPhys()],
[Law2_ScGeom_FrictPhys_CundallStrack()],label="iloop"
),
triax,
newton,
  ]
  O.dt=PWaveTimeStep()
  triax.goal1=triax.goal2=triax.goal3=-1

  while 1:
O.run(1000,True)
unb=unbalancedForce()
print 'porosity', triax.porosity
if unb<0.01 and abs(-1-triax.meanStress)/1<.01:
  break

  bodiesToBeDeleted=[]
  for b in O.bodies:
if b.id in range(6):
continue
else:
if b.state.pos[0]<.002:
bodiesToBeDeleted.append(b)

  for b in bodiesToBeDeleted:
O.bodies.erase(b.id)

To manage notifications about this bug go to:
https://bugs.launchpad.net/yade/+bug/1767601/+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


[Yade-dev] buildbot failure in Yade on yade-full

2018-05-14 Thread buildbot
The Buildbot has detected a failed build on builder yade-full while building 
yade.
Full details are available at:
 https://yade-dem.org/buildbot/builders/yade-full/builds/4604

Buildbot URL: https://yade-dem.org/buildbot/

Buildslave for this Build: r0calcul9

Build Reason: scheduler
Build Source Stamp: [branch master] 135eda20769b2fc1abc254e4905349cc6eb6244c
Blamelist: jduriez 

BUILD FAILED: failed compile

sincerely,
 -The Buildbot



___
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