Question

Need help in improving a FORTRAN application

Asked by: abdriver2000

I have been asked to look into a FORTRAN application. I have never learnt this language, but I have to give it my best shot.
Here is what I need to know:
1. What are the best practices followed in FORTRAN? Do's and Don'ts
2. Maintainability: Is there an efficient way to maintain code in FORTRAN?
3. Code optimization: How can I locate dead code or diuplicate code? Are there any commonly available or freely downloadable tools?
4. Any efficient algorithms that I need to know?
5. Is there an URL which will show me all the versions of FORTRAN along with their features?
6. Any other info or link you may think will be useful to me?

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-04-02 at 07:16:23ID24288596
Tags

FORTRAN

,

Best Practices

,

Tools

Topics

Programming Languages

,

FORTRAN

,

Miscellaneous Programming

Participating Experts
2
Points
50
Comments
12

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Convert(Fortran to Visual Basic)
    I have several Fortran codes. I want to convert these to visual basic codes. I tried to program it with visual basic but it was not easy to handle most Fortran codes. I've done just Do-Loop and Comment and If statement etc,. Has anybody worked on converting program from Fortr...
  2. fortran to vba
    hi, wonder if anyone can help, i have been involved for the last few weeks in translating an old fortran program to visual basic, all has gone ok apart from one section, the dynamic derivative!! Being totally new to programming i would like to know how fortran goes about doin...
  3. Fortran
    Is a MySQL db accessible via ForTran? Maybe using the Mysql DLL using the c api. (ie, accessing a c dll from ForTran)

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: LowfatspreadPosted on 2009-04-02 at 10:24:51ID: 24052316

wikipedia gives a brief overview of the language and history...

to advance further with this you need to be more specific...

what machine/os environments are you dealing with?
what are the general usages for the programs you will be maintaining?

 

 

by: dcesariPosted on 2009-04-03 at 00:44:02ID: 24057500

I agree that some more information about the purpose of your work would help, anyway, I suppose you are going to write code in the fortran 90/95 standard, not the obsolete fortran 77 -this can be viewed already as the first suggestion- since good free compilers are available also for f95 (gfortran, g95);

For point 1 I can suggest a couple of links:

http://www.metoffice.gov.uk/research/nwp/numerical/fortran90/f90_standards.html
http://www.mad.zmaw.de/fileadmin/extern/IMDI/WP2b_coding_rules.ps

which give mainly estethical suggestions about how to write readable Fortran code, probably not everything should be taken literally, but you can learn something useful.

For a more advanced approach, I suggest the link about writing Fortran code in an object-oriented way:

http://www.cs.rpi.edu/~szymansk/oof90.html

and, if you can read Italian, though I am afraid not, then a link of my own:

http://www.webalice.it/o.drofa/davide/f90/slide/

The most basic suggestion for writing good Fortran 95 code is: use modules!

 

by: dcesariPosted on 2009-04-03 at 01:02:01ID: 24057587

Concerning point n. 2, I have experience in using automake/autoconf also for managing Fortran projects, but this makes sense mainly in an Unix-like environment, I can give further information if needed; for a simpler and more hand-made approach using makefiles, see again my page, this time in English:

http://www.webalice.it/o.drofa/davide/fortran_corner_en.html

at the Makefile-fortran section.

For point n. 3 I suggest compiling using profiling options (how to do it depends on compiler, but most compilers do have these options), in order to have runtime information about how many times every subroutine is used and how much it costs in terms of computation time; this practice is more or less the same for Fortran as for any other compiled language, such as C or C++.

Point n. 4: this really depends on the purpose of your program
Point n. 5 depends on the platform and operating system you are using, unless you mean the existing fortran standards; concerning fortran standards I can say the following:

F77: old standard not suitable for modern code, but still many legacy code exists written in this standard
F90: a big change with respect to F77, allows more readable and structured code (free format, MODULES)
F95: very little changes with respect to F90, most compilers including the free ones support the F95 additional features, so F90 and F95 are almost synonims nowadays
F2003: up to now it is mainly a standard on paper, but some commercial compilers which partially implement the standard are starting to appear, I suggest you to neglect for starting

In general the standards are backward compatible, apart from very obsolete features, so a F95 compiler can compile also most existing F77 code.

 

by: abdriver2000Posted on 2009-04-03 at 01:58:47ID: 24057874

This is a robotic application. The application provides the coordinates for the robotic arm to pickup and place components on the shop floor.

 

by: dcesariPosted on 2009-04-03 at 03:08:32ID: 24058229

Well I have not much experience in this field, but I guess this may involve computations in 3d space, use of transformation matrices and so on...

If so, F90/F95 have their own optimized intrinsic functions for very basic linear algebra computations (see e.g. dot_product() and matmul() ), for something more advanced but still of general use, such as more complex linear algebra, matrix inversion and so on, you probably should have a look to freely available packages like blas and lapack before writing your own routines; for statistical computation there is not much freely available for Fortran, the commercial IMSL libraries are the most commonly used, as far as I know.

I forgot to say, if you need a manual on Fortran, try to go on the web page of a good commercial compiler (see links in the suggested wikipedia page), usually the reference manuals are freely
downloadable.

 

by: dcesariPosted on 2009-04-17 at 00:02:49ID: 24165426

If you need more specific answers, please reformulate the questions with more details on the basis of the answers given; in my opinion, with the elements provided, it is difficult to give more specific answers, thanks.

 

by: dcesariPosted on 2009-04-17 at 00:12:09ID: 24165466

If you need more specific answers, please reformulate the questions with more details on the basis of the answers given; in my opinion, with the elements provided, it is difficult to give more specific answers, thanks.

 

by: dcesariPosted on 2009-04-21 at 08:14:17ID: 24195351

I do not know whether I am the one who has to decide about this, from my point of view, the comments I made with ID: 24057500 and ID: 24057587 provide an answer suitable to the request and the information provided, so I would go for point #3, but I agree to answer further on the same thread if the Author can provide more information about his application and OS/compiler/platform.

Thanks, dcesari

 

by: abdriver2000Posted on 2009-04-24 at 10:14:51ID: 24227182

The questions that were raised have really not been answered here. The problem here is I really do not have much info than what is already provided. I don't see a way to take this forward until I get more info from my seniors.

I am ok with awarding points to dcesari for his/her efforts.

 

by: dcesariPosted on 2009-04-27 at 06:42:11ID: 24241540

Thank you, I will be happy to help on this topic in the future if needed.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...