[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20000915: defining scalar variables



Stefan,

>Date: Fri, 15 Sep 2000 19:36:57 +0200
>From: Stefan Maehlmann <address@hidden>
>Organization: Aerodynamisches Institut der RWTH-Aachen
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20000915: defining scalar variables
>Keywords: 200009151648.e8FGmtb07020

The above message contained the following:

> thank you for your quick help. Its works, but what's about the write 
> procedure 
> status = nf_put_var_double (ncid,time_id,time)

> 
> status =nf_put_var_double (ncid,val_id,val)
> 
> here i get the same compiler error message.
> Again time is a scalar and val an array. Their size shouldn't be identical.

Use the following:

    integer times(1)
    times(1) = time
    nf_put_var_double(ncid,time_id,times)

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>