forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Numerical libraries

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
ed



Joined: 18 Jul 2008
Posts: 2

PostPosted: Sun Jul 27, 2008 12:45 pm    Post subject: Numerical libraries Reply with quote

Hello

I am looking for algorithms, mainly for solving ordinary and partial differential equations. I have used NAG in the past but it's too expensive for me.

There is a collection known as "Numerical Recipes" - it comes with both F90 code (legacy/unsupported) and C++. Does anyone have experience with Numerical Recipes, or know of any other low-cost alternatives?

Secondly: with Silverfrost, is it possible to call a C++ algorithm code from a Fortran program? (I can't program in C++)

Regards,
Ed.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7924
Location: Salford, UK

PostPosted: Mon Jul 28, 2008 2:37 pm    Post subject: Reply with quote

In answer to your second question, you can call C++ from FTN95 Fortran.

You will find details in ftn95.chm under Win32 platform->Mixed language programming->Calling C/C++ from FTN95.

In particular you need to be careful about which protocol is using in C++, c_decl or STDCALL.
Back to top
View user's profile Send private message AIM Address
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Mon Jul 28, 2008 4:17 pm    Post subject: Reply with quote

Using the C versions provides one extra and unnecessary layer of potential problems - if you stick to the Fortran versions at least as a Fortran programmer you are likely to understand what they do.

Eddie
Back to top
View user's profile Send private message
ed



Joined: 18 Jul 2008
Posts: 2

PostPosted: Mon Jul 28, 2008 7:00 pm    Post subject: Reply with quote

OK - thanks for both replies.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group