Hey all
I just start writing a program by f77, but im facing a problem, while i debugging the compiler several error massege came out and i cant find a way to solve it, please see it below, if you can help i will appreciate it
I just start writing a program by f77, but im facing a problem, while i debugging the compiler several error massege came out and i cant find a way to solve it, please see it below, if you can help i will appreciate it
Code:
program BAY
implicit double precision (a-h, o-z)
logical jjpar, jjdat, jjth, jjg, jjrel, jjchl, jjreb,
* jjchb, jjgmg
c
common /number/ ndat, npar, iter, itmax, conver
common /par/ pold(25), parm(25), pdum(25), varpar(325),
* varnew(325), idum(25)
c**** 235=(25*(25+1))/2
c
common /dat/ e(51), e2(51), data(51), vardat(1326),
* en(1326), th(51), dum(51), sig(51)
c***** 1326=)51*(51+1))/2
c
common /both/ g(51,25), emg(51,25)
common /yrpar/ param(26), parcov(26,26), ydum(26),
* iydum(26), ifpar(26), iwhere(26), nparam
c
data ndatmx /51/, nparmx /25/, nnparm/26/
data yes /1hy/
c
call outall(jjpar, jjdat, jjth, jjg, jjrel, jjchl,
* jjreb, jjchb, jjgmg)
c
write (5,99999)
read (5,99998) itmax, conver
write (6,99997) itmax, conver
c
write(5,99996)
read(5,99995) auto
if (auto.NE.yes) go to 10
c
write(5,99994)
read(5,99993) hbase
write(6,99992) hbase
c
10 call pparam(nnparm)
c
if(npar.GT.nparmx) go to 40
c
if(jjpar) call outpar
c
if(jjpar .AND. npar.LT.nparam) call outypr
c
20 call setdat
c
call fixv
c
if(ndat.GT.ndatmx) go to 50
c
if(jjdat) call outdat
iter=0
30 call theory(auto, hbase)
if(jjth) call outth
if(jjg) call outg
c
call newpar(jjrel, jjchl, jjreb, jjchb, jjgmg)
c
if(iter.LT.itmax) call outp1
if(iter.EQ.itmax) call outp2
c
call update
if(iter.EQ.itmax .AND. npar.LT.nparam) call outypr
c
iter=iter+1
if(iter.LE.itmax) go to 30
c
call restrt
go to 20
c
40 write(5,99991) npar, nparmx
stop
c
50 write(5,99990) ndat, ndatmx
stop
c ***********
99999 format( 42h, How many iterations?, 11h, cov fraction? $)
99998 format(i, f)
99997 format(32h, Max number of iteration is, i3,/7h, conver, 16hgence
*factor is, f10.6)
99996 format(39h Do you wish to use automatic numerical,
* 14h derivative?, $)
99995 format(f)
99994 format(42h What is fraction difference for automatic,
* 13h derivative?, $)
99993 format(f)
99992 format(36h automatic derivative uses step size , f10.5)
99991 format(9h, You wanna, i5, 21h, but you are allowed only, i5,
*17hparameter values./28h change in commons /par/ and,
*8h /both/,,25h and in sunroutines pparam and oldp)
99990 format(9h, You wannna, i5, 21h, but you are allowed only, i5,
*13h data values/, 30h change in commons /dat/ and,
*42h /both, and in sunroutines setdat and fixv)
end