Hello, I'm solving the neumann problem for exterior acoustic scattering in bempp-cl. Trouble arises when reconstructing the GridFunction from the solution coefficients saved to a numpy array. When using a DP,0 space, I can use my reconstructed GridFunction to evaluate my potential operators and it all works flawlessly. Nonetheless, when using a P,1 space, I get a "dimension mismatch" error:
###
pScat = dlp_pot.evaluate(boundData)
File "C:\Users\gutoa\pypkg\bempp\bempp\api\assembly\potential_operator.py", line 27, in evaluate
return self._evaluator.evaluate(grid_fun.coefficients)
File "C:\Users\gutoa\pypkg\bempp\bempp\core\dense_potential_assembler.py", line 104, in evaluate
self.space.dof_transformation @ coefficients
File "C:\Users\gutoa\Anaconda3\envs\tcc\lib\site-packages\scipy\sparse\base.py", line 561, in __matmul__
return self.__mul__(other)
File "C:\Users\gutoa\Anaconda3\envs\tcc\lib\site-packages\scipy\sparse\base.py", line 499, in __mul__
raise ValueError('dimension mismatch')
ValueError: dimension mismatch
###
Is there something I am missing in this process? I am using the appropriate "space" variable, the GridFunction coefficients seem to match up exactly before and after reconstruction. I can't figure out why I am getting this error.
Lastly, I would like to compliment Timo for the incredible work in the package, it is really nice to be able to use this tool openly.
Best Regards,
Luiz Augusto