Re: [Yade-users] [Question #665387]: Compile error JointedCohesiveFrictionalPM

2018-03-12 Thread Thomas Chauve
Question #665387 on Yade changed:
https://answers.launchpad.net/yade/+question/665387

Thomas Chauve proposed the following answer:
Hello

I have similar probleme with the latest mater branch (from 12/03/2018). I 
compile it on Debian 9 with GCC 6.3.0.
I had no trouble before (last version tested is the one dated of 21/02/2018).

I see that JointedCohesiveFrictionalPM.cpp JointedCohesiveFrictionalPM.cpp have 
been modified 6 day ago. 
I try someting : I compile the new master (from 12/03/2018) with the old 
JointedCohesiveFrictionalPM.cpp JointedCohesiveFrictionalPM.cpp (from 
21/02/2018 branch) and it works.

I hope it can helps.

Cheers
Thomas

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

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


[Yade-users] [Question #670497]: path probleme for JointedCohesiveFrictionalPM.cpp

2018-06-27 Thread Thomas Chauve
New question #670497 on Yade:
https://answers.launchpad.net/yade/+question/670497

Hello

Just to report something a bit annoying for me.

I am doing multiple simulation using yade-batch. And I like to have all my file 
output for one run in the same folder.

I am using JointedCohesiveFrictionalPM.

In my script I do something like :

###
OUT=folder1/Sim1

O.engines=[
   
   
InteractionLoop(

[Law2_ScGeom_JCFpmPhys_JointedCohesiveFrictionalPM(smoothJoint=True,neverErase=1,recordCracks=True,Key=OUT,label='interactionLaw')]
),
...
   ..

VTKRecorder(iterPeriod=int(1),initRun=True,fileName=OUT+'-',recorders=['spheres','bstresses','cracks'],Key=OUT,label='saveSolid',dead=0)
]
##
There is more in the .. but for clarity I just put what is necessary.

The thing is like this it does not record the crack using 
"Law2_ScGeom_JCFpmPhys_JointedCohesiveFrictionalPM" because in this file Key 
must be a file without folder path.

You can see this in JointedCohesiveFrictionalPM.cpp line 30 

string fileCracks = "cracks_"+Key+".txt";

It cannot work in my case beacause it give "cracks_folder1/Sim1.txt" and the 
folder "cracks_folder1" doesn t exist.

I wonder if I can change this line by :

string fileCracks = ""+Key+"_cracks.txt";

which can be better for me. But do I have to change this also somewhere else ?
For instance in VTKrecorder line 1058

string fileCracks = "cracks_"+Key+".txt";

because overwise it will not find the file.

I hope my understand me and my questions are :
Is there an other way to export all the result from one simulation in one 
folder ?
How do you propose to do it or do you need to modified the code ?

Thanks a lot
Thomas

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

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