
Can someone tell me the difference between the dicts materials and material_1, material_2? I see references to all those in the examples, but I'm not sure what the differences are.

Hi Matthew,
you can use the long syntax or the short syntax. See http://sfepy.org/doc-devel/users_guide.html#problem-description-file.
Long syntax:
material_1 = {'name': 'mat1', ...} material_2 = {'name': 'mat2', ...}
Short syntax:
materials = { 'mat1': ..., 'mat2': .... }
There is no other difference.
Regards Vladimir
On 22.6.2014 21:16, Matthew Dornfeld wrote:
Can someone tell me the difference between the dicts materials and material_1, material_2? I see references to all those in the examples, but I'm not sure what the differences are.
-- You received this message because you are subscribed to the Google Groups "sfepy-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sfepy-devel...@googlegroups.com <mailto:sfepy-devel...@googlegroups.com>. To post to this group, send email to sfepy...@googlegroups.com <mailto:sfepy...@googlegroups.com>. Visit this group at http://groups.google.com/group/sfepy-devel.

Vladimír already answered, let me just add some remarks.
Historically, the "long syntax" (material_#) was used but then we added the "short syntax" (materials) so that the problem description files were more concise. The same holds for other keywords.
I am now using the short syntax exclusively, and would agree removing the long syntax, if it comes to discussion.
Also, the examples seem to favour the long syntax, and there are very few interactive ones, see also [1].
Best regards, r. [1] https://github.com/sfepy/sfepy/issues/265
On 06/23/2014 08:38 AM, Vladimír Lukeš wrote:
Hi Matthew,
you can use the long syntax or the short syntax. See http://sfepy.org/doc-devel/users_guide.html#problem-description-file.
Long syntax:
material_1 = {'name': 'mat1', ...} material_2 = {'name': 'mat2', ...}
Short syntax:
materials = { 'mat1': ..., 'mat2': .... }
There is no other difference.
Regards Vladimir
On 22.6.2014 21:16, Matthew Dornfeld wrote:
Can someone tell me the difference between the dicts materials and material_1, material_2? I see references to all those in the examples, but I'm not sure what the differences are.
-- You received this message because you are subscribed to the Google Groups "sfepy-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sfepy-devel...@googlegroups.com <mailto:sfepy-devel...@googlegroups.com>. To post to this group, send email to sfepy...@googlegroups.com <mailto:sfepy...@googlegroups.com>. Visit this group at http://groups.google.com/group/sfepy-devel.
participants (3)
-
Matthew Dornfeld
-
Robert Cimrman
-
Vladimír Lukeš