diff options
author | Ian Jauslin <ian.jauslin@rutgers.edu> | 2023-04-11 18:45:45 -0400 |
---|---|---|
committer | Ian Jauslin <ian.jauslin@rutgers.edu> | 2023-04-11 18:45:45 -0400 |
commit | d16c42d9f5a40b94406a859fa510bba96480d5e8 (patch) | |
tree | ceada7d5d31cf813aa8b9b8a7e33d10418b03f17 /src/navier-stokes.h | |
parent | bca217e69837e2ecb788511b786f4adc9a74769e (diff) |
Only store u[kx,ky] with kx>=0
Diffstat (limited to 'src/navier-stokes.h')
-rw-r--r-- | src/navier-stokes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/navier-stokes.h b/src/navier-stokes.h index 582212a..d100f44 100644 --- a/src/navier-stokes.h +++ b/src/navier-stokes.h @@ -52,6 +52,10 @@ double compute_enstrophy( _Complex double* u, int K1, int K2, double L); // get index for kx,ky in array of size S int klookup( int kx, int ky, int S1, int S2); +// get index for kx,ky in array of size K1,K2 in which only the terms with kx>=0 are stored +int klookup_sym( int kx, int ky, int K2); +// get u_{kx,ky} from a vector u in which only the values for kx>=0 are stored, assuming u_{-k}=u_k^* +_Complex double getval_sym( _Complex double* u, int kx, int ky, int K2); #endif |