IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 24, 2010, 11:22:25 AM (16 years ago)
Author:
eugene
Message:

large update merging in changes for Ohana to support large files

Location:
trunk/Ohana
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana

  • trunk/Ohana/src/imregister/spreg/match.c

    r3509 r27435  
    22# include "spreg.h"
    33
    4 int *match_criteria (Spectrum *spectrum, int Nspectrum, int *Nmatch) {
     4off_t *match_criteria (Spectrum *spectrum, off_t Nspectrum, off_t *Nmatch) {
    55
    6   int i, j;
    7   int N, NMATCH;
    8   int *match;
    9   int reject;
    10   int Nfilename, Nobject, Ntelescope, Ninstrument;
     6  off_t i, j;
     7  off_t N, NMATCH;
     8  off_t *match;
     9  off_t reject;
     10  off_t Nfilename, Nobject, Ntelescope, Ninstrument;
    1111
    1212  /* create selection index */
    1313  N = 0;
    1414  NMATCH = 1000;
    15   ALLOCATE (match, int, NMATCH);
     15  ALLOCATE (match, off_t, NMATCH);
    1616
    1717  Nfilename = Nobject = Ntelescope = Ninstrument = 0;
     
    4242    if (N == NMATCH) {
    4343      NMATCH += 1000;
    44       REALLOCATE (match, int, NMATCH);
     44      REALLOCATE (match, off_t, NMATCH);
    4545    }
    4646  }
     
    5151# if (0)
    5252
    53 int *match_spectra (Spectrum *subset, int Nsubset, int *Nmatch) {
     53off_t *match_spectra (Spectrum *subset, off_t Nsubset, off_t *Nmatch) {
    5454 
    55   int i, j, N, Nspectrum, Nfound;
    56   int *match;
     55  off_t i, j, N, Nspectrum, Nfound;
     56  off_t *match;
    5757  Spectrum *spectrum;
    5858
     
    6060
    6161  /* find matching spectra - very inefficient : sort by obstime, find those first? */
    62   ALLOCATE (match, int, Nsubset);
     62  ALLOCATE (match, off_t, Nsubset);
    6363  for (j = 0; j < Nsubset; j++) {
    6464    match[j] = -1;
Note: See TracChangeset for help on using the changeset viewer.