Hi Robert,

this helped a lot.
It's the same issue in examples/linear_elasticity/its2D_interactive.py

best,
JonnyB

Am Donnerstag, 13. August 2015 09:36:11 UTC+2 schrieb Robert Cimrman:
Hi Fred,

this is caused by the commit 61ec2878cff85daf141c6f4a6441074ead2ddbe8 - the
change was necessary in order to be able to use different material definitions
in post-processing.

So, if the material 'm' is defined in the problem, add "copy_materials=False"
to the pb.evaluate() call, or, if it is a new material. pass it explicitely:
pb.evaluate(..., m=m).

Does it help?

r.

On 08/13/2015 03:49 AM, Fred Hohman wrote:
> Hi sfepy-devel,
>
> The following simulation
>
> https://github.com/materialsinnovation/pymks/blob/master/pymks/datasets/elastic_FE_simulation.py
>
> used to work on SfePy version `2014.4` but no longer works on version
> `2015.2`. Do you have any guidance on what went wrong? Below is a console
> printout:
>
> Traceback (most recent call last):
> File "/Users/fredhohman/anaconda/lib/python2.7/site­packages/nose/case.py",
> line 197, in
> runTest
> self.test(*self.arg)
> File "/Users/fredhohman/anaconda/lib/python2.7/site­packages/pymks/tests/test.py",
> line 12, in
> test_elastic_FE_simulation_3D
> model.run(X)
> File "/Users/fredhohman/anaconda/lib/python2.7/site-
> packages/pymks/datasets/elastic_FE_simulation.py", line 190, in run
> strain_, displacement_, stress_ = self._solve(x)
> File "/Users/fredhohman/anaconda/lib/python2.7/site-
> packages/pymks/datasets/elastic_FE_simulation.py", line 547, in _solve
> mode='el_avg'))
> File "/Users/fredhohman/anaconda/sfepy/sfepy/discrete/problem.py", line
> 1245, in evaluate
> verbose=verbose, **kwargs)
> File "/Users/fredhohman/anaconda/sfepy/sfepy/discrete/problem.py", line
> 1186, in
> create_evaluable
> kwargs=kwargs)
> File "/Users/fredhohman/anaconda/sfepy/sfepy/discrete/evaluate.py", line
> 211, in
> create_evaluable
> user=extra_args, verbose=verbose)
> File "/Users/fredhohman/anaconda/sfepy/sfepy/discrete/equations.py", line
> 64, in from_conf
> materials, integrals, user=user)
> File "/Users/fredhohman/anaconda/sfepy/sfepy/discrete/equations.py", line
> 749, in from_desc
> terms.assign_args(variables, materials, user)
> File "/Users/fredhohman/anaconda/sfepy/sfepy/terms/terms.py", line 286, in
> assign_args
> term.assign_args(variables, materials, user)
> File "/Users/fredhohman/anaconda/sfepy/sfepy/terms/terms.py", line 497, in
> assign_args
> % arg_name)
> ValueError: material argument m not found!
>
> Thanks,
> Fred
>