@@ -14,6 +14,29 @@ landscape evolution.
14
14
15
15
.. _`xarray-topo` : https://gitext.gfz-potsdam.de/sec55-public/xarray-topo
16
16
17
+ Does xarray-simlab allow fast model execution?
18
+ ----------------------------------------------
19
+
20
+ Yes, although it depends on how the model is implemented.
21
+
22
+ xarray-simlab is written in pure-Python and so is the outer (time) loop of
23
+ xarray-simlab models. The execution of Python code is slow compared to other
24
+ languages, but for the outer loop only it wouldn't represent the main bottleneck
25
+ of the overall model execution, especially when using an implicit time scheme.
26
+ For inner (e.g., spatial) loops in each model processes - implemented within
27
+ their ``.run_step `` method -, it might be better to have a numpy vectorized
28
+ implementation, use an accelerator like Cython _ or Numba _ or call wrapped code
29
+ that is written in, e.g., C or Fortran (see for example f2py _ for wrapping
30
+ Fortran code).
31
+
32
+ As with any other framework, xarray-simlab introduces an overhead compared to
33
+ a simple, straightforward (but non-flexible) implementation of a model. However,
34
+ the preliminary benchmarks that we have run show only a very small overhead.
35
+
36
+ .. _Cython : http://cython.org/
37
+ .. _Numba : http://numba.pydata.org/
38
+ .. _f2py : https://docs.scipy.org/doc/numpy-dev/f2py/
39
+
17
40
Will xarray-simlab support Python 2.7.x?
18
41
----------------------------------------
19
42
@@ -29,8 +52,8 @@ it still makes the code harder to maintain.
29
52
Which features are likely to be implemented in next xarray-simlab releases?
30
53
---------------------------------------------------------------------------
31
54
32
- Some ideas for future development can be found in the roadmap _ on the
33
- xarray-simlab's Github wiki _.
55
+ xarray-simlab is a very young project. Some ideas for future development can be
56
+ found in the roadmap _ on the xarray-simlab's Github wiki _.
34
57
35
58
.. _roadmap : https://github.com/benbovy/xarray-simlab/wiki/Roadmap
36
59
.. _wiki : https://github.com/benbovy/xarray-simlab/wiki
0 commit comments