Skip to content

elements function #1

Description

@jacobwilliams

Nice paper! FYI: I was experimenting with the elements example. I noticed that it is a good bit faster if you convert fromrv3 from a function to a subroutine. So:

pure subroutine fromrv3(r, v, mu, ele)
    double precision, dimension(:), intent(in) :: r
    double precision, dimension(:), intent(in) :: v
    double precision, intent(in) :: mu
    double precision, dimension(6),intent(out) :: ele
...
end subroutine fromrv3

On my PC with ifort 17.0.2.187 (-O3 flag), for times=1000000, the total/times result goes from about 2.65e-7 to about 1.73e-7.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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