hmcfortran
Programmer
Hi,
I am a beginner programmer in Fortran, but has to modify some code. It has to do with adding an extra parameter to a subroutine. I thought this had to be easy, but i am overlooking something and i really do not know what.
In the subroutine TNKDAT() i use the following code to call a subroutine TNKUPD():
90 IF (IOP1.NE.16) CALL TNKUPD(VN,WN,FN,SN,LCG,TCG,VCG,FSM,IMFSM,DATE)
IMFSM is the parameter i added.
The definition of the subroutine TNKUPD is as follows:
SUBROUTINE TNKUPD(VN,WN,FN,SN,LCG,TCG,VCG,FSM,TTT,DATE)
I think it has something to do with declaring variables or the type of variables, but it is a wild guess for me...
The code will not compile and gives the following warning:
..\FORALS.NEW\O_MODB.FOR
..\FORALS.NEW\O_MODB.FOR(617) : error F2115: syntax error
..\FORALS.NEW\O_MODB.FOR(646) : warning F4999: CN : variable declared but not used
..\FORALS.NEW\O_MODB.FOR(646) : warning F4999: TRICH : variable declared but not used
..\FORALS.NEW\O_MODB.FOR(646) : error F2837: label 90 : undefined
..\FORALS.NEW\O_MODB.FOR(746) : warning F4999: CN : variable declared but not used
I am a beginner programmer in Fortran, but has to modify some code. It has to do with adding an extra parameter to a subroutine. I thought this had to be easy, but i am overlooking something and i really do not know what.
In the subroutine TNKDAT() i use the following code to call a subroutine TNKUPD():
90 IF (IOP1.NE.16) CALL TNKUPD(VN,WN,FN,SN,LCG,TCG,VCG,FSM,IMFSM,DATE)
IMFSM is the parameter i added.
The definition of the subroutine TNKUPD is as follows:
SUBROUTINE TNKUPD(VN,WN,FN,SN,LCG,TCG,VCG,FSM,TTT,DATE)
I think it has something to do with declaring variables or the type of variables, but it is a wild guess for me...
The code will not compile and gives the following warning:
..\FORALS.NEW\O_MODB.FOR
..\FORALS.NEW\O_MODB.FOR(617) : error F2115: syntax error
..\FORALS.NEW\O_MODB.FOR(646) : warning F4999: CN : variable declared but not used
..\FORALS.NEW\O_MODB.FOR(646) : warning F4999: TRICH : variable declared but not used
..\FORALS.NEW\O_MODB.FOR(646) : error F2837: label 90 : undefined
..\FORALS.NEW\O_MODB.FOR(746) : warning F4999: CN : variable declared but not used