Problem using [soln-plugin-sampler]

Hi,
I’m trying to use [soln-plugin-sampler], but keep getting the following error when I run PyFR:

File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pyfr-1.3.0-py3.5.egg/pyfr/plugins/sampler.py", line 13, in <listcomp>

ValueError: operands could not be broadcast together with shapes (4,1633,2) (3,)

It seems to be to do with the coodinates I’m inserting into ‘samp-pts = [(x, y, z)]’, but I get the error with any point(s) combinations I try. How can I get round this? Please find my .ini and .msh files attached for reference.

Thank you

Andrew Holt

test4.ini (1.33 KB)

test4.msh (369 KB)

Hi Andrew,

I think you are defining all three coordinates with z=0.0, although you are running a two dimensional case.
Not passing the third coordinate ‘samp-pts = [(x, y)]’ should work.

Regards,
Niki