00001 subroutine DBGtestDiscrete(opt1,opt2)
00002
00003
00004
00005
00006
00007
00008
00009
00010 use global
00011
00012 use model
00013
00014
00015 implicit none
00016
00017
00018 integer i
00019
00020 integer opt1,opt2
00021
00022
00023 if (opt1.eq.0) return
00024
00025
00026
00027
00028 select case(opt2)
00029
00030
00031 case(0)
00032
00033 y=discrete(0)
00034
00035 do i=1,globalCurrentSetLength
00036
00037
00038
00039
00040 print*,i,y(i)
00041
00042
00043 end do
00044
00045
00046 case(1)
00047
00048
00049 tempy=discrete(1)
00050
00051 do i=1,globalCurrentSetLength
00052
00053
00054
00055
00056 print*,i,tempy(i)
00057
00058
00059 end do
00060
00061
00062
00063 case default
00064
00065
00066 print*,'invalid opt2'
00067 print*,'demona stop in testDiscrete'
00068 stop
00069
00070
00071
00072 end select
00073
00074
00075
00076
00077 end subroutine DBGtestDiscrete