Silverfrost Forums

Welcome to our forums

Numerical libraries

27 Jul 2008 11:45 #3591

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.

28 Jul 2008 1:37 #3599

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.

28 Jul 2008 3:17 #3606

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

28 Jul 2008 6:00 #3610

OK - thanks for both replies.

Please login to reply.