yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #13062
Re: [Question #295520]: Exception occured: std::bad_alloc
Question #295520 on Yade changed:
https://answers.launchpad.net/yade/+question/295520
Jérôme Duriez posted a new comment:
Hi,
The YADE terminal interface conforms Python language syntax rules
(because YADE terminal is python, we could say). One of such rules is
that indentation (how many spaces / tabulations appear at the beginning
of a line) does matter, with function definitions, or "if" blocks being
defined by indentation.
Here, the correct indentation of the above script has been lost during copy/paste, leading to an erroneous python (or YADE) script.
You just have to correct it, which gives you a nice opportunity to familiarize yourself with python/YADE ;-) .
--
You received this question notification because your team yade-users is
an answer contact for Yade.