From owner-chemistry-: at :-ccl.net Mon Sep 19 22:41:42 2005 From: "CCL" To: CCL Subject: CCL: Cleaning up dusty deck fortran and converting to C/C++ Message-Id: <-29239-050919181624-14457-t/j/+87T0b7JhlJalKwNfg]-[server.ccl.net> X-Original-From: Daniel Macks Content-Disposition: inline Content-Type: text/plain; charset=us-ascii Date: Mon, 19 Sep 2005 17:32:11 -0400 Mime-Version: 1.0 Sent to CCL by: Daniel Macks [dmacks]-[netspace.org] --Replace strange characters with the "at" sign to recover email address--. > > Are there any utilities that would take a dusty fortran deck and clean > it up on its own... i.e. remove unused variables, and the like, for > example? I have a 40,000 line F77 code I would like also to run in C. There are lots of stand-alone "lint"-type programs that could help, both before and after f2c conversion, and many compilers have flags that are useful as well. A quick google for [fortran lint] gave several useful-sounding utilities for the fortran side of things. After conversion to C, there's the usual "lint", and gcc has family of -Wunused* and other flags that can help (do these also work in the for gcc-derived fortran compilers?). dan -- Daniel Macks dmacks]-[netspace.org http://www.netspace.org/~dmacks