laserfields
Fortran95 library to describe time-dependent laser pulses
Loading...
Searching...
No Matches
printlaserfourier.f90
Go to the documentation of this file.
1! Copyright (c) 2012, Johannes Feist
2! licensed under the MIT open source license, see LICENSE file
3
6 implicit none
7 integer :: i_field
8 character(len=200) :: parfile
9
10 parfile = 'laserfields.in'
11 if (command_argument_count() >= 1) then
12 call get_command_argument(1,parfile)
13 end if
14
15 call laserfields_read_parameters(trim(parfile))
16
17 if (.not.laserfields_can_get_fourier()) then
18 write(0,*) 'error: can not get analytical fourier transform for these laser fields. stopping!'
19 stop 733
20 end if
21
22 write(6,'(3a)') 'ffall(w) = ',trim(get_el_fourier_transform_string()),';'
23 do i_field = 1, n_laserfields
24 write(6,'(a,i2.2,3a)') 'ff_',i_field,'(w) = ',trim(get_el_fourier_transform_string(all_laserfields(i_field))),';'
25 end do
26
27end program printlaserfourier
program printlaserfourier