Changeset 3615 in Sophya for trunk/FrEROS/AnaLC
- Timestamp:
- May 1, 2009, 1:34:31 PM (16 years ago)
- Location:
- trunk/FrEROS/AnaLC
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FrEROS/AnaLC/nbgene.cc
r3308 r3615 1 1 #include "machdefs.h" 2 #include "sopnamsp.h" // using SOPHYA namespace 2 3 #include <stdio.h> 3 4 #include <stdlib.h> … … 6 7 #include "fsvcache.h" 7 8 #include "nbtri.h" 8 #include "nbrandom.h"9 9 #include "nbmath.h" 10 10 #include "nbinteg.h" 11 11 #include "strutil.h" 12 12 #include "fsvst.h" 13 #include "srandgen.h" 13 14 #include "nbsread.h" 14 15 #include "nbgene.h" … … 68 69 seed_16v[1]=(unsigned short) mc.iseed2; 69 70 seed_16v[2]=(unsigned short) mc.iseed3; 70 Ini_Ranf(seed_16v,0);71 RandGen->SetSeed(seed_16v); 71 72 72 73 mc.NGene = mc.NPoints_ampli = mc.NPoints_ampli_tf = mc.Net_ampli_tf = 0; … … 238 239 printf("Nb d'etoiles amplifiees avec taille finie %d\n" 239 240 ,mc.Net_ampli_tf); 240 Get_Ranf(seed_16v,0);241 RandGen->SetSeed(seed_16v); 241 242 mc.iseed1 = (int_4)seed_16v[0]; 242 243 mc.iseed2 = (int_4)seed_16v[1]; -
trunk/FrEROS/AnaLC/nbsread.cc
r3308 r3615 1 1 /* lecture des fichiers de suivi: cmv 21/12/93 */ 2 2 #include "machdefs.h" 3 #include "sopnamsp.h" // using SOPHYA namespace 3 4 #include <stdio.h> 4 5 #include <stdlib.h> … … 7 8 #include <signal.h> 8 9 10 #include "sophyainit.h" 9 11 #include "fsvcache.h" 10 12 #include "nbtri.h" 11 #include "nbrandom.h"12 13 #include "nbmath.h" 13 14 #include "strutil.h" … … 106 107 if (narg < 2) usage(0); 107 108 if( !strcmp(arg[1],"-h") != 0 ) usage(1); 109 110 /*------------------------------------------*/ 111 /*-------- Initialisation Aleatoire --------*/ 112 /*------------------------------------------*/ 113 SophyaInit(); 114 RandGen = new DR48RandGen; 115 RandomGeneratorInterface::SetGlobalRandGenP(RandGen); 116 108 117 109 118 /*------------------------------------------*/ … … 417 426 418 427 printf("Nombre total d'etoiles lues %d\n",netoiles); 419 420 exit(0); 428 delete RandGen; 429 430 return(0); 421 431 } 422 432 -
trunk/FrEROS/AnaLC/nbsread.h
r3308 r3615 25 25 26 26 #include <stdio.h> 27 #include "randr48.h" 27 28 #include "fsvcache.h" 28 29 29 30 /* valeurs de control */ 31 EXTERN DR48RandGen * RandGen; 30 32 31 33 EXTERN double GRAND2_KILL; -
trunk/FrEROS/AnaLC/nbsreadu_squel.cc
r3308 r3615 4 4 */ 5 5 #include "machdefs.h" 6 #include "sopnamsp.h" // using SOPHYA namespace 6 7 #include <stdlib.h> 7 8 #include <math.h>
Note:
See TracChangeset
for help on using the changeset viewer.