suppose we have a call...
CALL ALPHA1(SN,SCOR1,SCOR2,SUM,SUM2,SUMXY,ALP,NI,IT,KK3,IS)
SUBROUTINE ALPHA1(SN,SUMI,SUMI2,SUM,SUM2,SUMXY,ALPH,ISUM,
1 IT,KK3,IS)
why change the 2 names(SCOR1,SCOR2) in the parameter arg list and keep everything else the same? are there any general reasons for doing this.
ok here is my ?, are params passed by reference or value? i assume by reference in f77 right?
so if by reference, if a change was made to SUMI, is this change automatically reflected to SCOR1. iow, if i set SUMI=1, is SCOR1=1 after the function is called,since it's by reference?
is the declaration above same as...
CALL ALPHA1(SN,SCOR1,SCOR2,SUM,SUM2,SUMXY,ALP,NI,IT,KK3,IS)
SUBROUTINE ALPHA1(SN,SCOR1,SCOR2,SUM,SUM2,SUMXY,ALP,NI,
1 IT,KK3,IS)
CALL ALPHA1(SN,SCOR1,SCOR2,SUM,SUM2,SUMXY,ALP,NI,IT,KK3,IS)
SUBROUTINE ALPHA1(SN,SUMI,SUMI2,SUM,SUM2,SUMXY,ALPH,ISUM,
1 IT,KK3,IS)
why change the 2 names(SCOR1,SCOR2) in the parameter arg list and keep everything else the same? are there any general reasons for doing this.
ok here is my ?, are params passed by reference or value? i assume by reference in f77 right?
so if by reference, if a change was made to SUMI, is this change automatically reflected to SCOR1. iow, if i set SUMI=1, is SCOR1=1 after the function is called,since it's by reference?
is the declaration above same as...
CALL ALPHA1(SN,SCOR1,SCOR2,SUM,SUM2,SUMXY,ALP,NI,IT,KK3,IS)
SUBROUTINE ALPHA1(SN,SCOR1,SCOR2,SUM,SUM2,SUMXY,ALP,NI,
1 IT,KK3,IS)