Jump to content

Recommended Posts

I used f2c once in the past. I found it slow and "long". In other words,

the code added alot more lines than if I had converted it myself to c.

In the long term, you are better off converting the code to C than

converting the legacy code using f2c. You can use f2c as your "first leg"

to convert the code (from FORTRAN to C). And it's helpful if you don't

know C well since the conversion gives you the C "grammers" (and then

you'll be chopping the code; it's easier to chop the code than writing in

C if you don't know C well).

 

Sheng-Chieh

 

p.s. My website (signature) under programming:C has links ton C tutorial

if you need them.

Link to comment
Share on other sites

hey thanks for the replies everybody.

 

unfortunately some code that i obtained for industrial use is in fortran. i would be okay, except that one of the other packages which i'm using is in C. so i have to either get the guy who writes to put the other package in fortran (not going to happen!), scrap this package and go for something that is in C (already have an alternative), or use f2c (as recommended by the author of the code).

 

thanks for the comments and the willingness to help with C. for anything i'm going to do, i think i'm probably ok. but if anyone has any suggestions for an alternative to using the f2c for the fortran code, i'm all ears (or rather eyes, as I'll be reading the comment).

 

coincidentally, does anyone on here have any experience with using donlp2? it's a public domain sequential quadratic programming routine (nonlinear problem solver) for optimization?

 

thanks,

 

jon

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...