Changeset 768 in Sophya
- Timestamp:
- Mar 2, 2000, 6:19:19 PM (26 years ago)
- Location:
- trunk/SophyaProg/Tests
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaProg/Tests/Makefile
r742 r768 15 15 LIBF = $(SLB)libsophya.so 16 16 #LIBS = -L$(SLB) -lPI -lsophya -lm 17 LIBS = -L$(SLB) -l sophya -lm17 LIBS = -L$(SLB) -lextsophya -lsophya -lm 18 18 ifeq ($(MACHEROS),Linux) 19 19 LIBS := $(LIBS) -ldl -
trunk/SophyaProg/Tests/fitsServTest.cc
r476 r768 9 9 #include "spherethetaphi.h" 10 10 #include "localmap.h" 11 #include "skymapinit.h" 11 12 12 13 13 14 int main() 14 15 { 16 // ----- ATTENTION ------- 17 // Initialisation de Sophya 18 // A faire au debut de main() 19 SophyaInit(); 15 20 16 //PeidaImagesInitiator imgini;17 // PeidaInit();18 21 FitsIoServer fserv; 19 22 int nsmax=32; -
trunk/SophyaProg/Tests/fitsioGorski.cc
r571 r768 9 9 #include "nbrandom.h" 10 10 #include "fitsioserver.h" 11 #include "skymapinit.h" 12 11 13 int main() 12 14 { 13 15 14 16 // ----- ATTENTION ------- 15 // Initialisation de Peida17 // Initialisation de Sophya 16 18 // A faire au debut de main() 17 PeidaInit();19 SophyaInit(); 18 20 19 21 int m=4; -
trunk/SophyaProg/Tests/fitsioImage.cc
r573 r768 7 7 #include "nbrandom.h" 8 8 #include "fitsioserver.h" 9 #include "skymapinit.h" 10 11 9 12 int main() 10 13 { 11 14 12 15 // ----- ATTENTION ------- 13 // Initialisation de Peida16 // Initialisation de Sophya 14 17 // A faire au debut de main() 15 PeidaInit(); 18 SophyaInit(); 19 16 20 ImageR4 img(20, 10); 17 21 r_4 compt=0; -
trunk/SophyaProg/Tests/fitsioLocMap.cc
r573 r768 8 8 #include "nbrandom.h" 9 9 #include "fitsioserver.h" 10 #include "skymapinit.h" 11 12 10 13 int main() 11 14 { 12 15 13 16 // ----- ATTENTION ------- 14 // Initialisation de Peida17 // Initialisation de Sophya 15 18 // A faire au debut de main() 16 PeidaInit();19 SophyaInit(); 17 20 18 21 int nx=10; -
trunk/SophyaProg/Tests/fitsioSphere.cc
r573 r768 8 8 #include "nbrandom.h" 9 9 #include "fitsioserver.h" 10 #include "skymapinit.h" 11 10 12 int main() 11 13 { 12 14 13 15 // ----- ATTENTION ------- 14 // Initialisation de Peida16 // Initialisation de Sophya 15 17 // A faire au debut de main() 16 PeidaInit();18 SophyaInit(); 17 19 18 20 int m=4; -
trunk/SophyaProg/Tests/sphg0.cc
r583 r768 8 8 { 9 9 double teta,phi; 10 PeidaInit(); 10 SophyaInit(); 11 11 12 int m=32; 12 13 SphereGorski<double> sph(m); -
trunk/SophyaProg/Tests/t_scan.cc
r573 r768 5 5 #include "nbmath.h" 6 6 // Utilisation de la classe Scan 7 #include " outilsinit.h"7 #include "sambainit.h" 8 8 #include "scan.h" 9 9 #include "ppersist.h" … … 11 11 { 12 12 // ----- ATTENTION ------- 13 // Initialisation de Peida13 // Initialisation de Sophya 14 14 // A faire au debut de main() 15 PeidaInit(); 15 SophyaInit(); 16 16 17 int nbpix; 17 18 float teta,phi; -
trunk/SophyaProg/Tests/tblitz.cc
r274 r768 4 4 #include "timing.h" 5 5 #include "cimage.h" 6 #include " outilsinit.h"6 #include "ntoolsinit.h" 7 7 // Test des NDataBlock 8 8 #include "ndatablock.h" … … 13 13 main(int narg, char *arg[]) 14 14 { 15 PeidaInit();15 SophyaInit(); 16 16 InitTim(); 17 17 -
trunk/SophyaProg/Tests/testfitsio.cc
r573 r768 9 9 #include "spherethetaphi.h" 10 10 #include "localmap.h" 11 11 #include "skymapinit.h" 12 12 13 13 int main() 14 14 { 15 15 16 //PeidaImagesInitiator imgini;17 // PeidaInit(); 16 SophyaInit(); 17 18 18 FitsIoServer fserv; 19 19 int nsmax=32; -
trunk/SophyaProg/Tests/tfft.cc
r715 r768 1 #include "machdefs.h" 2 1 3 #include <math.h> 2 4 #include <iostream.h> 3 5 6 #include "nbrandom.h" 4 7 #include "fftpserver.h" 5 8 #include "fftmserver.h" 6 #include "sambainit.h" 9 #include "fftwserver.h" 10 #include "ntoolsinit.h" 7 11 8 12 #include "timing.h" 9 13 14 15 static bool inp_typ_random = false ; // true -> random input 10 16 11 17 template <class T> … … 37 43 cout << " DBG/4 outc " << outc.NElts() << endl; 38 44 39 for (int i=0; i<num ; i++){ 45 if (inp_typ_random) 46 for (int i=0; i<num ; i++){ 47 ino[i] = in[i] = GauRnd(0., 1.); 48 inc[i] = complex<T> (in[i], 0.); 49 } 50 else for (int i=0; i<num ; i++){ 40 51 ino[i] = in[i] = 0.5 + cos(2*M_PI*(double)i/(double)num) 41 52 + 2*sin(4*M_PI*(double)i/(double)num); … … 158 169 { 159 170 160 PeidaInit();171 SophyaInit(); 161 172 InitTim(); // Initializing the CPU timer 162 173 163 174 if (narg < 4) { 164 cout << "tfft/ args error - \n Usage tfft size p/P/M f/d [NPrtFC NPrt] \n" 165 << " p=FFTPackTest P=FFTPack, M=FFTMayer, f=float, d=double " << endl; 175 cout << "tfft/ args error - \n Usage tfft size px/Px/Mx/Wx f/d [NPrtFC NPrt] \n" 176 << " p=FFTPackTest P=FFTPack, M=FFTMayer, W= FFTWServer" 177 << " x=0 -> Random input - f=float, d=double " << endl; 166 178 exit(0); 167 179 } … … 169 181 FFTPackServer fftp; 170 182 FFTMayerServer fftm; 183 184 FFTWServer fftw; 185 186 inp_typ_random = false; 187 if (arg[2][1] == '0') inp_typ_random = true; 171 188 172 189 int sz = atoi(arg[1]); … … 177 194 FFTServerInterface * ffts; 178 195 if (*arg[2] == 'M') ffts = fftm.Clone(); 196 else if (*arg[2] == 'W') ffts = fftw.Clone(); 179 197 else ffts = fftp.Clone(); 180 198 -
trunk/SophyaProg/Tests/timg.cc
r298 r768 2 2 #include <iostream.h> 3 3 // Utilisation de la classe Image<T> 4 #include " outilsinit.h"4 #include "ntoolsinit.h" 5 5 #include "cimage.h" 6 6 // Utilisation des generateurs aleatoires … … 19 19 20 20 // ----- ATTENTION ------- 21 // Initialisation de Peida21 // Initialisation de Sophya 22 22 // A faire au debut de main() 23 PeidaInit();23 SophyaInit(); 24 24 25 25 cout << " ........ Debut de timg.cc ....... " << endl; -
trunk/SophyaProg/Tests/tnt.cc
r720 r768 4 4 #include <iostream.h> 5 5 6 #include " outilsinit.h"6 #include "histinit.h" 7 7 #include "dvlist.h" 8 8 #include "ntuple.h" … … 16 16 int main(int narg, char *arg[]) 17 17 { 18 PeidaInit();18 SophyaInit(); 19 19 if (narg < 2) { 20 20 cout << " tnt/Erreur arg - Usage: tnt d/n/x/X \n" -
trunk/SophyaProg/Tests/tobjio.cc
r742 r768 6 6 7 7 // Pour le test 8 #include "sambainit.h" 9 #include "cvector.h" 10 #include "matrix.h" 8 #include "histinit.h" 11 9 #include "histos.h" 12 10 #include "histos2.h" … … 21 19 { 22 20 23 PeidaInit();21 SophyaInit(); 24 22 25 23 cout << "Hash check, OMatrix : " << hex << PIOPersist::Hash("OMatrix") << dec << endl; -
trunk/SophyaProg/Tests/tspm.cc
r606 r768 1 1 #include <iostream.h> 2 #include "s ambainit.h"2 #include "skymapinit.h" 3 3 #include "spheregorski.h" 4 4 #include "spherethetaphi.h" … … 27 27 double gmoy, gsig; 28 28 29 PeidaInit();29 SophyaInit(); 30 30 InitTim(); // Initializing the CPU timer 31 31 if ((narg > 1) && (strcmp(arg[1],"-h") == 0) ) { -
trunk/SophyaProg/Tests/tspm2.cc
r606 r768 1 1 #include <iostream.h> 2 2 #include <math.h> 3 #include "s ambainit.h"3 #include "skymapinit.h" 4 4 #include "spheregorski.h" 5 5 #include "spherethetaphi.h" … … 84 84 double gmoy=0., gsig=0.; 85 85 86 PeidaInit();86 SophyaInit(); 87 87 InitTim(); // Initializing the CPU timer 88 88 if ((narg > 1) && (strcmp(arg[1],"-h") == 0) ) { -
trunk/SophyaProg/Tests/tstndblk.cc
r583 r768 5 5 #include <string.h> 6 6 #include <math.h> 7 #include " outilsinit.h"7 #include "ntoolsinit.h" 8 8 #include "pexceptions.h" 9 9 #include "ndatablock.h" … … 12 12 int main(int narg,char *arg[]) 13 13 { 14 PeidaInit();14 SophyaInit(); 15 15 float x1[5] = {1.,2.,3.,4.,5.}; 16 16 float x2[5] = {10.,20.,30.,40.,50.}; -
trunk/SophyaProg/Tests/tsttmat.cc
r552 r768 5 5 #include <string.h> 6 6 #include <math.h> 7 #include " outilsinit.h"7 #include "ntoolsinit.h" 8 8 #include "pexceptions.h" 9 #include "matrix.h"10 9 #include "tmatrix.h" 11 10 #include "nbrandom.h" … … 14 13 int main(int narg,char *arg[]) 15 14 { 16 PeidaInit();15 SophyaInit(); 17 16 r_8 v[3][4] = {{1,2,3,4},{4,5,6,5},{7,8,9,10}}; 18 17 -
trunk/SophyaProg/Tests/tsttvec.cc
r552 r768 5 5 #include <string.h> 6 6 #include <math.h> 7 #include " outilsinit.h"7 #include "ntoolsinit.h" 8 8 #include "pexceptions.h" 9 #include "cvector.h" 9 10 10 #include "tvector.h" 11 11 #include "nbrandom.h" … … 14 14 int main(int narg,char *arg[]) 15 15 { 16 PeidaInit();16 SophyaInit(); 17 17 r_8 v[10] = {1,2,3,4,5,6,7,8,9,10}; 18 18 {
Note:
See TracChangeset
for help on using the changeset viewer.