[MITgcm-support] S/R exf_check_range error

Matthew Mazloff mmazloff at MIT.EDU
Fri Sep 29 14:04:49 EDT 2006


Hi Dmitri

You have
> exf_iprec         = 32,

but you have

> prec='real*8';

so this is an inconsistency.  Try switching one to exf_iprec          
= 64,  or  prec='real*4';

-matt



On Sep 29, 2006, at 1:46 PM, Dmitri Leonov wrote:

> Hello all,
>
> I ran into an error at 'S/R exf_check_range' which I cannot  
> explain. Am I missing something? (see below) The ieee='b' is  
> correct for other mdsio files are read in correctly.  The error  
> appeared only after tau0 was changed from -0.03 to 0.015.
>
> Any ideas would be appreciated,
> Dmitri
>
> My data.exf file looks like
>
> &EXF_NML
> #
> ustressstartdate1   = 20061001,
> ustressstartdate2   = 000000,
> ustressperiod       = 129600.0,
> ustressfile         = 'taux.dat',
> #
> exf_iprec         = 32,
> exf_yftype        = 'RL',
> &
>
> and the file is generated in Matlab as follows:
> %
> prec='real*8';
> ieee='b';
> %...
> tau0=0.015;
> tau=zeros(nx,ny,21);
> tau(:,:,3:21)=tau0;
> fid=fopen('taux.dat','w',ieee); fwrite(fid,tau,prec); fclose(fid);
> %
>
>
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support




More information about the MITgcm-support mailing list