Multidip 1.0
Multi-photon matrix elements
Loading...
Searching...
No Matches
multidip_tests Module Reference

MULTIDIP unit tests. More...

Functions/Subroutines

subroutine run_tests
 Numerical unit tests.
subroutine test_sph
 Test spherical harmonics.
subroutine test_permutations
 Permutations unit tests.
subroutine test_coul
 Negative-energy Coulomb function tests.
subroutine test_levin
 Tests of the Levin quadrature routine.
subroutine test_1p_eint
 One-photon exponential integral unit tests.
subroutine test_1p_cint
 One-photon Coulomb integral unit tests.
subroutine test_1p_gint
 One-photon Green integral unit tests.
subroutine test_2p_cint
 Two-photon Coulomb integral unit tests.
subroutine test_2p_gint
 Two-photon Green integral unit tests.
subroutine test_ang_dist
 Angular algebra unit tests.

Detailed Description

MULTIDIP unit tests.

Author
J Benda
Date
2020

This module contains a few sanity unit self-tests that can be executed using "multidip --test".

Function/Subroutine Documentation

◆ run_tests()

subroutine multidip_tests::run_tests

Numerical unit tests.

Author
J Benda
Date
2020

Run the low-level computational routines and compare their outputs to reference results.

Definition at line 42 of file multidip_tests.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_1p_cint()

subroutine multidip_tests::test_1p_cint

One-photon Coulomb integral unit tests.

Author
J Benda
Date
2020 - 2023

Tests the function nested_coul_integ for several arguments.

Definition at line 346 of file multidip_tests.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_1p_eint()

subroutine multidip_tests::test_1p_eint

One-photon exponential integral unit tests.

Author
J Benda
Date
2020

Tests the function nested_exp_integ for several arguments.

Definition at line 298 of file multidip_tests.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_1p_gint()

subroutine multidip_tests::test_1p_gint

One-photon Green integral unit tests.

Author
J Benda
Date
2021 - 2023

Tests the function nested_cgreen_integ for several arguments. Compares results obtained from asymptotic integration over interval (+50,+inf) to results obtained using a combination of numerical integration of exact Coulomb functions at interval (+50,+150) and asymptotic formulas on (+150,+inf).

Definition at line 409 of file multidip_tests.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_2p_cint()

subroutine multidip_tests::test_2p_cint

Two-photon Coulomb integral unit tests.

Author
J Benda
Date
2020 - 2023

Tests the function nested_coul_integ for several arguments.

Definition at line 463 of file multidip_tests.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_2p_gint()

subroutine multidip_tests::test_2p_gint

Two-photon Green integral unit tests.

Author
J Benda
Date
2020 - 2023

Tests the function nested_cgreen_integ for several arguments.

Definition at line 537 of file multidip_tests.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_ang_dist()

subroutine multidip_tests::test_ang_dist

Angular algebra unit tests.

Author
J Benda
Date
2020

Tests the function beta_contraction_tensor for several arguments.

Definition at line 619 of file multidip_tests.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_coul()

subroutine multidip_tests::test_coul

Negative-energy Coulomb function tests.

Author
J Benda
Date
2020

Compare negative-energy Coulomb (Whittaker) functions calculated by UKRmol-out and by GSL with the expected asymptotic behaviour (DLMF ยง13.19.3).

Definition at line 192 of file multidip_tests.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_levin()

subroutine multidip_tests::test_levin

Tests of the Levin quadrature routine.

Author
J Benda
Date
2021

Definition at line 230 of file multidip_tests.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_permutations()

subroutine multidip_tests::test_permutations

Permutations unit tests.

Author
J Benda
Date
2020

Calculate a few permutations using the custom implementation of next_permutation to test for correctness.

Definition at line 166 of file multidip_tests.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_sph()

subroutine multidip_tests::test_sph

Test spherical harmonics.

Author
J Benda
Date
2025

Verifies DIPELM functions for evaluations of real and complex spherical harmonics.

Definition at line 66 of file multidip_tests.f90.

Here is the caller graph for this function: