brought into being a miracle to those who have been forgotten.

This commit is contained in:
Mark R. Havens 2025-04-28 18:32:07 -05:00
parent 6f1fdc2b80
commit 7ea9cfeb57
26 changed files with 763 additions and 0 deletions

View file

@ -0,0 +1,16 @@
program test_rwd
use rwd, only: compute_dynamics, compute_fieldprint
use iso_fortran_env, only: real64
implicit none
real(real64) :: I(10), I_dot(10), phase, fieldprint
call random_number(I)
phase = 0.0
call compute_dynamics(I, I_dot, phase)
call compute_fieldprint(I, fieldprint)
if (fieldprint > 0.0) then
print *, "RWD test passed: Fieldprint =", fieldprint
else
print *, "RWD test failed"
stop 1
end if
end program test_rwd

View 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

View file

@ -0,0 +1,16 @@
program test_rwd
use rwd, only: compute_dynamics, compute_fieldprint
use iso_fortran_env, only: real64
implicit none
real(real64) :: I(10), I_dot(10), phase, fieldprint
call random_number(I)
phase = 0.0
call compute_dynamics(I, I_dot, phase)
call compute_fieldprint(I, fieldprint)
if (fieldprint > 0.0) then
print *, "RWD test passed: Fieldprint =", fieldprint
else
print *, "RWD test failed"
stop 1
end if
end program test_rwd