Hi Daniel,
I got the code using
% darcs get
http://patch-tag.com/r/dfuster/gerris-fft-particles
installed fftw from
% wget
http://www.fftw.org/fftw-3.3.2.tar.gz
and compiled etc... (I didn't try to merge with stable)
When I run the attach example (slightly modified from yours):
% gerris2D -DMAXLEVEL=4 spectra2D.gfs
I get a power spectrum looking like:
% more spectra--1-0.dat
# Total energy = -nan
# 1:k 2:Ek
6.48587 1.26006e-06
9.1724 2.18055e-05
11.2339 2.9074e-05
12.9717 3.67857e-34
14.5028 0.238211
15.8871 inf
17.16 0
18.3448 3.72854e-09
19.4576 -nan
...
Not good, is it?
Also if I change 4 to 5 in OutputSpectra and OutputEnergySpectra (to
match the refinement level), I get:
% gerris2D -DMAXLEVEL=5 spectra2D.gfs
[popinet-laptop:07085] *** Process received signal ***
[popinet-laptop:07085] Signal: Segmentation fault (11)
[popinet-laptop:07085] Signal code: Address not mapped (1)
[popinet-laptop:07085] Failing at address: 0x88b9000
[popinet-laptop:07085] [ 0] [0xb77cf40c]
[popinet-laptop:07085] [ 1]
/home/popinet/local/lib/libgfs2D-1.3.so.2(gfs_event_do+0x52)
[0xb77702b2]
...
% gdb gerris2D core
Core was generated by `gerris2D spectra2D.gfs'.
Program terminated with signal 11, Segmentation fault.
#0 0xb7286096 in output_energy_spectra_event (event=0x880d2f0, sim=0x880a118)
at fft.c:1222
1222 Ek[index1] += (pow(d.out[index2][0],2) +
pow(d.out[index2][1],2));
...