[MITgcm-support] problems running mnc_assembly

Ed Hill ed at eh3.com
Mon Feb 7 09:02:06 EST 2005


On Mon, 2005-02-07 at 12:08 +0100, Martin Losch wrote:
> Eli,
> 
> I could reproduce your problem: [mydims.names] is empty and obviously 
> setdiff in Matlab6.5 cannot handle that. I don't know why both 6.1 and 
> 7 can and 6.5 fails, but here's the quick fix:
> before the call to setdiff in question replace the line containing 
> setdiff with
> >     if isempty([mydims.names])
> >       addl = mydim_names;
> >     else
> >       addl = setdiff(mydim_names,[mydims.names]);
> >     end

Hi Martin,

Thanks for the code snippet!  I'll test it and incorporated it!

Ed

-- 
Edward H. Hill III, PhD
office:  MIT Dept. of EAPS;  Rm 54-1424;  77 Massachusetts Ave.
             Cambridge, MA 02139-4307
emails:  eh3 at mit.edu                ed at eh3.com
URLs:    http://web.mit.edu/eh3/    http://eh3.com/
phone:   617-253-0098
fax:     617-253-4464




More information about the MITgcm-support mailing list