karpob / pycrtm

Apache License 2.0
4 stars 16 forks source link

Replace passing everything by argument in fortran interface with select things set globally #72

Closed karpob closed 4 years ago

karpob commented 4 years ago

f2py will allow you to set/allocate things to global variables/arrays in a module. This could be useful to reduce the memory footprint of surfaces/aerosols/clouds when we don't use them. Also reduce the lag of passing profiles through. We can just set it once and forget it.

karpob commented 4 years ago

see fortran 90 module. sigh use global variables in module. Avoid copying and just pass it into the module, also able to optionally passing things based on whether something is allocated or not (avoid a billion flags passed through reference, and let python handle flags). https://docs.scipy.org/doc/numpy/f2py/python-usage.html#array-arguments

karpob commented 4 years ago

Closed with #87