multiscale / muscle3

The third major version of the MUltiScale Coupling Library and Environment
Apache License 2.0
25 stars 13 forks source link

Calling DCR::storage_order() on a non-grid gives error about ::shape() #252

Open LourensVeen opened 1 year ago

LourensVeen commented 1 year ago

If you call DataConstRef::storage_order() on an object that isn't a grid, you get an exception with a message that says you cannot call shape() on something that isn't a grid, which is quite confusing. The error message should say that the problem is in a call to storage_order() instead.