mdpiper / pymt_heatf

PyMT component for the Fortran BMI example
https://bmi.readthedocs.io
MIT License
0 stars 0 forks source link

Reshaped arrays require Fortran ordering #6

Open mdpiper opened 3 years ago

mdpiper commented 3 years ago

When redimensionalizing a BMI array from a Fortran model with numpy.reshape, the order keyword is needed, as shown here in line 59:

https://github.com/mdpiper/pymt_heatf/blob/62b4973b98470db2dced1dde0be4a2e770eb6df0/examples/heatf_ex.py#L53-L59

This problem exists in both the BMI example (above) and the pymt example (line 55):

https://github.com/mdpiper/pymt_heatf/blob/62b4973b98470db2dced1dde0be4a2e770eb6df0/examples/pymt_heatf_ex.py#L50-L55

A user shouldn't have to know what language a wrapped model is written in.