Changeset 3572 in Sophya for trunk/SophyaLib/Samba


Ignore:
Timestamp:
Feb 7, 2009, 10:50:34 PM (17 years ago)
Author:
cmv
Message:

char* -> const char* pour regler les problemes de deprecated string const... + comparaison unsigned signed + suppression EVOL_PLANCK rz+cmv 07/02/2009

Location:
trunk/SophyaLib/Samba
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/Samba/Makefile

    r3405 r3572  
    1212 
    1313$(SOPHYAOBJP)alm.o: alm.cc $(SOPHYAINCP)sopnamsp.h alm.h \
    14   $(SOPHYAINCP)srandgen.h \
    15   $(SOPHYAINCP)machdefs.h \
     14  $(SOPHYAINCP)stsrand.h \
     15  $(SOPHYAINCP)machdefs.h \
     16  $(SOPHYAINCP)objfio.h \
     17  $(SOPHYAINCP)anydataobj.h \
     18  $(SOPHYAINCP)ppersist.h \
     19  $(SOPHYAINCP)pexceptions.h \
     20  $(SOPHYAINCP)gnumd5.h \
     21  $(SOPHYAINCP)ppfbinstream.h \
     22  $(SOPHYAINCP)rawstream.h \
     23  $(SOPHYAINCP)ppfnametag.h \
     24  $(SOPHYAINCP)ndatablock.h \
    1625  $(SOPHYAINCP)nbmath.h \
    1726  $(SOPHYAINCP)smathconst.h \
    1827  $(SOPHYAINCP)triangmtx.h \
    19   $(SOPHYAINCP)ndatablock.h \
    20   $(SOPHYAINCP)anydataobj.h \
    21   $(SOPHYAINCP)pexceptions.h \
    22   $(SOPHYAINCP)tvector.h \
    23   $(SOPHYAINCP)tmatrix.h \
    24   $(SOPHYAINCP)tarray.h \
    25   $(SOPHYAINCP)basarr.h \
    26   $(SOPHYAINCP)mutyv.h \
    27   $(SOPHYAINCP)timestamp.h \
    28   $(SOPHYAINCP)objfio.h \
    29   $(SOPHYAINCP)ppersist.h \
    30   $(SOPHYAINCP)gnumd5.h \
    31   $(SOPHYAINCP)ppfbinstream.h \
    32   $(SOPHYAINCP)rawstream.h \
    33   $(SOPHYAINCP)ppfnametag.h \
     28  $(SOPHYAINCP)tvector.h \
     29  $(SOPHYAINCP)tmatrix.h \
     30  $(SOPHYAINCP)tarray.h \
     31  $(SOPHYAINCP)basarr.h \
     32  $(SOPHYAINCP)mutyv.h \
     33  $(SOPHYAINCP)timestamp.h \
    3434  $(SOPHYAINCP)dvlist.h \
    3535  $(SOPHYAINCP)utilarr.h \
     
    9393  $(SOPHYAINCP)tmatrix_tsnl.h \
    9494  $(SOPHYAINCP)tvector_tsnl.h alm.h \
    95   $(SOPHYAINCP)srandgen.h \
     95  $(SOPHYAINCP)stsrand.h \
    9696  $(SOPHYAINCP)nbmath.h \
    9797  $(SOPHYAINCP)smathconst.h \
    9898  $(SOPHYAINCP)triangmtx.h \
     99  $(SOPHYAINCP)pexceptions.h \
    99100  $(SOPHYAINCP)nbconst.h
    100101        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  lambdaBuilder.cc
     
    198199  $(SOPHYAINCP)fftservintf.h \
    199200  $(SOPHYAINCP)fftpserver.h \
    200   $(SOPHYAINCP)fftservintf.h alm.h \
    201   $(SOPHYAINCP)srandgen.h \
     201  $(SOPHYAINCP)fftservintf.h \
     202  $(SOPHYAINCP)stsrand.h alm.h \
    202203  $(SOPHYAINCP)nbmath.h \
    203204  $(SOPHYAINCP)triangmtx.h \
    204205  $(SOPHYAINCP)tvector.h lambdaBuilder.h \
    205206  $(SOPHYAINCP)ndatablock.h \
     207  $(SOPHYAINCP)pexceptions.h \
    206208  $(SOPHYAINCP)timing.h
    207209        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  sphericaltransformserver.cc
  • trunk/SophyaLib/Samba/bruit.cc

    r3533 r3572  
    220220//--
    221221{
    222 int i,j;
    223222printf("OOFNoise::Print()  MemL=%d  Tau= %g \n", mMemL, mTau);
    224223printf("OOFNoise::Print() Vecteur de Dynamique / Etat : \n");
    225 for(i=0; i<mMemL-1; i+=2)
     224for(int i=0; i<mMemL-1; i+=2)
    226225  printf("%d:   D=%g  S=%g   | %d:  D=%g  S=%g \n", i,
    227226         mDyn[i], mState[i], i+1, mDyn[i], mState[i]);   
     
    311310//--
    312311{
    313 int i,j;
    314 printf("EXPNoise::Print()  MemL=%d  Tau= %g \n", mMemL, mTau);
     312printf("EXPNoise::Print()  MemL=%ld  Tau= %g \n", mMemL, mTau);
    315313printf("EXPNoise::Print() Vecteur de Dynamique / Etat : \n");
    316 for(i=0; i<mMemL-1; i+=2)
    317   printf("%d:   D=%g  S=%g   | %d:  D=%g  S=%g \n", i,
     314for(long int i=0; i<mMemL-1; i+=2)
     315  printf("%ld:   D=%g  S=%g   | %ld:  D=%g  S=%g \n", i,
    318316         mDyn[i], mState[i], i+1, mDyn[i], mState[i]);   
    319317
     
    608606//--
    609607{
    610 int i,j,rc=0;
     608int rc=0;
    611609printf("MemNoise::Print()  MemL=%d  Tau= %g \n", mMemL, mTau);
    612610printf("mNtirage= %d , mMemPos= %d , mMemNeg= %d \n",mNtirage,mMemPos,mMemNeg);
    613611// printf("MemNoise::Print() Vecteur de Dynamique / Etat : \n");
    614 /* for(i=0; i<mMemL-1; i+=2)
     612/* for(int i=0; i<mMemL-1; i+=2)
    615613  printf("%d:   D=%g  S=%g   | %d:  D=%g  S=%g \n", i,
    616614         mDyn[i], mState[i], i+1, mDyn[i], mState[i]);   
  • trunk/SophyaLib/Samba/lambdaBuilder.cc

    r3533 r3572  
    137137  register r_8 lam_0, lam_1, lam_2;
    138138
    139   int_4 l, m, k;
     139  int_4 m, k;
    140140
    141141  for (m=0; m<=mmax;m++)   {
     
    194194  register r_8 lam_0, lam_1, lam_2;
    195195 
    196   int_4 l, m, k;
     196  int_4 m, k;
    197197
    198198  for (m=0; m<=mmax;m++)  {
     
    235235  register r_8 lam_0, lam_1, lam_2;
    236236 
    237   int_4 l, m, k;
     237  int_4 m, k;
    238238
    239239  for (m=0; m<=mmax;m++)  {
  • trunk/SophyaLib/Samba/smakefile

    r3405 r3572  
    1212 
    1313$(SOPHYAOBJP)alm.o: alm.cc $(SOPHYAINCP)sopnamsp.h alm.h \
    14   $(SOPHYAINCP)srandgen.h \
    15   $(SOPHYAINCP)machdefs.h \
     14  $(SOPHYAINCP)stsrand.h \
     15  $(SOPHYAINCP)machdefs.h \
     16  $(SOPHYAINCP)objfio.h \
     17  $(SOPHYAINCP)anydataobj.h \
     18  $(SOPHYAINCP)ppersist.h \
     19  $(SOPHYAINCP)pexceptions.h \
     20  $(SOPHYAINCP)gnumd5.h \
     21  $(SOPHYAINCP)ppfbinstream.h \
     22  $(SOPHYAINCP)rawstream.h \
     23  $(SOPHYAINCP)ppfnametag.h \
     24  $(SOPHYAINCP)ndatablock.h \
    1625  $(SOPHYAINCP)nbmath.h \
    1726  $(SOPHYAINCP)smathconst.h \
    1827  $(SOPHYAINCP)triangmtx.h \
    19   $(SOPHYAINCP)ndatablock.h \
    20   $(SOPHYAINCP)anydataobj.h \
    21   $(SOPHYAINCP)pexceptions.h \
    22   $(SOPHYAINCP)tvector.h \
    23   $(SOPHYAINCP)tmatrix.h \
    24   $(SOPHYAINCP)tarray.h \
    25   $(SOPHYAINCP)basarr.h \
    26   $(SOPHYAINCP)mutyv.h \
    27   $(SOPHYAINCP)timestamp.h \
    28   $(SOPHYAINCP)objfio.h \
    29   $(SOPHYAINCP)ppersist.h \
    30   $(SOPHYAINCP)gnumd5.h \
    31   $(SOPHYAINCP)ppfbinstream.h \
    32   $(SOPHYAINCP)rawstream.h \
    33   $(SOPHYAINCP)ppfnametag.h \
     28  $(SOPHYAINCP)tvector.h \
     29  $(SOPHYAINCP)tmatrix.h \
     30  $(SOPHYAINCP)tarray.h \
     31  $(SOPHYAINCP)basarr.h \
     32  $(SOPHYAINCP)mutyv.h \
     33  $(SOPHYAINCP)timestamp.h \
    3434  $(SOPHYAINCP)dvlist.h \
    3535  $(SOPHYAINCP)utilarr.h \
     
    9393  $(SOPHYAINCP)tmatrix_tsnl.h \
    9494  $(SOPHYAINCP)tvector_tsnl.h alm.h \
    95   $(SOPHYAINCP)srandgen.h \
     95  $(SOPHYAINCP)stsrand.h \
    9696  $(SOPHYAINCP)nbmath.h \
    9797  $(SOPHYAINCP)smathconst.h \
    9898  $(SOPHYAINCP)triangmtx.h \
     99  $(SOPHYAINCP)pexceptions.h \
    99100  $(SOPHYAINCP)nbconst.h
    100101        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  lambdaBuilder.cc
     
    198199  $(SOPHYAINCP)fftservintf.h \
    199200  $(SOPHYAINCP)fftpserver.h \
    200   $(SOPHYAINCP)fftservintf.h alm.h \
    201   $(SOPHYAINCP)srandgen.h \
     201  $(SOPHYAINCP)fftservintf.h \
     202  $(SOPHYAINCP)stsrand.h alm.h \
    202203  $(SOPHYAINCP)nbmath.h \
    203204  $(SOPHYAINCP)triangmtx.h \
    204205  $(SOPHYAINCP)tvector.h lambdaBuilder.h \
    205206  $(SOPHYAINCP)ndatablock.h \
     207  $(SOPHYAINCP)pexceptions.h \
    206208  $(SOPHYAINCP)timing.h
    207209        $(CXXCOMPILE) $(CXXTEMPFLG) -o $@  sphericaltransformserver.cc
  • trunk/SophyaLib/Samba/sphericaltransformserver.cc

    r3510 r3572  
    211211  int_4 nlmax=alm.Lmax();
    212212  int_4 nmmax=nlmax;
    213   int_4 nsmax=0;
    214213  // le Resize est suppose mettre a zero
    215214  map.Resize(pixelSizeIndex);
     
    521520 
    522521  alm.ReSizeToLmax(nlmax);
    523   for (int_4 ith = 0; ith < map.NbThetaSlices(); ith++)
     522  for (uint_4 ith = 0; ith < map.NbThetaSlices(); ith++)
    524523    {
    525524      r_8 phi0;
     
    917916      throw SzMismatchError("SphericalTransformServer::DecomposeToAlm: map Q and map U have not same size ");
    918917    }
    919   for (int_4 ith = 0; ith < mapq.NbThetaSlices(); ith++)
     918  for (uint_4 ith = 0; ith < mapq.NbThetaSlices(); ith++)
    920919    {
    921920      r_8 phi0;
     
    11191118  Bm<complex<T> > b_m_theta_u(nmmax);
    11201119
    1121   for (int_4 ith = 0; ith < mapq.NbThetaSlices();ith++)
     1120  for (uint_4 ith = 0; ith < mapq.NbThetaSlices();ith++)
    11221121    {
    11231122      int_4 nph;
     
    12281227  Bm<complex<T> > b_m_theta_p(nmmax);
    12291228  Bm<complex<T> > b_m_theta_m(nmmax);
    1230   for (int_4 ith = 0; ith < mapq.NbThetaSlices();ith++)
     1229  for (uint_4 ith = 0; ith < mapq.NbThetaSlices();ith++)
    12311230    {
    12321231      int_4 nph;
Note: See TracChangeset for help on using the changeset viewer.