Hi Logan,
mat_id in Mesh is declared as int, so it can be, in principle,
negative. However I am not sure, whether there are some silent
implicit assumptions that on its sign in the code... Anyway, the
reader can change the mat_id sign so that it is positive, no?
cheers, r.
Quoting Logan Sorenson <logan.s...@gmail.com>:
Hi all,
I was playing a bit with the grouping functionality in Salome which allows one to group similar elements and nodes into families. AFAIK, this more or less corresponds to the mat_id associated with the elements in SfePy. However, I couldn't find a way to explicitly specify the numbering, and the implicit numbering by Salome appears to write meshes with negative integers for the mat_id.
Are negative mat_ids allowed in SfePy? If not, I'll submit a patch for the MED format read code. Otherwise, we should correct the mat_ids in the comsol format write code, since negative domain numbers do not seem to be allowed there.
Thanks! Logan
-- You received this message because you are subscribed to the Google
Groups "sfepy-devel" group. To post to this group, send email to sfepy...@googlegroups.com. To unsubscribe from this group, send email to
sfepy-devel...@googlegroups.com. For more options, visit this group at
http://groups.google.com/group/sfepy-devel?hl=en.