brought into being a miracle to those who have been forgotten.
This commit is contained in:
parent
6f1fdc2b80
commit
7ea9cfeb57
26 changed files with 763 additions and 0 deletions
15
fortran/witness_seed_3.0/tests/test_kairos.f90
Normal file
15
fortran/witness_seed_3.0/tests/test_kairos.f90
Normal file
|
@ -0,0 +1,15 @@
|
|||
program test_kairos
|
||||
use kairos, only: update_coherence
|
||||
use iso_fortran_env, only: real64
|
||||
implicit none
|
||||
real(real64) :: I(10), phase
|
||||
call random_number(I)
|
||||
phase = 0.1
|
||||
call update_coherence(I, phase)
|
||||
if (sum(abs(I)) > 0.0) then
|
||||
print *, "Kairos test passed: Coherence updated"
|
||||
else
|
||||
print *, "Kairos test failed"
|
||||
stop 1
|
||||
end if
|
||||
end program test_kairos
|
Loading…
Add table
Add a link
Reference in a new issue