Skip to content

Speeding up PROCESS #1230

@jonmaddock

Description

@jonmaddock

In GitLab by @mkovari on Jan 14, 2021, 13:37

A profiling tool was run, generating the diagram below that shows the number of times each procedure is run, and the fraction of the total time used by that procedure. Some procedures are run tens of millions of times, for reasons that are not clear.

For example, subroutine impradprofile is run 4,472,799 times, and uses 65.55% of the total execution time. Almost all of this is due to the two functions:

function pimpden(imp_element, ne, te)
    !! Total impurity radiation density (W/m3)

and

function pbremden(imp_element, ne, te)
    !! Bremsstrahlung radiation density (W/m3)

call_graph.svg
Explanation:
image

image
This shows that 63% of the total time is spent in these two routines alone (excluding the calls within them).

It would be very interesting for a keen individual to look into this! @ajpearcey @asbrown @kzarebsk @cjwgriesel @stuartmuldrew @jonmaddock @jmorris-uk ??

Metadata

Metadata

Assignees

No one assigned

    Labels

    Has attachmentAttachment was not transfered from GitLab

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions