Octopus
conductivity.F90
Go to the documentation of this file.
1!! Copyright (C) 2015 X. Andrade
2!!
3!! This program is free software; you can redistribute it and/or modify
4!! it under the terms of the GNU General Public License as published by
5!! the Free Software Foundation; either version 2, or (at your option)
6!! any later version.
7!!
8!! This program is distributed in the hope that it will be useful,
9!! but WITHOUT ANY WARRANTY; without even the implied warranty of
10!! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11!! GNU General Public License for more details.
12!!
13!! You should have received a copy of the GNU General Public License
14!! along with this program; if not, write to the Free Software
15!! Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16!! 02110-1301, USA.
17!!
18
19#include "global.h"
20
22 use batch_oct_m
24 use global_oct_m
25 use grid_oct_m
26 use io_oct_m
27 use ions_oct_m
28 use, intrinsic :: iso_fortran_env
29 use math_oct_m
31 use mpi_oct_m
33 use parser_oct_m
35 use space_oct_m
38 use smear_oct_m
39 use unit_oct_m
41
42 implicit none
43
44 private
45 public :: conductivity_main
46
47contains
48
49 subroutine conductivity_main() bind(c)
50 integer :: iunit, ierr, ii, jj, iter, read_iter, ntime, nvel, ivel
51 integer :: istart, iend, energy_steps, out_file
52 real(real64), allocatable :: time(:), velocities(:, :)
53 real(real64), allocatable :: total_current(:, :), ftcurr(:, :, :), curr(:, :)
54 real(real64), allocatable :: heat_current(:,:), ftheatcurr(:,:,:), heatcurr(:,:)
55 complex(real64), allocatable :: invdielectric(:, :)
56 type(ions_t), pointer :: ions
57 type(space_t) :: space
58 type(spectrum_t) :: spectrum
59 type(block_t) :: blk
60 type(batch_t) :: currb, ftcurrb, heatcurrb, ftheatcurrb
61 real(real64) :: ww, curtime, deltat, v0
62 character(len=MAX_PATH_LEN) :: ref_filename
63 integer :: ref_file, time_steps_ref, kk
64 real(real64), allocatable :: velcm(:), vel0(:), current(:), current_ref(:, :)
65 real(real64) :: dt_ref, tt, start_time
66 integer :: ifreq, max_freq
67 integer :: skip, smearing
68 logical :: from_forces
69 character(len=120) :: header
70 real(real64) :: excess_charge, qtot, javerage
71
72 ! Initialize stuff
74
75 call getopt_init(ierr)
76 call getopt_end()
77
78 call parser_init()
79
80 call messages_init()
81
82 call messages_experimental('oct-conductivity')
83
84 call io_init()
86
88
90
91 call spectrum_init(spectrum, global_namespace, default_energy_step = 0.0001_real64, default_max_energy = m_one)
92
93 !%Variable ConductivitySpectrumTimeStepFactor
94 !%Type integer
95 !%Default 1
96 !%Section Utilities::oct-conductivity_spectrum
97 !%Description
98 !% In the calculation of the conductivity, it is not necessary
99 !% to read the velocity at every time step. This variable controls
100 !% the integer factor between the simulation time step and the
101 !% time step used to calculate the conductivity.
102 !%End
103
104 call messages_obsolete_variable(global_namespace, 'PropagationSpectrumTimeStepFactor', 'ConductivitySpectrumTimeStepFactor')
105 call parse_variable(global_namespace, 'ConductivitySpectrumTimeStepFactor', 1, skip)
106 if (skip <= 0) call messages_input_error(global_namespace, 'ConductivitySpectrumTimeStepFactor')
107
108 !%Variable ConductivityFromForces
109 !%Type logical
110 !%Default no
111 !%Section Utilities::oct-conductivity_spectrum
112 !%Description
113 !% (Experimental) If enabled, Octopus will attempt to calculate the conductivity from the forces instead of the current.
114 !%End
115 call parse_variable(global_namespace, 'ConductivityFromForces', .false., from_forces)
116 if (from_forces) call messages_experimental('ConductivityFromForces')
117
118 max_freq = spectrum_nenergy_steps(spectrum)
119
120 if (spectrum%end_time < m_zero) spectrum%end_time = huge(spectrum%end_time)
123
124 !We need the total charge
125 call parse_variable(global_namespace, 'ExcessCharge', m_zero, excess_charge)
126 qtot = -(ions%val_charge() + excess_charge)
127
128 if (from_forces) then
129
130 call messages_write('Info: Reading coordinates from td.general/coordinates')
131 call messages_info()
132
133 ! Opens the coordinates files.
134 iunit = io_open('td.general/coordinates', global_namespace, action='read')
135
136 call io_skip_header(iunit)
137 call spectrum_count_time_steps(global_namespace, iunit, ntime, deltat)
138 call io_close(iunit)
139
140 nvel = ions%natoms*ions%space%dim
141
142 safe_allocate(time(1:ntime))
143 safe_allocate(velocities(1:nvel, 1:ntime))
144
145 ! Opens the coordinates files.
146 iunit = io_open('td.general/coordinates', global_namespace, action='read', status='old', die=.false.)
147
148 call io_skip_header(iunit)
149
150 ntime = 1
151 iter = 1
152
153 do
154 read(unit = iunit, iostat = ierr, fmt = *) read_iter, curtime, &
155 ((ions%pos(jj, ii), jj = 1, 3), ii = 1, ions%natoms), &
156 ((ions%vel(jj, ii), jj = 1, 3), ii = 1, ions%natoms)
157
158 curtime = units_to_atomic(units_out%time, curtime)
159
160 if (ierr /= 0 .or. curtime >= spectrum%end_time) then
161 iter = iter - 1 ! last iteration is not valid
162 ntime = ntime - 1
163 exit
164 end if
165
166 assert(iter == read_iter + 1)
167
168 if (curtime >= spectrum%start_time .and. mod(iter, skip) == 0) then
169
170 time(ntime) = curtime
171 ivel = 1
172 do ii = 1, ions%natoms
173 do jj = 1, ions%space%dim
174 velocities(ivel, ntime) = units_to_atomic(units_out%velocity, ions%vel(jj, ii))
175 ivel = ivel + 1
176 end do
177 end do
178
179 ntime = ntime + 1
180 end if
181
182 iter = iter + 1 !counts number of timesteps (with time larger than zero up to SpecEndTime)
183 end do
184
185 call io_close(iunit)
186
187 call messages_write(' done.')
188 call messages_info()
189
190 else !from_forces
191
192 call messages_write('Info: Reading total current from td.general/total_current')
193 call messages_info()
194
195 iunit = io_open('td.general/total_current', global_namespace, action='read', die=.false.)
196
197 if (iunit /= -1) then
198
199 call io_skip_header(iunit)
200 call spectrum_count_time_steps(global_namespace, iunit, ntime, deltat)
201 deltat = units_to_atomic(units_out%time, deltat)
202 ntime = ntime + 1
203
204 call io_skip_header(iunit)
205
206 safe_allocate(total_current(1:space%dim, 1:ntime))
207 safe_allocate(heat_current(1:space%dim, 1:ntime))
208 safe_allocate(time(1:ntime))
209
210 do iter = 1, ntime
211 read(iunit, *) read_iter, time(iter), (total_current(ii, iter), ii = 1, space%dim)
212 time(iter) = units_to_atomic(units_out%time, time(iter))
213 do ii = 1, space%dim
214 total_current(ii, iter) = units_to_atomic(units_out%length/units_out%time, total_current(ii, iter))
215 end do
216 end do
217
218 call io_close(iunit)
219
220 if (parse_is_defined(global_namespace, 'TransientAbsorptionReference')) then
221 call parse_variable(global_namespace, 'TransientAbsorptionReference', '.', ref_filename)
222 ref_file = io_open(trim(ref_filename)//'/total_current', action='read', status='old')
223 call io_skip_header(ref_file)
224 call spectrum_count_time_steps(global_namespace, ref_file, time_steps_ref, dt_ref)
225 dt_ref = units_to_atomic(units_out%time, dt_ref)
226 if (time_steps_ref < ntime) then
227 message(1) = "The reference calculation does not contain enought time steps"
228 call messages_fatal(1)
229 end if
230
231 if (.not. is_close(dt_ref, time(2)-time(1))) then
232 message(1) = "The time step of the reference calculation is different from the current calculation"
233 call messages_fatal(1)
234 end if
235
236 !We remove the reference
237 time_steps_ref = time_steps_ref + 1
238 safe_allocate(current_ref(1:space%dim, 1:time_steps_ref))
239 call io_skip_header(ref_file)
240 do ii = 1, time_steps_ref
241 read(ref_file, *) jj, tt, (current_ref(kk, ii), kk = 1, space%dim)
242 end do
243 call io_close(ref_file)
244 do iter = 1, ntime
245 do kk = 1, space%dim
246 total_current(kk, iter) = total_current(kk, iter) - current_ref(kk, iter)
247 end do
248 end do
249 safe_deallocate_a(current_ref)
250
251 start_time = spectrum%start_time
252 call parse_variable(global_namespace, 'GaugeFieldDelay', start_time, spectrum%start_time)
253 end if
254
255 !We substract the average value, which can cause a spurious divergence at \omega=0
256 !Only valid for non-metallic systems
257 call parse_variable(global_namespace, 'SmearingFunction', smear_semiconductor, smearing)
258 if(smearing == smear_semiconductor) then
259 do kk = 1, space%dim
260 javerage = m_zero
261 do iter = 1, ntime
262 javerage = javerage + total_current(kk, iter)
263 end do
264 javerage = javerage/ntime
265 do iter = 1, ntime
266 total_current(kk, iter) = total_current(kk, iter) - javerage
267 end do
268 end do
269 end if
270
271 else
272
273 call messages_write("Cannot find the 'td.general/total_current' file.")
274 call messages_new_line()
275 call messages_write("Optical conductivity cannot be calculated.")
276 call messages_warning()
277
278 ntime = 1
279 safe_allocate(total_current(1:space%dim, 1:ntime))
280 safe_allocate(heat_current(1:space%dim, 1:ntime))
281 safe_allocate(time(1:ntime))
282
283 total_current(1:space%dim, 1:ntime) = m_zero
284
285 end if
286
287 iunit = io_open('td.general/total_heat_current', global_namespace, action='read', status='old', die=.false.)
288
289 if (iunit /= -1) then
290
291 if (ntime == 1) then
292 call io_skip_header(iunit)
293 call spectrum_count_time_steps(global_namespace, iunit, ntime, deltat)
294 ntime = ntime + 1
295 end if
296
297 call io_skip_header(iunit)
298
299 do iter = 1, ntime
300 read(iunit, *) read_iter, time(iter), (heat_current(ii, iter), ii = 1, space%dim)
301 end do
302
303 call io_close(iunit)
304
305 else
306
307 call messages_write("Cannot find the 'td.general/heat_current' file.")
308 call messages_new_line()
309 call messages_write("Thermal conductivity cannot be calculated.")
310 call messages_new_line()
311 call messages_write("Check ConductivityFromForces to possibly compute it from forces.")
312 call messages_warning()
313
314 heat_current(1:space%dim, 1:ntime) = m_zero
315
316 end if
317 end if
318
319
320 safe_allocate(curr(ntime, 1:space%dim))
321 safe_allocate(heatcurr(ntime, 1:space%dim))
322 safe_allocate(vel0(1:space%dim))
323 vel0 = m_zero
324 safe_allocate(velcm(1:space%dim))
325 safe_allocate(current(1:space%dim))
326
327 if (from_forces) iunit = io_open('td.general/current_from_forces', global_namespace, action='write')
328
329 do iter = 1, ntime
330
331 if (from_forces) then
332 if (iter == 1) then
333 vel0 = m_zero
334 ivel = 1
335 do ii = 1, ions%natoms
336 do jj = 1, space%dim
337 vel0(jj) = vel0(jj) + velocities(ivel, iter)/real(ions%natoms, real64)
338 ivel = ivel + 1
339 end do
340 end do
341 end if
342
343 velcm = m_zero
344 current = m_zero
345
346 ivel = 1
347 do ii = 1, ions%natoms
348 do jj = 1, space%dim
349 velcm(jj) = velcm(jj) + velocities(ivel, iter)/real(ions%natoms, real64)
350 current(jj) = current(jj) + &
351 ions%mass(ii)/ions%latt%rcell_volume*(velocities(ivel, iter) - vel0(jj))
352 ivel = ivel + 1
353 end do
354 end do
355
356 curr(iter, 1:space%dim) = vel0(1:space%dim)*qtot/ions%latt%rcell_volume + current(1:space%dim)
357
358 else
359 curr(iter, 1:space%dim) = total_current(1:space%dim, iter)/ions%latt%rcell_volume
360 heatcurr(iter,1:space%dim) = heat_current(1:space%dim, iter)/ions%latt%rcell_volume
361 end if
362
363 if (from_forces) write(iunit,*) iter, iter*deltat, curr(iter, 1:space%dim)
364
365 end do
366
367 safe_deallocate_a(velcm)
368 safe_deallocate_a(current)
369
370
371 if (from_forces) call io_close(iunit)
372
373 ! Find out the iteration numbers corresponding to the time limits.
374 call spectrum_fix_time_limits(spectrum, ntime, deltat, istart, iend, max_freq)
375 istart = max(1, istart)
376 energy_steps = spectrum_nenergy_steps(spectrum)
377
378 safe_allocate(ftcurr(1:energy_steps, 1:space%dim, 1:2))
379
380 call batch_init(currb, 1, 1, space%dim, curr)
381 call spectrum_signal_damp(spectrum%damp, spectrum%damp_factor, istart, iend, spectrum%start_time, deltat, currb)
382
383 call batch_init(ftcurrb, 1, 1, space%dim, ftcurr(:, :, 1))
384 call spectrum_fourier_transform(spectrum%method, spectrum_transform_cos, spectrum%noise, &
385 istart, iend, spectrum%start_time, deltat, currb, spectrum%min_energy, spectrum%max_energy, &
386 spectrum%energy_step, ftcurrb)
387 call ftcurrb%end()
388
389 call batch_init(ftcurrb, 1, 1, space%dim, ftcurr(:, :, 2))
390 call spectrum_fourier_transform(spectrum%method, spectrum_transform_sin, spectrum%noise, &
391 istart, iend, spectrum%start_time, deltat, currb, spectrum%min_energy, spectrum%max_energy, &
392 spectrum%energy_step, ftcurrb)
393
394 call ftcurrb%end()
395 call currb%end()
396
397
398 !and print the spectrum
399 iunit = io_open('td.general/conductivity', global_namespace, action='write')
400
401
402 write(unit = iunit, iostat = ierr, fmt = '(a)') &
403 '###########################################################################################################################'
404 write(unit = iunit, iostat = ierr, fmt = '(8a)') '# HEADER'
405 write(unit = iunit, iostat = ierr, fmt = '(a,a,a)') &
406 '# Energy [', trim(units_abbrev(units_out%energy)), '] Conductivity [a.u.] ReX ImX ReY ImY ReZ ImZ'
407 write(unit = iunit, iostat = ierr, fmt = '(a)') &
408 '###########################################################################################################################'
409
410 v0 = norm2(vel0(1:space%dim))
411 if (.not. from_forces .or. v0 < epsilon(v0)) v0 = m_one
412
413 if (.not. from_forces .and. parse_is_defined(global_namespace, 'GaugeVectorField')) then
414 if (parse_block(global_namespace, 'GaugeVectorField', blk) == 0) then
415 do ii = 1, space%dim
416 call parse_block_float(blk, 0, ii - 1, vel0(ii))
417 end do
418 call parse_block_end(blk)
419 end if
420 vel0(1:space%dim) = vel0(1:space%dim) / p_c
421 v0 = norm2(vel0(1:space%dim))
422 end if
423
424
425 do ifreq = 1, energy_steps
426 ww = spectrum%energy_step*(ifreq - 1) + spectrum%min_energy
427 write(unit = iunit, iostat = ierr, fmt = '(7e20.10)') units_from_atomic(units_out%energy, ww), &
428 transpose(ftcurr(ifreq, 1:space%dim, 1:2)/v0)
429 end do
430
431 call io_close(iunit)
432
433
434 !Compute the inverse dielectric function from the conductivity
435 ! We have \chi = -i \sigma / \omega
436 ! and \epsilon^-1 = 1 + 4 \pi \chi
437 safe_allocate(invdielectric(1:space%dim, 1:energy_steps))
438 do ifreq = 1, energy_steps
439 ww = max((ifreq-1)*spectrum%energy_step + spectrum%min_energy, m_epsilon)
440
441 invdielectric(1:space%dim, ifreq) = (vel0(1:space%dim) + m_four * m_pi * &
442 cmplx(ftcurr(ifreq, 1:space%dim, 2),-ftcurr(ifreq, 1:space%dim, 1), real64) / ww) / v0
443
444 end do
445
446 out_file = io_open('td.general/inverse_dielectric_function_from_current', global_namespace, action='write')
447 select case (space%dim)
448 case (1)
449 write(header, '(3a15)') '# energy', 'Re x', 'Im x'
450 case (2)
451 write(header, '(5a15)') '# energy', 'Re x', 'Im x', 'Re y', 'Im y'
452 case (3)
453 write(header, '(7a15)') '# energy', 'Re x', 'Im x', 'Re y', 'Im y', 'Re z', 'Im z'
454 end select
455 write(out_file,'(a)') trim(header)
456 do ifreq = 1, energy_steps
457 ww = (ifreq-1)*spectrum%energy_step + spectrum%min_energy
458 select case (space%dim)
459 case (1)
460 write(out_file, '(3e15.6)') ww, &
461 real(invdielectric(1, ifreq), real64), aimag(invdielectric(1, ifreq))
462 case (2)
463 write(out_file, '(5e15.6)') ww, &
464 real(invdielectric(1, ifreq), real64), aimag(invdielectric(1, ifreq)), &
465 real(invdielectric(2, ifreq), real64), aimag(invdielectric(2, ifreq))
466 case (3)
467 write(out_file, '(7e15.6)') ww, &
468 real(invdielectric(1, ifreq), real64), aimag(invdielectric(1, ifreq)), &
469 real(invdielectric(2, ifreq), real64), aimag(invdielectric(2, ifreq)), &
470 real(invdielectric(3, ifreq), real64), aimag(invdielectric(3, ifreq))
471 end select
472 end do
473 call io_close(out_file)
474
475 safe_deallocate_a(ftcurr)
476 safe_deallocate_a(invdielectric)
477
478
479!!!!!!!!!!!!!!!!!!!!!
480 if (from_forces) then
481 safe_allocate(ftheatcurr(1:energy_steps, 1:space%dim, 1:2))
482
483 ftheatcurr = m_one
484
485 call batch_init(heatcurrb, 1, 1, space%dim, heatcurr)
486
487 call spectrum_signal_damp(spectrum%damp, spectrum%damp_factor, 1, ntime, m_zero, deltat, heatcurrb)
488
489 call batch_init(ftheatcurrb, 1, 1, space%dim, ftheatcurr(:, :, 1))
490 call spectrum_fourier_transform(spectrum%method, spectrum_transform_cos, spectrum%noise, &
491 1, ntime, m_zero, deltat, heatcurrb, spectrum%min_energy, spectrum%max_energy, spectrum%energy_step, ftheatcurrb)
492 call ftheatcurrb%end()
493
494 call batch_init(ftheatcurrb, 1, 1, space%dim, ftheatcurr(:, :, 2))
495 call spectrum_fourier_transform(spectrum%method, spectrum_transform_sin, spectrum%noise, &
496 1, ntime, m_zero, deltat, heatcurrb, spectrum%min_energy, spectrum%max_energy, spectrum%energy_step, ftheatcurrb)
497 call ftheatcurrb%end()
498
499 call heatcurrb%end()
500
501
502 !and print the spectrum
503 iunit = io_open('td.general/heat_conductivity', global_namespace, action='write')
504
505
506 write(unit = iunit, iostat = ierr, fmt = '(a)') &
507 '###########################################################################################################################'
508 write(unit = iunit, iostat = ierr, fmt = '(8a)') '# HEADER'
509 write(unit = iunit, iostat = ierr, fmt = '(a,a,a)') &
510 '# Energy [', trim(units_abbrev(units_out%energy)), '] Conductivity [a.u.] ReX ImX ReY ImY ReZ ImZ'
511 write(unit = iunit, iostat = ierr, fmt = '(a)') &
512 '###########################################################################################################################'
513
514 v0 = norm2(vel0(1:space%dim))
515 if (.not. from_forces .or. v0 < epsilon(v0)) v0 = m_one
516
517 do ifreq = 1, energy_steps
518 ww = spectrum%energy_step*(ifreq - 1) + spectrum%min_energy
519 write(unit = iunit, iostat = ierr, fmt = '(7e20.10)') units_from_atomic(units_out%energy, ww), &
520 transpose(ftheatcurr(ifreq, 1:space%dim, 1:2)/v0)
521 !print *, ifreq, ftheatcurr(ifreq, 1:3, 1:2)
522 end do
523
524 call io_close(iunit)
525
526 safe_deallocate_a(ftheatcurr)
527 end if
528!!!!!!!!!!!!!!!!!!!!!!!!!!!
529
530
531 safe_deallocate_a(vel0)
532 safe_deallocate_p(ions)
533
534 safe_deallocate_a(total_current)
535 safe_deallocate_a(heat_current)
536 safe_deallocate_a(curr)
537 safe_deallocate_a(heatcurr)
538 safe_deallocate_a(time)
539
541 call io_end()
542 call messages_end()
543
544 call parser_end()
545 call global_end()
546 end subroutine conductivity_main
548
549!! Local Variables:
550!! mode: f90
551!! coding: utf-8
552!! End:
initialize a batch with existing memory
Definition: batch.F90:278
This module implements batches of mesh functions.
Definition: batch.F90:112
This module provides an interface to the getopt C library, so that the command line arguments can be ...
subroutine, public getopt_init(ierr)
Initializes the getopt machinery. Must be called before attempting to parse the options....
subroutine, public getopt_end
subroutine, public conductivity_main()
subroutine, public global_end()
Finalise parser varinfo file, and MPI.
Definition: global.F90:500
real(real64), parameter, public m_zero
Definition: global.F90:173
real(real64), parameter, public m_four
Definition: global.F90:177
real(real64), parameter, public m_pi
some mathematical constants
Definition: global.F90:171
type(mpi_comm), parameter, public serial_dummy_comm
Alias MPI_COMM_UNDEFINED for the specific use case of initialising Octopus utilities with no MPI supp...
Definition: global.F90:268
subroutine, public init_octopus_globals(comm)
Initialise Octopus-specific global constants and files. This routine performs no initialisation calls...
Definition: global.F90:438
real(real64), parameter, public m_epsilon
Definition: global.F90:189
real(real64), parameter, public p_c
Electron gyromagnetic ratio, see Phys. Rev. Lett. 130, 071801 (2023)
Definition: global.F90:215
real(real64), parameter, public m_one
Definition: global.F90:174
This module implements the underlying real-space grid.
Definition: grid.F90:96
Definition: io.F90:93
subroutine, public io_init(defaults)
If the argument defaults is present and set to true, then the routine will not try to read anything f...
Definition: io.F90:142
subroutine, public io_close(iunit, grp)
Definition: io.F90:444
subroutine, public io_skip_header(iunit)
Definition: io.F90:623
subroutine, public io_end()
Definition: io.F90:248
integer function, public io_open(file, namespace, action, status, form, position, die, recl, grp)
Definition: io.F90:379
This module is intended to contain "only mathematical" functions and procedures.
Definition: math.F90:94
subroutine, public messages_end()
Definition: messages.F90:249
subroutine, public messages_init(output_dir)
Definition: messages.F90:196
subroutine, public messages_warning(no_lines, all_nodes, namespace)
Definition: messages.F90:501
subroutine, public messages_obsolete_variable(namespace, name, rep)
Definition: messages.F90:980
subroutine, public messages_new_line()
Definition: messages.F90:1069
character(len=256), dimension(max_lines), public message
to be output by fatal, warning
Definition: messages.F90:138
subroutine, public messages_fatal(no_lines, only_root_writes, namespace)
Definition: messages.F90:386
subroutine, public messages_input_error(namespace, var, details, row, column)
Definition: messages.F90:671
subroutine, public messages_experimental(name, namespace)
Definition: messages.F90:1020
subroutine, public messages_info(no_lines, iunit, debug_only, stress, all_nodes, namespace)
Definition: messages.F90:570
type(mpi_grp_t), public mpi_world
Definition: mpi.F90:317
type(namespace_t), public global_namespace
Definition: namespace.F90:112
logical function, public parse_is_defined(namespace, name)
Definition: parser.F90:440
subroutine, public parser_init()
Initialise the Octopus parser.
Definition: parser.F90:387
subroutine, public parser_end()
End the Octopus parser.
Definition: parser.F90:419
integer function, public parse_block(namespace, name, blk, check_varinfo_)
Definition: parser.F90:600
/* To use the profiling module, call profiling_in and profiling_out with the label of the region as a...
Definition: profiling.F90:122
subroutine, public profiling_end(namespace)
Definition: profiling.F90:455
subroutine, public profiling_init(namespace)
Create profiling subdirectory.
Definition: profiling.F90:264
integer, parameter, public smear_semiconductor
Definition: smear.F90:153
subroutine, public spectrum_fix_time_limits(spectrum, time_steps, dt, istart, iend, ntiter)
Definition: spectrum.F90:2515
subroutine, public spectrum_fourier_transform(method, transform, noise, time_start, time_end, t0, time_step, time_function, energy_start, energy_end, energy_step, energy_function)
Computes the sine, cosine, (or "exponential") Fourier transform of the real function given in the tim...
Definition: spectrum.F90:2645
subroutine, public spectrum_init(spectrum, namespace, default_energy_step, default_max_energy)
Definition: spectrum.F90:197
subroutine, public spectrum_signal_damp(damp_type, damp_factor, time_start, time_end, t0, time_step, time_function)
Definition: spectrum.F90:2559
integer, parameter, public spectrum_transform_cos
Definition: spectrum.F90:150
integer, parameter, public spectrum_transform_sin
Definition: spectrum.F90:150
subroutine, public spectrum_count_time_steps(namespace, iunit, time_steps, dt)
Definition: spectrum.F90:2380
pure integer function, public spectrum_nenergy_steps(spectrum)
Definition: spectrum.F90:2956
brief This module defines the class unit_t which is used by the unit_systems_oct_m module.
Definition: unit.F90:111
character(len=20) pure function, public units_abbrev(this)
Definition: unit.F90:202
This module defines the unit system, used for input and output.
type(unit_system_t), public units_out
subroutine, public unit_system_init(namespace)