Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/ocean.c
| Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | static void compute_eigenstuff(struct OceanResult *ocr, float jxx, float jzz, float jxz) | ||||
| ocr->Eminus[1] = 0.0f; | ocr->Eminus[1] = 0.0f; | ||||
| ocr->Eminus[2] = qminus / b; | ocr->Eminus[2] = qminus / b; | ||||
| } | } | ||||
| /* | /* | ||||
| * instead of Complex.h | * instead of Complex.h | ||||
| * in fftw.h "fftw_complex" typedefed as double[2] | * in fftw.h "fftw_complex" typedefed as double[2] | ||||
| * below you can see functions are needed to work with such complex numbers. | * below you can see functions are needed to work with such complex numbers. | ||||
| * */ | */ | ||||
| static void init_complex(fftw_complex cmpl, float real, float image) | static void init_complex(fftw_complex cmpl, float real, float image) | ||||
| { | { | ||||
| cmpl[0] = real; | cmpl[0] = real; | ||||
| cmpl[1] = image; | cmpl[1] = image; | ||||
| } | } | ||||
| static void add_comlex_c(fftw_complex res, const fftw_complex cmpl1, const fftw_complex cmpl2) | static void add_comlex_c(fftw_complex res, const fftw_complex cmpl1, const fftw_complex cmpl2) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 1,561 Lines • Show Last 20 Lines | |||||