Skip to content

wave elevation function is very slow #140

@cmichelenstrofer

Description

@cmichelenstrofer
elev = surface_elevation(S, time) 

is about 20 times slower than

elev = np.zeros(time.shape)
for ifreq, iS in S.T.iteritems(): 
    elev += iS[0] * np.cos(ifreq*2*np.pi * time + np.random.rand()*2*np.pi)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions