View previous topic :: View next topic |
Author |
Message |
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Tue Sep 06, 2016 5:19 pm Post subject: Code Visualisation - auto Flowchart generation |
|
|
My brain often becomes befuddled trying to 'visualise' even my own code somtimes, let alone code posted on this forum.
Can anyone recommend an open source program which produces a flowchart visualisation of fortran code ? |
|
Back to top |
|
|
JohnCampbell
Joined: 16 Feb 2006 Posts: 2554 Location: Sydney
|
Posted: Thu Sep 08, 2016 1:09 am Post subject: |
|
|
Hi John,
If you are discussing those charts with diamonds, circles, boxes and lines,
I can't remember the last time I created a flowchart !
Using new F90+ coding structures and indenting code with a screen editor makes that micro approach obsolete.
A white board (or large sheets of paper) for a macro approach to code structure is more relevant today.
John |
|
Back to top |
|
|
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Thu Sep 08, 2016 4:39 am Post subject: |
|
|
I know John I've not touched a flowchart since the advent of PC's either !
I remember being taught from day one (around 1977, by Bruce) that you should always write a flowchart before the program. Of course at the time it was always done in reverse order, and quickly became no ordr at all !
However I was thinking more of using as a quick n dirty method to understand the structure of code (in my case many of my own programs are 20-odd years old and I can't remember what I wrote !
An artists impression paints a few hundred indentations and comment cards, as the saying goes, words, or something like that |
|
Back to top |
|
|
davidb
Joined: 17 Jul 2009 Posts: 560 Location: UK
|
Posted: Thu Sep 08, 2016 7:41 am Post subject: |
|
|
I am not aware of anything that is open source or freeware. There is Scitools' Understand Static Analysis Tool (just search for scitools understand) which supports Modern Fortran (and F77) quite well and can give you lots of flow charts and dependency charts. Its expensive but there is a free trial available.
Personally, I find flowcharts harder to create and understand than actual code. They are rarely used these days. _________________ Programmer in: Fortran 77/95/2003/2008, C, C++ (& OpenMP), java, Python, Perl |
|
Back to top |
|
|
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2388 Location: Yateley, Hants, UK
|
Posted: Thu Sep 08, 2016 10:04 am Post subject: |
|
|
I agree with the comments. I don't think that I ever used a flowchart for programming. However, the same graphics and logic are very useful for creating event trees in quantitative risk analysis. |
|
Back to top |
|
|
IanLambley
Joined: 17 Dec 2006 Posts: 490 Location: Sunderland
|
|
Back to top |
|
|
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Sat Sep 24, 2016 10:22 am Post subject: |
|
|
thanks for the link Ian.
I'd aready seen the first prog listed (visustin) elsewhere and will give it a try out although the price is a bit prohibitive (of order half that of FTN95 - Paýul, there's a new market there for Silverfrost !)
Only one of th eothers listed is applicable (CVF).
I'll give that a try too and report back if either are interesting nough. |
|
Back to top |
|
|
|