Skip to content

Commit

Permalink
Wave: Simplify wave_number type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
simmsa committed Jan 30, 2025
1 parent 8c78d21 commit 5d6ffb9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions mhkit/wave/resource/wave_number.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,5 @@

kdf=py.mhkit.wave.resource.wave_number(f,h,pyargs('rho',options.rho,'g',options.rho));



k.values=double(py.array.array('d',py.numpy.nditer(kdf.values)));
k.frequency=double(py.array.array('d',py.numpy.nditer(kdf.index)));
k.h=h;

k.values=double(kdf.values);
k.frequency=double(kd.index);

0 comments on commit 5d6ffb9

Please sign in to comment.