Dice Fortran Backend Documentation
|
Contains unit tests for all major functions in the program. More...
Functions/Subroutines | |
integer function | test_qho_prob () |
Tests the QHO_Prob function in the solvers module. More... | |
integer function | test_qho_energy () |
Tests the QHO_Energy function in the solvers module. More... | |
integer function | test_h1s_wfn () |
Tests the H1s_wfn function in the solvers module. More... | |
integer function | test_h2s_wfn () |
Tests the H2s_wfn function in the solvers module. More... | |
integer function | test_h_2_plus_wfn () |
Tests the H_2_plus_wfn function in the solvers module. More... | |
integer function | test_h_2_plus_prob () |
Tests the H_2_plus_Prob function in the solvers module. More... | |
integer function | test_h_2_plus_energy () |
Tests the H_2_plus_Energy function in the solvers module. More... | |
integer function | test_h_2_plus_update_c () |
Tests the H_2_plus_update_c function in the solvers module. More... | |
integer function | test_h_2_cusp () |
Tests the H_2_cusp function in the solvers module. More... | |
integer function | test_h_2_wfn () |
Tests the H_2_wfn function in the solvers module. More... | |
integer function | test_h_2_prob () |
Tests the H_2_Prob function in the solvers module. More... | |
integer function | test_h_2_energy () |
Tests the H_2_Energy function in the solvers module. More... | |
integer function | test_h_2_update_beta () |
Tests the H_2_update_beta function in the solvers module. More... | |
integer function | test_ran1 () |
Tests the ran1 function in the vqmc module. More... | |
integer function | test_random_normal () |
Tests the random_normal function in the vqmc module. More... | |
integer function | test_linspace () |
Tests the linspace function in the vqmc module. More... | |
integer function | test_vqmc_qho () |
Tests the VQMC_QHO function in the vqmc module. More... | |
integer function | test_vqmc_h_2_plus () |
Tests the VQMC_H_2_plus function in the vqmc module. More... | |
integer function | test_vqmc_h_2 () |
Tests the VQMC_H_2 function in the vqmc module. More... | |
subroutine | unit_tests () |
Runs all of the unit tests, reporting successes and failures. More... | |
Variables | |
real(real64), parameter | tol = 1e-6_real64 |
Error tolerance in floating point evaluations. More... | |
Contains unit tests for all major functions in the program.
Module containing all test data needed for unit tests, ie. all pre-defined inputs/outputs to internal functions, as well as functions for running these tests and reporting any discrepancies.
integer function testing::test_qho_prob |
Tests the QHO_Prob function in the solvers module.
Returns a value of 0 if the test is successful, returns a value of 1 if the result of the test falls outside tolerances.
ierr | Unit test error state |
Definition at line 48 of file testing.f90.
integer function testing::test_qho_energy |
Tests the QHO_Energy function in the solvers module.
Returns a value of 0 if the test is successful, returns a value of 1 if the result of the test falls outside tolerances.
ierr | Unit test error state |
Definition at line 85 of file testing.f90.
integer function testing::test_h1s_wfn |
Tests the H1s_wfn function in the solvers module.
Returns a value of 0 if the test is successful, returns a value of 1 if the result of the test falls outside tolerances.
ierr | Unit test error state |
Definition at line 120 of file testing.f90.
integer function testing::test_h2s_wfn |
Tests the H2s_wfn function in the solvers module.
Returns a value of 0 if the test is successful, returns a value of 1 if the result of the test falls outside tolerances.
ierr | Unit test error state |
Definition at line 155 of file testing.f90.
integer function testing::test_h_2_plus_wfn |
Tests the H_2_plus_wfn function in the solvers module.
Returns a value of 0 if the test is successful, returns a value of 1 if the result of the test falls outside tolerances.
ierr | Unit test error state |
Definition at line 191 of file testing.f90.
integer function testing::test_h_2_plus_prob |
Tests the H_2_plus_Prob function in the solvers module.
Returns a value of 0 if the test is successful, returns a value of 1 if the result of the test falls outside tolerances.
ierr | Unit test error state |
Definition at line 229 of file testing.f90.
integer function testing::test_h_2_plus_energy |
Tests the H_2_plus_Energy function in the solvers module.
Returns a value of 0 if the test is successful, returns a value of 1 if the result of the test falls outside tolerances.
ierr | Unit test error state |
Definition at line 268 of file testing.f90.
integer function testing::test_h_2_plus_update_c |
Tests the H_2_plus_update_c function in the solvers module.
Returns a value of 0 if the test is successful, returns a value of 1 if the result of the test falls outside tolerances.
ierr | Unit test error state |
Definition at line 311 of file testing.f90.
integer function testing::test_h_2_cusp |
Tests the H_2_cusp function in the solvers module.
Returns a value of 0 if the test is successful, returns a value of 1 if the result of the test falls outside tolerances.
ierr | Unit test error state |
Definition at line 347 of file testing.f90.
integer function testing::test_h_2_wfn |
Tests the H_2_wfn function in the solvers module.
Returns a value of 0 if the test is successful, returns a value of 1 if the result of the test falls outside tolerances.
ierr | Unit test error state |
Definition at line 382 of file testing.f90.
integer function testing::test_h_2_prob |
Tests the H_2_Prob function in the solvers module.
Returns a value of 0 if the test is successful, returns a value of 1 if the result of the test falls outside tolerances.
ierr | Unit test error state |
Definition at line 422 of file testing.f90.
integer function testing::test_h_2_energy |
Tests the H_2_Energy function in the solvers module.
Returns a value of 0 if the test is successful, returns a value of 1 if the result of the test falls outside tolerances.
ierr | Unit test error state |
Definition at line 463 of file testing.f90.
integer function testing::test_h_2_update_beta |
Tests the H_2_update_beta function in the solvers module.
Returns a value of 0 if the test is successful, returns a value of 1 if the result of the test falls outside tolerances.
ierr | Unit test error state |
Definition at line 507 of file testing.f90.
integer function testing::test_ran1 |
Tests the ran1 function in the vqmc module.
Returns a value of 0 if the test is successful, returns a value of 1 if the result of the test falls outside tolerances.
Fixes the random number generator to a set sequence so all tests in the VQMC module will be reproducible.
ierr | Unit test error state |
Definition at line 548 of file testing.f90.
integer function testing::test_random_normal |
Tests the random_normal function in the vqmc module.
Returns a value of 0 if the test is successful, returns a value of 1 if the result of the test falls outside tolerances.
Run with the expectation that test_ran1 has been run first, which sets the seed of the random number generator to -1 for reproducibility.
ierr | Unit test error state |
Definition at line 586 of file testing.f90.
integer function testing::test_linspace |
Tests the linspace function in the vqmc module.
Returns a value of 0 if the test is successful, returns a value of 1 if the result of the test falls outside tolerances.
ierr | Unit test error state |
Definition at line 624 of file testing.f90.
integer function testing::test_vqmc_qho |
Tests the VQMC_QHO function in the vqmc module.
Returns a value of 0 if the test is successful, returns a value of 1 if the result of the test falls outside tolerances.
ierr | Unit test error state |
Definition at line 664 of file testing.f90.
integer function testing::test_vqmc_h_2_plus |
Tests the VQMC_H_2_plus function in the vqmc module.
Returns a value of 0 if the test is successful, returns a value of 1 if the result of the test falls outside tolerances.
ierr | Unit test error state |
Definition at line 705 of file testing.f90.
integer function testing::test_vqmc_h_2 |
Tests the VQMC_H_2 function in the vqmc module.
Returns a value of 0 if the test is successful, returns a value of 1 if the result of the test falls outside tolerances.
ierr | Unit test error state |
Definition at line 749 of file testing.f90.
subroutine testing::unit_tests |
Runs all of the unit tests, reporting successes and failures.
Subroutine to work through all of the unit tests, reporting successes and alerting users in the case of failures.
Definition at line 793 of file testing.f90.
real(real64), parameter testing::tol = 1e-6_real64 |
Error tolerance in floating point evaluations.
Definition at line 25 of file testing.f90.