Skip to content

Components of calc_Obhukov_length are most of the cost of simulate_microclimate #83

@rafaqz

Description

@rafaqz

Mostly these logs and powers:

return 2.0 * log((1.0 + x) / 2.0) + log((1.0 + x^2) / 2.0) - 2.0 * atan(x) + π / 2.0

return 0.62 / (ustrip(u"cm", z0) * ustrip(u"cm/minute", u_star) / 12)^(9//20)

We could look into if any of these are not affected by loop variables and precompute them, and similar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions