Changeset 3991 in Sophya for trunk/Cosmo/RadioBeam/mdish.cc
- Timestamp:
- May 9, 2011, 12:10:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/RadioBeam/mdish.cc
r3990 r3991 168 168 //--------------------------------------------------------------- 169 169 Four2DRespRatio::Four2DRespRatio(Four2DResponse& a, Four2DResponse& b, double maxratio) 170 : Four2DResponse(0, a.D(), a.D()), a_(a), b_(b), maxratio_(maxratio) 170 : Four2DResponse(0, a.D(), a.D()), a_(a), b_(b), maxratio_(maxratio), zerothr_(.5/maxratio) 171 171 { 172 172 } … … 176 176 double ra = a_.Value(kx,ky); 177 177 double rb = b_.Value(kx,ky); 178 if (ra<rb) { 179 if (rb>1.e-19) return(ra/rb); 180 else return 0.; 181 } 182 double rval=maxratio_; 183 if (rb>1.e-19) rval=ra/rb; 178 if ((ra<zerothr_)||(rb<zerothr_)) return 0.; 179 double rval=ra/rb; 184 180 if (rval<maxratio_) return rval; 185 181 return maxratio_;
Note:
See TracChangeset
for help on using the changeset viewer.