| 71 |
|
typedef struct { |
| 72 |
|
int type; /* RECT, DISK, SPHERE */ |
| 73 |
|
double w, l, h; /* width, length, height */ |
| 74 |
< |
double area; /* effective radiating area */ |
| 74 |
> |
double area; /* max. projected area */ |
| 75 |
|
} SHAPE; /* a source shape */ |
| 76 |
|
|
| 77 |
|
int gargc; /* global argc (minus filenames) */ |
| 551 |
|
perror(buf); |
| 552 |
|
return(-1); |
| 553 |
|
} |
| 554 |
< |
if (cvdata(in, datout, 2, nangles, 1./683., bounds) != 0) { |
| 554 |
> |
if (cvdata(in, datout, 2, nangles, 1./WHTEFFICACY, bounds) != 0) { |
| 555 |
|
fprintf(stderr, "dosource: bad distribution data\n"); |
| 556 |
|
fclose(datout); |
| 557 |
|
unlink(fullname(buf,name,T_DST)); |
| 696 |
|
shp->area = shp->w * shp->l; |
| 697 |
|
break; |
| 698 |
|
case DISK: |
| 699 |
– |
shp->area = PI/4. * shp->w * shp->w; |
| 700 |
– |
break; |
| 699 |
|
case SPHERE: |
| 700 |
< |
shp->area = PI * shp->w * shp->w; |
| 700 |
> |
shp->area = PI/4. * shp->w * shp->w; |
| 701 |
|
break; |
| 702 |
|
} |
| 703 |
|
return(0); |