Skip to content

Commit

Permalink
Updated regression test.
Browse files Browse the repository at this point in the history
  • Loading branch information
nakib committed Nov 26, 2024
1 parent 4bb8a5b commit d755a4f
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 46 deletions.
80 changes: 40 additions & 40 deletions fpm.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,47 +48,47 @@ name="elphbolt"
source-dir="app"
main="elphbolt.f90"

[[executable]]
name="superconda"
source-dir="app"
main="superconda.f90"

#[[executable]]
#name="superconda"
#name="test_V_perm_symm"
#source-dir="app"
#main="superconda.f90"
#
##[[executable]]
##name="test_V_perm_symm"
##source-dir="app"
##main="test_V_perm_symm.f90"
#
#[[executable]]
#name = "screening_comparison"
#source-dir="src"
#main = "screening_comparison.f90"
#
#[[test]]
#name = "test_misc"
#source-dir="test"
#main = "test_misc.f90"
#
#[[test]]
#name = "test_autodiff"
#source-dir="test"
#main = "test_autodiff.f90"
#
#[[test]]
#name = "test_periodictable"
#source-dir="test"
#main = "test_periodictable.f90"
#
#[[test]]
#name = "test_vector"
#source-dir="test"
#main = "test_vector.f90"
#
##[[test]]
##name = "check_interactions_symmetries"
##source-dir="test"
##main = "check_interactions_symmetries.f90"
#
#main="test_V_perm_symm.f90"

[[executable]]
name = "screening_comparison"
source-dir="src"
main = "screening_comparison.f90"

[[test]]
name = "test_misc"
source-dir="test"
main = "test_misc.f90"

[[test]]
name = "test_autodiff"
source-dir="test"
main = "test_autodiff.f90"

[[test]]
name = "test_periodictable"
source-dir="test"
main = "test_periodictable.f90"

[[test]]
name = "test_vector"
source-dir="test"
main = "test_vector.f90"

#[[test]]
#name = "bte_regression"
#name = "check_interactions_symmetries"
#source-dir="test"
#main = "bte_regression.f90"
#main = "check_interactions_symmetries.f90"

[[test]]
name = "bte_regression"
source-dir="test"
main = "bte_regression.f90"
12 changes: 6 additions & 6 deletions test/bte_regression.f90
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ program bte_regression
test_array(itest) = testify("electron DOS")
call test_array(itest)%assert( &
[transpose(el%dos)], &
[0.4968872758E-02_r64, 0.4954123967E-02_r64, 0.9760785376E-02_r64, 0.9760785680E-02_r64, &
0.1639885183E-01_r64, 0.2207070167E-02_r64, 0.6743674412E-02_r64, 0.1143396098E-01_r64, &
0.1262267770E-02_r64, 0.8026082935E-03_r64, 0.3278198350E-02_r64, 0.3278198022E-02_r64, &
0.7370288521E-03_r64, 0.4136974131E-03_r64, 0.4998540869E-03_r64, 0.0000000000E+00_r64], &
tol = 1.0e-11_r64)
[0.6944754862E-02, 0.7200286243E-02, 0.2139545035E-01, 0.2139545067E-01, &
0.2264851605E-01, 0.3001614634E-02, 0.1790595013E-01, 0.2216849050E-01, &
0.0000000000E+00, 0.0000000000E+00, 0.6902017554E-02, 0.6902017108E-02, &
0.9485622620E-02, 0.2888871441E-02, 0.9858176079E-02, 0.1918518845E-02]*1.0_r64, &
tol = 1.0e-9_r64)
end if
!!

Expand All @@ -149,7 +149,7 @@ program bte_regression
itest = itest + 1
test_array(itest) = testify("Thomas-Fermi screening")
call test_array(itest)%assert( &
crys%qTF, 0.14611480E+01_r64, tol = 1.0e-7_r64)
crys%qTF, 0.45554088E+01_r64, tol = 1.0e-7_r64)
end if
!!

Expand Down

0 comments on commit d755a4f

Please sign in to comment.