Changeset 3991 in Sophya
- Timestamp:
- May 9, 2011, 12:10:57 PM (13 years ago)
- Location:
- trunk/Cosmo/RadioBeam
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/RadioBeam/applobe.cc
r3989 r3991 90 90 else fgoptarg=false; 91 91 } 92 if (narg < 3) {92 if (narg < 4) { 93 93 cout << " applobe/error arguments , applobe -h for help " << endl; 94 94 return 2; -
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_; -
trunk/Cosmo/RadioBeam/mdish.h
r3988 r3991 95 95 Four2DResponse& a_; 96 96 Four2DResponse& b_; 97 double maxratio_ ;97 double maxratio_, zerothr_; 98 98 }; 99 99
Note: See TracChangeset
for help on using the changeset viewer.