sfepy/sfepy — Issue #74: check shape of material parameters passed to terms
Author: rc
Created: 2012-01-30 10:25:29+00:00
State: open

Not doing this can lead to no error but a bad tangent matrix.

Migrated from http://code.google.com/p/sfepy/issues/detail?id=70

earlier comments

robert.cimrman said, at 2009-08-18T11:56:11.000Z:

Term classes should declare the required shape of material parameters, for example:

ATerm(Term):
arg_shapes : {'material' : ('sym', 1)}

with keywords 'dim', 'sym' replaced at run-time by proper numbers.

robert.cimrman said, at 2011-08-09T13:55:57.000Z:

One can now implement Term.check_shapes() for each term, and check the shapes of all arguments directly, without any "parsing" etc.