21write(0,*) 'ERROR: can not get analytical fourier transform for these laser fields. Stopping!'
22 stop 733
23 end if
24
25allocate(lf_ft(0:n_laserfields))
26
27! determine energy resolution by estimating fourier bandwidth
28 de = 1.d0
29 emax = 0.d0
30do i_field = 1, n_laserfields
31 de = min(de,twopi/(100*all_laserfields(i_field)%duration))
32! go up to twice the maximum frequency - for really broadband pulses, this might not actually be enough
33 emax = max(emax,all_laserfields(i_field)%omega*2.01) ! use 2.01 here so we do not get omega==lf%omega as an argument, where some of the routines have problems