adding a lot of grabage

This commit is contained in:
tth
2022-03-18 12:21:40 +01:00
parent dd94a4a2a8
commit ed2b04caeb
13 changed files with 292 additions and 88 deletions

View File

@@ -1,19 +1,39 @@
program essai
use bloubspace
use mathstuff
implicit none
integer :: foo
type(t_boundingbox) :: bbox
call load_boundingbox("WS/boundinboxes.dat", bbox, "cube ")
print *, bbox
! call test_random(20)
STOP ': BECAUSE JOB IS DONE'
! --------------------------------------------------------------
contains
subroutine test_random(nbre)
integer, intent(in) :: nbre
integer :: foo, bar
real :: quux
double precision :: somme
call init_random_seed()
call init_random_seed() ! in module 'mathstuff'
somme = 0.0
do foo=1, 5
do foo=1, nbre
quux = rand()
somme = somme + quux
print *, foo, quux, somme/foo
bar = mod(irand(), 7)
print *, foo, quux, somme/foo, bar
enddo
end subroutine test_random
! --------------------------------------------------------------
end program
end program