40 real(real64) :: energy =
m_zero
41 real(real64) :: boundaries =
m_zero
42 real(real64) :: e_energy =
m_zero
43 real(real64) :: b_energy =
m_zero
44 real(real64) :: energy_plane_waves =
m_zero
45 real(real64) :: e_energy_plane_waves =
m_zero
46 real(real64) :: b_energy_plane_waves =
m_zero
48 real(real64) :: energy_trans =
m_zero
49 real(real64) :: energy_long =
m_zero
50 real(real64) :: e_energy_trans =
m_zero
51 real(real64) :: b_energy_trans =
m_zero
52 real(real64) :: energy_incident_waves =
m_zero
57 subroutine energy_density_calc(mesh, st, rs_field, energy_dens, e_energy_dens, b_energy_dens, plane_waves_check, &
58 rs_field_plane_waves, energy_dens_plane_waves)
59 class(mesh_t),
intent(in) :: mesh
60 type(states_mxll_t),
intent(in) :: st
61 complex(real64),
intent(in) :: rs_field(:,:)
62 real(real64),
intent(inout) :: energy_dens(:)
63 real(real64),
intent(inout) :: e_energy_dens(:)
64 real(real64),
intent(inout) :: b_energy_dens(:)
65 logical,
optional,
intent(in) :: plane_waves_check
66 complex(real64),
optional,
intent(in) :: rs_field_plane_waves(:,:)
67 real(real64),
optional,
intent(inout) :: energy_dens_plane_waves(:)
79 e_energy_dens(ip) = e_energy_dens(ip) + real(rs_field(ip,idim))**2
80 b_energy_dens(ip) = b_energy_dens(ip) + aimag(rs_field(ip,idim))**2
82 energy_dens(ip) = e_energy_dens(ip) + b_energy_dens(ip)
85 if (
present(rs_field_plane_waves) .and.
present(energy_dens_plane_waves) .and. &
87 energy_dens_plane_waves(:) =
m_zero
90 energy_dens_plane_waves(ip) = energy_dens_plane_waves(ip) &
91 + real(conjg(rs_field_plane_waves(ip,idim)) * rs_field_plane_waves(ip,idim))
subroutine, public energy_density_calc(mesh, st, rs_field, energy_dens, e_energy_dens, b_energy_dens, plane_waves_check, rs_field_plane_waves, energy_dens_plane_waves)
real(real64), parameter, public m_zero
This module defines the meshes, which are used in Octopus.
subroutine, public profiling_out(label)
Increment out counter and sum up difference between entry and exit time.
subroutine, public profiling_in(label, exclude)
Increment in counter and save entry time.