Energy-Pathways-Group / GLOceanKit

Tools for physical oceanography in Matlab and Objective-C
21 stars 11 forks source link

blocknum function in GarrettMunkSpectrum #94

Open InleEfrafa opened 6 months ago

InleEfrafa commented 6 months ago

When attempting to call GarrettMunkSpectrum with an arbitrary pointwise density profile we recieve the 'Unrecognized function or variable 'blocknum'.' error for line 985: [~,indices,~] = blocknum(diff(self.N2internal)>0); After searching your code base and mathworks this seems to be the only reference to a blocknum function. I've not quite been able to work out what blocknum should be doing so I haven't been able to write something to fill the gap.

JeffreyEarly commented 6 months ago

Oh, oops... here's the definition of blocknum---it is part of jlab and certainly shouldn't be used in the code. Short-term work around might be to just install jlab