Compare commits
No commits in common. "49183e41539b692935e2dc4fa91c3ebe91c3404a" and "7d0e302e09d9a039145e173b2474fdbd70bc6e73" have entirely different histories.
49183e4153
...
7d0e302e09
@ -7,7 +7,7 @@ all: genbloubs movebloubs exportbloubs mergebloubs \
|
|||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
|
|
||||||
GFOPT = -Wall -Wextra -g -time -I../Modules
|
GFOPT = -Wall -Wextra -g -time -I../Modules
|
||||||
OBJS = bloubspace.o povstuff.o
|
OBJS = bloubspace.o povstuff.o mathstuff.o
|
||||||
MYLIB = '../Modules/libtth90modules.a'
|
MYLIB = '../Modules/libtth90modules.a'
|
||||||
|
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
@ -37,6 +37,9 @@ bloubspace.o: bloubspace.f90 Makefile
|
|||||||
povstuff.o: povstuff.f90 Makefile
|
povstuff.o: povstuff.f90 Makefile
|
||||||
gfortran $(GFOPT) -c $<
|
gfortran $(GFOPT) -c $<
|
||||||
|
|
||||||
|
mathstuff.o: mathstuff.f90 Makefile
|
||||||
|
gfortran $(GFOPT) -c $<
|
||||||
|
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
|
|
||||||
genbloubs: genbloubs.f90 Makefile $(OBJS)
|
genbloubs: genbloubs.f90 Makefile $(OBJS)
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
GFOPT = -Wall -Wextra -g -I.
|
GFOPT = -Wall -Wextra -g -I.
|
||||||
|
|
||||||
all: chkpixels trnd
|
all: chkpixels trnd t
|
||||||
|
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
|
|
||||||
@ -31,22 +31,17 @@ mathstuff2.o: mathstuff2.f90 Makefile
|
|||||||
noisepictures.o: noisepictures.f90 Makefile
|
noisepictures.o: noisepictures.f90 Makefile
|
||||||
gfortran $(GFOPT) -c $<
|
gfortran $(GFOPT) -c $<
|
||||||
|
|
||||||
wavmetrics.o: wavmetrics.f90 Makefile
|
|
||||||
gfortran $(GFOPT) -c $<
|
|
||||||
|
|
||||||
#----------------------------------------------------------
|
#----------------------------------------------------------
|
||||||
# making a fluffy archive
|
# making a fluffy archive
|
||||||
#
|
#
|
||||||
OBJECTS = spitpgm.o pixrgb.o \
|
OBJECTS = spitpgm.o pixrgb.o \
|
||||||
centermag.o dummy.o \
|
centermag.o dummy.o \
|
||||||
trials.o mathstuff2.o \
|
trials.o mathstuff2.o \
|
||||||
noisepictures.o wavmetrics.o
|
noisepictures.o
|
||||||
|
|
||||||
libtth90modules.a: $(OBJECTS) Makefile
|
libtth90modules.a: $(OBJECTS) Makefile
|
||||||
$(AR) rs $@ $?
|
$(AR) rs $@ $?
|
||||||
|
|
||||||
# please explain the 'ar' command line
|
|
||||||
|
|
||||||
#----------------------------------------------------------
|
#----------------------------------------------------------
|
||||||
# programmes de testouille
|
# programmes de testouille
|
||||||
#
|
#
|
||||||
|
@ -11,7 +11,8 @@ Write gray level 2d buffer (aka picture) to disk in the NetPNM format.
|
|||||||
### pixrgb
|
### pixrgb
|
||||||
|
|
||||||
Write 8 bits or 16 bits RGB pictures to PNM format.
|
Write 8 bits or 16 bits RGB pictures to PNM format.
|
||||||
The width of the picture MUST be a multiple of 4 !
|
|
||||||
|
**Warning!** The width of the picture MUST be a multiple of 4 !
|
||||||
|
|
||||||
### trials
|
### trials
|
||||||
|
|
||||||
|
@ -6,15 +6,15 @@ module mathstuff2
|
|||||||
implicit none
|
implicit none
|
||||||
contains
|
contains
|
||||||
|
|
||||||
! ----------------------------------------------------------------
|
! ----------------------------------------------------------------
|
||||||
! really quick'n'dirty hack
|
! really quick'n'dirty hack
|
||||||
! not really tested yet...
|
! not really tested yet...
|
||||||
|
|
||||||
subroutine init_random_seed()
|
subroutine init_random_seed()
|
||||||
|
|
||||||
integer, dimension(3) :: tarray
|
integer, dimension(3) :: tarray
|
||||||
integer :: t3, foo
|
integer :: t3, foo
|
||||||
real :: dummy
|
real :: dummy
|
||||||
|
|
||||||
call itime(tarray)
|
call itime(tarray)
|
||||||
t3 = 3600*tarray(1) + 60*tarray(2) + tarray(3)
|
t3 = 3600*tarray(1) + 60*tarray(2) + tarray(3)
|
||||||
! write(0, '(A,3I3,A,I6)') "sranding: ", tarray, " --> ", t3
|
! write(0, '(A,3I3,A,I6)') "sranding: ", tarray, " --> ", t3
|
||||||
@ -28,10 +28,8 @@ module mathstuff2
|
|||||||
|
|
||||||
end subroutine
|
end subroutine
|
||||||
|
|
||||||
! ----------------------------------------------------------------
|
! ----------------------------------------------------------------
|
||||||
!-
|
|
||||||
!- May be I can make some generic procedures ?
|
|
||||||
!-
|
|
||||||
logical function diff_sign(a, b)
|
logical function diff_sign(a, b)
|
||||||
integer, intent(in) :: a, b
|
integer, intent(in) :: a, b
|
||||||
|
|
||||||
@ -47,6 +45,8 @@ logical function diff_sign(a, b)
|
|||||||
diff_sign = .FALSE.
|
diff_sign = .FALSE.
|
||||||
|
|
||||||
end function
|
end function
|
||||||
! ----------------------------------------------------------------
|
|
||||||
|
|
||||||
|
! ----------------------------------------------------------------
|
||||||
end module mathstuff2
|
end module mathstuff2
|
||||||
|
|
||||||
|
35
Modules/t.f90
Normal file
35
Modules/t.f90
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
program t
|
||||||
|
|
||||||
|
use centermag
|
||||||
|
implicit none
|
||||||
|
|
||||||
|
type(t_centermag) :: cmag
|
||||||
|
|
||||||
|
print *, '====== programme de test ======'
|
||||||
|
|
||||||
|
cmag%wscr = 800
|
||||||
|
cmag%hscr = 600
|
||||||
|
|
||||||
|
call essai_centermag(cmag)
|
||||||
|
print *
|
||||||
|
|
||||||
|
STOP ': PAF LE CHIEN ?'
|
||||||
|
|
||||||
|
! --------------
|
||||||
|
contains
|
||||||
|
! --------------
|
||||||
|
subroutine essai_centermag(cm)
|
||||||
|
type(t_centermag), intent(in) :: cm
|
||||||
|
|
||||||
|
real :: rx, ry
|
||||||
|
|
||||||
|
call print_centermag (cm)
|
||||||
|
print *
|
||||||
|
|
||||||
|
call centermag_scr2real(1, 1, rx, ry)
|
||||||
|
print *, 'to real :', rx, ry
|
||||||
|
|
||||||
|
end subroutine
|
||||||
|
! --------------
|
||||||
|
|
||||||
|
end program
|
@ -1,40 +0,0 @@
|
|||||||
|
|
||||||
! new: Thu Jan 4 00:08:04 UTC 2024
|
|
||||||
|
|
||||||
module wavmetrics
|
|
||||||
|
|
||||||
use mathstuff2
|
|
||||||
implicit none
|
|
||||||
|
|
||||||
type wavmetric
|
|
||||||
integer :: num
|
|
||||||
real :: freql, freqr
|
|
||||||
integer :: maxl, maxr
|
|
||||||
end type
|
|
||||||
|
|
||||||
type intsample
|
|
||||||
integer :: left, right
|
|
||||||
end type
|
|
||||||
|
|
||||||
contains
|
|
||||||
|
|
||||||
!-------------------------------------------------------------
|
|
||||||
|
|
||||||
subroutine compute_wavmetric(samples, start, size, metrics)
|
|
||||||
type(intsample), intent(in) :: samples(:)
|
|
||||||
integer, intent(in) :: start, size
|
|
||||||
type(wavmetric), intent(out) :: metrics
|
|
||||||
|
|
||||||
end subroutine
|
|
||||||
|
|
||||||
!-------------------------------------------------------------
|
|
||||||
|
|
||||||
subroutine display_wavmetrics(metrics)
|
|
||||||
type(wavmetric), intent(in) :: metrics
|
|
||||||
|
|
||||||
end subroutine
|
|
||||||
|
|
||||||
!-------------------------------------------------------------
|
|
||||||
!-------------------------------------------------------------
|
|
||||||
|
|
||||||
end module
|
|
Loading…
Reference in New Issue
Block a user