Unclassifiable statement and other errors in an IF in Fortran

后端 未结 1 1890
广开言路
广开言路 2020-12-12 04:40

I have the code:

   if i < n then
        x = topsep(1)
        y = topsep(2)
        realvor(n,1) = x + dx
        realvor(n,2) = x + dy   
        imvo         


        
1条回答
  •  时光说笑
    2020-12-12 05:33

    You forgot the parenthesis! According to the Fortran standard (2008, ch. 8.1.7.4), the if statement should read

    if ( i < n ) then
    

    0 讨论(0)
提交回复
热议问题