Skip to content

[FORTRAN] Unexpected jump in variable ISECOND in subroutine CALC #6

Description

@fireballpoint1

The following code in subroutine CALC of degrad-3.3.f s

2 print *," before return ",ICON,IONSUM(NVAC),ISECOND

      IF(ICON.EQ.2.AND.IONSUM(NVAC).EQ.1) THEN

      print *,"returning"

      RETURN

      ENDIF

C GO INTO SECOND BETA LOOP

	  print *,"ICON,IONSUM[int(NVAC)],ISECOND= ",ICON,IONSUM(NVAC),ISECOND

produces the following output

 before return                     3                    2                    2

 ICON,IONSUM[int(NVAC)],ISECOND=                     3                    2      140732947269312

Observe the sudden jump in ISECOND without any operation on it.

The screenshot has some personal code added to it, so don't use the exact line number but it should be somewhere around the same labels.
screenshot from 2018-08-20 01-30-10

The issue is seen in the following input :

2,100,5,1,0,1.0,1.5,2.0
2,12,0,0,0,0
80.0,20.0,0.0,0.0,0.0,0.0,20.0,760.0
2.0,3.0,30.0,0,0
50.0,0.55,2,1,1,1,1,1,1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions