[MITgcm-support] problems running mnc_assembly
Martin Losch
mlosch at awi-bremerhaven.de
Mon Feb 7 06:08:51 EST 2005
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
Martin
On Feb 6, 2005, at 9:00 AM, Eli Galanti wrote:
> hi Ed,
>
> I'm trying to run your example of mnc_assembly (mnc_assem_test) with
> matlab 6.5
> and get the following errors. Any ideas what could cause the problem?
>
> thanks, Eli.
>
>>> mnc_assem_test
>
> Starting test with "exch1" geometry:
>
> Found 4 files matching the pattern:
> "exp0_20041126_0001/state.0000.%06d.nc"
> Looking for variable: iter
> ??? Error using ==> cellstr
> Input must be a string.
>
> Error in ==>
> /usr/local/lib64/matlab13_sp1/toolbox/matlab/ops/@cell/setdiff.m
> On line 52 ==> b = cellstr(b);
>
> Error in ==>
> /a/home/cc/space/galanti/development/edhill/mnc_assembly/mnc_assemb
> ly.m
> On line 239 ==> addl = setdiff(mydim_names,[mydims.names]);
>
> Error in ==>
> /a/home/cc/space/galanti/development/edhill/mnc_assembly/mnc_assem_
> test.m
> On line 24 ==> [nt,nf] = mnc_assembly(fpat,vars);
> --
> Dr. Eli Galanti
> Department of Geophysics and Planetary Sciences
> Tel-Aviv University, Ramat Aviv 69978, Israel.
> Tel: 972-3-6408274 Fax: 972-3-6409282
> E-mail: galanti at tau.ac.il
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://dev.mitgcm.org/mailman/listinfo/mitgcm-support
More information about the MITgcm-support
mailing list