Question #665314 on Yade changed:
https://answers.launchpad.net/yade/+question/665314
Bruno Chareyre posted a new comment:
>I actually come to a bug message using the copy/paste script problem
After I reiterated that copy/paste was a wrong approach I'm asked to
help solving a copy/paste problem..
Question #665314 on Yade changed:
https://answers.launchpad.net/yade/+question/665314
azim posted a new comment:
Hi De zhang,
I had the problem and it is fixed now.
I think, if you show a little part of your code so that covers the section
causing errors, will be helpful for solving the problem.
Question #665314 on Yade changed:
https://answers.launchpad.net/yade/+question/665314
De zhang posted a new comment:
Hi Bruno,
My e-mail is 852321...@qq.com, would you please send me a mail so that I can
mail the files to you? Thank you~
Best regard!
De Zhang
--
You received this question notif
Question #665314 on Yade changed:
https://answers.launchpad.net/yade/+question/665314
De zhang posted a new comment:
Hi Bruno,
I actually come to a bug message using the copy/paste script problem.
I save a result as '1.yade', and in the second script , it could be loaded.
but when I finished the s
Question #665314 on Yade changed:
https://answers.launchpad.net/yade/+question/665314
Bruno Chareyre posted a new comment:
@Luc
I see, but copy/paste is not something to recommend, in general.
"import something" maybe. "copy/paste" no.
I think the best answer to "How to reload without suffering f
Question #665314 on Yade changed:
https://answers.launchpad.net/yade/+question/665314
Luc Scholtès posted a new comment:
I just gave a solution to solve De Zhang's problem which was, basically:
How to reload a simulation without suffering from the undefined
functions and variables?
But of course
Question #665314 on Yade changed:
https://answers.launchpad.net/yade/+question/665314
Bruno Chareyre posted a new comment:
>copy/paste from initial script
If it fits in a file, why would you generate a second file with the same
content?
Not a good idea. As the functions will be progressively mod
Question #665314 on Yade changed:
https://answers.launchpad.net/yade/+question/665314
Luc Scholtès posted a new comment:
Try to redefine the functions and global variables (copy/paste from
initial script) into your new simulation before calling O.run().
I usually create a new python script when I
Question #665314 on Yade changed:
https://answers.launchpad.net/yade/+question/665314
De zhang posted a new comment:
Dear azim,
I have met the same problem as yours, and I could not understand your solutions
as reading your answers, I saved a script A as 'SaveA.yade.gz' or 'SaveA.yade',
when I o
Question #665314 on Yade changed:
https://answers.launchpad.net/yade/+question/665314
azim posted a new comment:
Hi Bruno,
[1] really solved my problem.
thanks.
this is what i really was looking for, as i said in #2:
# -*- coding: utf-8 -*-
# Copyright (C) 2010 by Bruno Chareyre
Question #665314 on Yade changed:
https://answers.launchpad.net/yade/+question/665314
Status: Answered => Solved
azim confirmed that the question is solved:
Thanks Bruno Chareyre, that solved my question.
--
You received this question notification because your team yade-users is
an answer c
Question #665314 on Yade changed:
https://answers.launchpad.net/yade/+question/665314
Bruno Chareyre proposed the following answer:
Hi Azim, it seems I did not answer your last post.
The problem in the logic is that you defined the function after using them.
And the condition "if (saved=StableStat
Question #665314 on Yade changed:
https://answers.launchpad.net/yade/+question/665314
azim posted a new comment:
Hi Jerome,
thanks for your references.
I really don't want to go so deep. i just wanted to solve THE problem and
correct comment in #2.
Thanks
--
You received this question notificat
Question #665314 on Yade changed:
https://answers.launchpad.net/yade/+question/665314
Status: Open => Answered
Jérôme Duriez proposed the following answer:
For more details regarding what is saved / loaded, looking into the source
code, you may give a look at
https://yade-dem.org/doc/prog.h
Question #665314 on Yade changed:
https://answers.launchpad.net/yade/+question/665314
azim posted a new comment:
sorry dear bruno, def x function and def y function are outside the if-
else conditions!!!
--
You received this question notification because your team yade-users is
an answer contac
Question #665314 on Yade changed:
https://answers.launchpad.net/yade/+question/665314
Status: Answered => Open
azim is still having a problem:
if the below procedure is True? it means that my problem is solved:
for what i mentioned in [1], it will be something like this:
Script A&B&C in one
Question #665314 on Yade changed:
https://answers.launchpad.net/yade/+question/665314
Status: Open => Answered
Bruno Chareyre proposed the following answer:
>what parameters are supposed to be saved in every save/load procedure?
The content of "O" (bodies, engines, interactions).
>and what
17 matches
Mail list logo