Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[photran] RE: [photran-announce] Photran 4.0 beta 3 now available

Hi Jeff,

I read the description of the refactoring on the Photran website, and it
did not mention the use of the Open Declaration (F3) feature. This is
one of my favorites ways to quickly learn a large body of code.

When I tried it, it seemed to try to build the database each time, even
if I used it on the same symbol twice in a row. I'm guessing this is not
ready for use yet; or is there a trick to putting all the symbols from
the various source files into the database, and then having it reference
that database?

The other related feature I'd like to see is to hook that symbol
database into the search engine so that it can look for symbols rather
than doing a simple string search (e.g., looking for the symbol T is
painful when done as a string search). Is that likely to come along?

I did try it to rename variables, but in addition to renaming the
variable, it removed all spaces in the modified source file, as shown
below. I also got a warning to the effect that C preprocessor directives
are ignored, and that I am using this at my own risk; but I don't have
any C preprocessor directives in the code. It's just straight Fortran
77. It also seems to recreate the database on each rename, which is a
pretty lengthy operation, even with relatively small source files. Is
this expected?

And does it just rename instances of a symbol in the current source
file? It ignored instances of this common block variable in other source
files. 

Here's part of the modified source file:
----------------------------------------
IMPLICITREAL*8(A-H,O-Z)
REAL*8M,MU
INTEGERqqq
INTEGERICOM(20)
DIMENSIONVFIS(20),VNUM(20),VNOR(20)
PARAMETER(qqq=400)
COMMON/int/JP3,JMAX,JT,IS(17)
COMMON/fis/AMP,AME,ECH,AMR,CV,BOL,G,GG,YEARS,RPG,PARSEC,GRAV,ALSOL,AMSOL
,AMBH,AMOL,AMOLE,AMOLP,SF(2)
COMMON/nor/RU,TU,RHOU,TEMPU,VFU,EU,MU,SR(13)
COMMON/num/TIMESTEP,CS,C1S,B,BC,BD,BF,BG,BH,RCENT,TFF,GLP,GLM,ALST,ALB,R
ATIOML,SN(4)
.
.
.
DO150L=1,LMAX
DO200N=1,NMAX
CALLTSTEP
TIME=TIME+TIMESTEP
IF(TIME-TSTOP1.GE.0.d0)THEN
TSTOP1=TSTOP1+DDTIME
LL=LL+1
CALLSET1(DDTIME,LL)
----------------------------------------

Thanks in advance for your help.

Dennis

> -----Original Message-----
> From: photran-announce-bounces@xxxxxxxxxxx 
> [mailto:photran-announce-bounces@xxxxxxxxxxx] On Behalf Of 
> Jeffrey Overbey
> Sent: Friday, November 09, 2007 9:34 PM
> To: Photran Announcements
> Subject: [photran-announce] Photran 4.0 beta 3 now available
> 
> Photran 4.0 beta 3 is now available.  It fixes a number of 
> issues reported with beta 2:
> 
>   * The version-dependency issue with Intel compiler support 
> has been corrected
>   * Outline view selections update the editor selection
>   * The block comment action is again tied to Ctrl+/
>   * The Fortran perspective has been updated to mimic CDT 4's 
> C/C++ perspective (e.g., including a Build Project toolbar action)
>   * The "full" builds are now based on Platform 3.3.1.1
> 
> Thanks to the many people who reported issues with beta 2; we 
> are always interested in your feedback.
> 
> Download: http://www.eclipse.org/photran/download.php
> 
> --
> The Photran Team
> _______________________________________________
> photran-announce mailing list
> photran-announce@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/photran-announce
> 


Back to the top