2D グリッドで結果を生成するコンポーネントがあります。そのグリッドのサイズをコンポーネントへの入力として変更できるようにしたいと考えています。そうすると、次のようなエラーが発生します。
ValueError: could not broadcast input array from shape (42025) into shape (40401)
次のようなパラメーターと未知数があります。
self.add_param('plot_res', val=201, pass_by_obj=True, description='Data output resolution')
self.add_output('out_grid', shape=201*201, description='output grid')
を変更するplot_res
と、上に貼り付けたエラーが表示されます。
よろしくお願いします。