Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[photran] PHOTRAN code parsing for refactoring/open declaration

Hi,

I've noticed a problem with the Fortran code paring if precompiler defined types are used, like in the following short example:

#ifndef myreal
#define myreal real(8)
#endif

     program main
      implicit none
      character*40     :: m_test_str
      myreal                :: test

      m_test_str="blablabla"
      test=8.0
      write(*,*) m_test_str, test
    end program main

if you are now trying to find the declaration of test or refactor it, PHOTRAN is not able to find the declaration. It seems that heavy usage of such declarations (as in the code I intend to use PHOTRAN with) make things even worse.

Best,
Frank


Back to the top