Changeset 188 in Sophya for trunk/SophyaPI


Ignore:
Timestamp:
Jan 18, 1999, 1:11:40 PM (27 years ago)
Author:
ercodmgr
Message:

bug pitgr, clean ds makefile (rz+cmv 18/1/99)

Location:
trunk/SophyaPI/PI/Tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/Tests/Makefile

    r181 r188  
    4646
    4747
     48clean:
     49        rm -f $(OBJ)pit0.o $(OBJ)pit1.o $(OBJ)pitcons.o $(OBJ)pitgr.o $(OBJ)pitst.o
     50        rm -f $(EXE)pit0 $(EXE)pit1 $(EXE)pitcons $(EXE)pitgr $(EXE)pitst
  • trunk/SophyaPI/PI/Tests/pitgr.cc

    r181 r188  
    264264        amp = pow(10., lamp);
    265265//        if (k%5 == 0)  printf(" DBG %d %d - %g \n", i0, j0, flux);
    266         for(i=i0-15; i<i0+15; i++)
     266        for(i=i0-15; i<i0+15; i++) {
     267          if(i<0 || i>=sx) continue;
    267268          for(j=j0-15; j<j0+15; j++) {
     269            if(j<0 || j>=sy) continue;
    268270            x = i-i0;  y = j-j0;
    269271            kk = j*sx+i;
    270272            img[kk] += amp*exp(-(x*x)/7.-(y*y)/8.);
    271273            }
     274        }
    272275      }
    273276      printf("  >> OK \n");
Note: See TracChangeset for help on using the changeset viewer.