NavigationTools and Utilities

Tools and Utilities


Fortran 90 code parser from Daniele Rosa. Daniele says:

The fortran 90 parser package is attached. As I said, i did not make the original perl program but I had to make a couple of scripts to get it to work on the entire CAM or SPCAM code. The file parse_spcam3_5_36_ctm calls the others but some editing needs to be done to get it to work on a specific case.

One important thing when the code has different branches within one directory (when there are different versions of the same modules) is passing to the parser the list of directories that contains the fortran source files and the one that contains the fortran include files (you can get that info but looking at the compiling commands in MAKE.out). If you don't do that it can't figure out which call is to be linked.

in parse_spcam3_5_36_ctm use this if you know the directories

cp spcam3_5_36_ctm_dirF $dirlistF
cp spcam3_5_36_ctm_dirH $dirlistH

otherwise use this to have the program figure them out when there are no multiple versions on the same module

# FOR GENERAL USE
# cd $codehomedir
# $homedir/find_F_files.pl | cut -d '/' -f 2- | sort -u > $homedir/$dirlistF
# $homedir/find_H_files.pl | cut -d '/' -f 2- | sort -u > $homedir/$dirlistH
# cd $homedir

I am available for explanations ... better by phone 510 926 1924
Daniele Rosa