Changeset 3290 in Sophya for trunk/Cosmo


Ignore:
Timestamp:
Aug 8, 2007, 6:36:26 PM (18 years ago)
Author:
cmv
Message:

add inline pour retourner |K_i| cmv 08/08/2007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosmo/SimLSS/genefluct3d.h

    r3289 r3290  
    5757  vector<long> GetNpix(void) {return N_;}
    5858  int_8 NPix(void) {return NRtot_;}
     59
     60  // Return |K_i| module relative to pixel indices
     61  inline r_8 Kx(long i) {long ii=(i>Nx_/2)? Nx_-i :i; return ii*Dkx_;}
     62  inline r_8 Ky(long j) {long jj=(j>Ny_/2)? Ny_-j :j; return jj*Dky_;}
     63  inline r_8 Kz(long l) {return l*Dkz_;}
    5964
    6065  vector<r_8> GetDinc(void) {return D_;}
Note: See TracChangeset for help on using the changeset viewer.