comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: dlmform
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: dlmform [message #36069] Tue, 19 August 2003 13:54
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Stein Vidar Hagfors Haugan wrote:
>
> Reimar Bauer <R.Bauer@fz-juelich.de> writes:
>
>> Dear all,
>>
>> I found Stein Vidar'S dlmform for f77 programs, Does this work with f90/95
>> too?
>
> It depends.. the dlmform program uses the output of the program
> ftnchek to parse the input types. If ftnchek works with f90/95, then
> dlmform could also work,

I don't believe ftnchek works for all the f90/95 stuff. It supports some f90 stuff, but not all.

paulv

--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC
Ph: (301)763-8000 x7748
Fax:(301)763-8545
Re: dlmform [message #36071 is a reply to message #36069] Tue, 19 August 2003 10:44 Go to previous message
Stein Vidar Hagfors H[2] is currently offline  Stein Vidar Hagfors H[2]
Messages: 28
Registered: October 2002
Junior Member
Reimar Bauer <R.Bauer@fz-juelich.de> writes:

> Dear all,
>
> I found Stein Vidar'S dlmform for f77 programs, Does this work with f90/95
> too?

It depends.. the dlmform program uses the output of the program
ftnchek to parse the input types. If ftnchek works with f90/95, then
dlmform could also work, but only as long as the parameter
declarations look like f77.

Another neat way to use dlmform if you have a problem with a
particular vintage of fortran is to simply rewrite the header (nothing
else) of the procedure/function to f77, and use the C code generated
by dlmform for the real thing in fNN.

> Did someone already have this or a similiar tool translated for c sources?

Again, by writing an f77 template for the function, there's no real
need.

Note that all variables in fortran are passed by reference, though, so
some rewriting of the code may be needed. The pass-by-reference
quality of fortran is very handy for vectorization of scalar
procedures/functions.

--
------------------------------------------------------------ --------------
Stein Vidar Hagfors Haugan
ESA SOHO SOC/European Space Agency Science Operations Coordinator for SOHO

NASA Goddard Space Flight Center, Tel.: 1-301-286-9028
Mail Code 682.3, Bld. 26, Room G-1, Cell: 1-240-354-6066
Greenbelt, Maryland 20771, USA. Fax: 1-301-286-0264
------------------------------------------------------------ --------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Solving elliptic equation in IDL
Next Topic: Two questions (about Mpeg and Networking)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:38:52 PDT 2025

Total time taken to generate the page: 0.00496 seconds