~javier-lopez/ubuntu/quantal/cdo/sru-1023329

« back to all changes in this revision

Viewing changes to src/Eofcoeff.c

  • Committer: Bazaar Package Importer
  • Author(s): Alastair McKinstry
  • Date: 2010-09-22 15:58:09 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100922155809-u1d3vlmlqj02uxjt
Tags: 1.4.6.dfsg.1-1
New upstream release. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
*/
23
23
#define WEIGHTS 1
24
24
 
25
 
#include "cdi.h"
 
25
#include <cdi.h>
26
26
#include "cdo.h"
27
27
#include "cdo_int.h"
28
28
#include "pstream.h"
33
33
 
34
34
void *Eofcoeff(void * argument)
35
35
{
36
 
  static char func[] = "Eofcoeff";
 
36
  static const char *func = "Eofcoeff";
37
37
  char eof_name[5], oname[1024], filesuffix[32];
38
38
  double *w;
39
39
  double missval1=-999, missval2;
54
54
  cdoInitialize(argument);
55
55
  cdoOperatorAdd("eofcoeff",  0,       0, NULL);
56
56
  operatorID = cdoOperatorID();
57
 
  operfunc = cdoOperatorFunc(operatorID);
 
57
  operfunc = cdoOperatorF1(operatorID);
58
58
     
59
59
  streamID1 = streamOpenRead(cdoStreamName(0));
60
60
  if ( streamID1 < 0 ) cdiError(streamID1, "Open failed on %s", cdoStreamName(0));