Running several simulations in a loop

Asked by Vinícius Godim

Hello! I am using Yade to run a few simulatiions in a loop by varying parameters and saving the results to disk.

However, when I insert the script body into the loop, including the definition of bodies and engines, the following is given by the terminal

FATAL /build/yade-KKgSmd/yade-1.20.0/core/ThreadRunner.cpp:30 run: Exception occured:
boost: mutex lock failed in pthread_mutex_lock: Invalid argument

The same script outside a for loop yields no error at all.

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said :
#1

Hello,

please provide us with your script and also how yo do " insert the script body into the loop" [1]

For the purpose you described, you can run yade in batch mode [2]

cheers
Jan

[1] https://yade-dem.org/wiki/Howtoask
[2] https://yade-dem.org/doc/user.html#batch-queuing-and-execution-yade-batch

Can you help with this problem?

Provide an answer of your own, or ask Vinícius Godim for more information if necessary.

To post a message you must log in.