Octopus
test.F90 File Reference

Go to the source code of this file.

Modules

module  test_oct_m
 This module implements a unit-test like runmode for Octopus.
 

Data Types

type  test_oct_m::test_parameters_t
 

Functions/Subroutines

subroutine, public test_oct_m::test_run (namespace)
 
subroutine test_oct_m::test_hartree (param, namespace)
 
subroutine test_oct_m::test_helmholtz_decomposition (namespace)
 
subroutine test_oct_m::test_linear_solver (namespace)
 
subroutine set_der_aux (der)
 
subroutine laplacian_op (x, hx)
 Computes \( Hx = (-\Laplacian + shift) x \). More...
 
subroutine test_oct_m::test_projector (param, namespace)
 
subroutine test_oct_m::test_dft_u (param, namespace)
 
subroutine test_oct_m::test_hamiltonian (param, namespace)
 
subroutine test_oct_m::test_density_calc (param, namespace)
 
subroutine test_oct_m::test_boundaries (param, namespace)
 
subroutine test_oct_m::test_exponential (param, namespace)
 
subroutine test_oct_m::test_subspace_diagonalization (param, namespace)
 
subroutine test_oct_m::test_batch_ops (param, namespace)
 
subroutine test_oct_m::test_derivatives (param, namespace)
 
subroutine test_oct_m::test_orthogonalization (param, namespace)
 
subroutine test_oct_m::test_interpolation (param, namespace)
 
subroutine test_oct_m::test_ion_interaction (namespace)
 
subroutine test_oct_m::test_prints_info_batch (st, gr, psib, string)
 
subroutine test_oct_m::test_clock ()
 
subroutine write_clock (operation)
 
subroutine write_condition_result (condition, result)
 
subroutine test_oct_m::test_cgal ()
 
subroutine test_oct_m::test_dense_eigensolver ()
 
subroutine test_oct_m::test_batch_set_gaussian (psib, mesh)
 
subroutine test_oct_m::test_grid_interpolation ()
 
subroutine test_oct_m::test_iihash ()
 
subroutine test_oct_m::test_sihash ()
 
subroutine test_oct_m::test_sphash (namespace)
 
subroutine test_oct_m::test_regridding (namespace)
 
real(real64) function values (xx)
 
subroutine test_oct_m::test_vecpot_analytical (namespace)
 Here, analytical formulation for vector potential and B field are used. Ref: Sangita Sen and Erik I. Tellgren, J. Chem. Theory Comput. 17, 3 (2021). Analytical input for vector potential \( A_{r}= 1/3[ -xz, yz, x^2 - y^2] \) When bounded, above expression is multiplied with gaussian envelope \( (1/box_size)*exp^(-x^2-y^2-z^2)] \). More...
 
subroutine test_oct_m::multigrid_test_interpolation (mgrid, space)
 
subroutine test_oct_m::test_current_density (namespace)
 Here we test the different contributions to the total electronic current density. More...
 
subroutine test_oct_m::set_hydrogen_states (psib, mesh, namespace, alpha, a0)
 
complex(real64) function test_oct_m::lc_hydrogen_state (rr, alpha, a0)
 
real(real64) function test_oct_m::psi_1s (rr, a0)
 
real(real64) function test_oct_m::psi_2s (rr, a0)
 
real(real64) function test_oct_m::dr_psi_1s (rr, a0)
 
real(real64) function test_oct_m::dr_psi_2s (rr, a0)
 

Variables

real(real64) test_oct_m::shift_aux
 
type(derivatives_t), pointer test_oct_m::der_aux => null()
 
type(preconditioner_t) test_oct_m::prec_aux
 

Function/Subroutine Documentation

◆ set_der_aux()

subroutine test_linear_solver::set_der_aux ( type(derivatives_t), intent(in), target  der)

Definition at line 524 of file test.F90.

◆ laplacian_op()

subroutine test_linear_solver::laplacian_op ( real(real64), dimension(:), intent(in), contiguous  x,
real(real64), dimension(:), intent(out), contiguous  hx 
)

Computes \( Hx = (-\Laplacian + shift) x \).

Definition at line 533 of file test.F90.

◆ write_clock()

subroutine test_clock::write_clock ( character(len=*), intent(in)  operation)

Definition at line 1429 of file test.F90.

◆ write_condition_result()

subroutine test_clock::write_condition_result ( character(len=*), intent(in)  condition,
logical, intent(in)  result 
)

Definition at line 1436 of file test.F90.

◆ values()

real(real64) function test_regridding::values ( real(real64), dimension(:), intent(in)  xx)

Definition at line 1866 of file test.F90.