Changeset 3783 in Sophya for trunk/Cosmo/RadioBeam/specpk.cc


Ignore:
Timestamp:
Jun 16, 2010, 12:23:38 AM (15 years ago)
Author:
ansari
Message:

Ajout des programmes calcpk.cc calcpk2.cc syncube.cc tjyk.cc (voir fichier README) Reza 15/06/2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosmo/RadioBeam/specpk.cc

    r3769 r3783  
    225225  double kxx, kyy, kzz;
    226226  // sa_size_t is large integer type 
    227   for(sa_size_t kz=0; kz<fourAmp.SizeZ(); kz++) {
     227  // We ignore 0th term in all frequency directions ...
     228  for(sa_size_t kz=1; kz<fourAmp.SizeZ(); kz++) {
    228229    kzz =  (kz > fourAmp.SizeZ()/2) ? (double)(fourAmp.SizeZ()-kz)*dkz_ : (double)kz*dkz_;
    229     for(sa_size_t ky=0; ky<fourAmp.SizeY(); ky++) {
     230    for(sa_size_t ky=1; ky<fourAmp.SizeY(); ky++) {
    230231      kyy =  (ky > fourAmp.SizeY()/2) ? (double)(fourAmp.SizeY()-ky)*dky_ : (double)ky*dky_;
    231       for(sa_size_t kx=0; kx<fourAmp.SizeX(); kx++) {
     232      for(sa_size_t kx=1; kx<fourAmp.SizeX(); kx++) {  // ignore the 0th coefficient (constant term)
    232233        double kxx=(double)kx*dkx_;
    233234        complex<TF> za = fourAmp(kx, ky, kz);
Note: See TracChangeset for help on using the changeset viewer.