Changeset 2104 in Sophya for trunk/ArchTOIPipe/ProcWSophya/toi2toi_addsp.cc
- Timestamp:
- Jul 16, 2002, 7:01:44 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/ProcWSophya/toi2toi_addsp.cc
r2102 r2104 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: toi2toi_addsp.cc,v 1. 3 2002-07-16 16:38:48 cecileExp $5 // $Id: toi2toi_addsp.cc,v 1.4 2002-07-16 17:01:36 cmv Exp $ 6 6 7 7 #include "machdefs.h" … … 14 14 15 15 //////////////////////////////////////////////////////////////////////// 16 Toi2toi_Addsp::Toi2toi_Addsp( Info_src* info,int_4 ns)17 : src(info),nb_src(ns)16 Toi2toi_Addsp::Toi2toi_Addsp(int_4 ns) 17 : nb_src(ns) 18 18 { 19 Fill_Info_scr(); 19 20 SetEquinox(); 20 21 SetCoorIn(); … … 133 134 134 135 //-------------------------------------------------------------------- 135 //-------------------------------------------------------------------- 136 //-------------------------------------------------------------------- 137 //-------------------------------------------------------------------- 138 //-------------------------------------------------------------------- 139 //-------------------------------------------------------------------- 140 void Fill_Info_scr(Info_src* scr, int_4 ns) 136 void Toi2toi_Addsp::Fill_Info_scr(void) 141 137 { 142 for (int i=0; i<ns ; i++){ 143 scr[i].glon = 80.+i*10.; 144 scr[i].glat = 0.; 145 scr[i].amp = 1.; 146 scr[i].tau1 = 0.5; 147 scr[i].tau2 = 0.5; 138 if(nb_src<=0) return; 139 for (int i=0; i<nb_src ; i++){ 140 Info_src srcloc; 141 srcloc.glon = 80.+i*10.; 142 srcloc.glat = 0.; 143 srcloc.amp = 1.; 144 srcloc.tau1 = 0.5; 145 srcloc.tau2 = 0.5; 146 src.push_back(srcloc); 148 147 } 149 148 }
Note:
See TracChangeset
for help on using the changeset viewer.