openearth / aeolis-python

A process-based model for simulating supply-limited aeolian sediment transport
http://aeolis.readthedocs.io/
GNU General Public License v3.0
33 stars 25 forks source link

Change in the manner the parameter 'time' is being computed for 2D Barchan dune case: Intentional or bug? #224

Open niketagrawal opened 3 weeks ago

niketagrawal commented 3 weeks ago

Error description

Tests fail from the commit https://github.com/openearth/aeolis-python/commit/b63a8f09e2a8d57f6c5958f906ae4ddea018cc68 on wards because the array values of the parameter 'time' computed by the code for the 2D Barchan dune case is not the same as the reference it's being compared against.

Root cause

Code changes in the commit https://github.com/openearth/aeolis-python/commit/b63a8f09e2a8d57f6c5958f906ae4ddea018cc68 that could be the reason for this.

How to reproduce the issue?

This error can't be reproduced in the main branch because of the presence of another issue #221. A pull request has already been created to fix it. Until the pull request is merged, you can reproduce the issue by adding the fix of pull request #221 locally in your branch, delete the directory aeolis/tests/regression_tests/inputs/1D, and run the tests again.

Fix

Are the code changes in the commit https://github.com/openearth/aeolis-python/commit/b63a8f09e2a8d57f6c5958f906ae4ddea018cc68 that changes the way 'time' is computed for the 2D Barchan dune case intentional? If yes, then the netcdf file used as a reference output in the tests for the 1D cases must be replaced with a netcdf generated with the new changes. Otherwise, the changes must be reverted.