Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

Creating Fortran DLL's using DIVPAG (IMSL)

$
0
0

Hello,

I have a set of stiff equations which I don't want to solve in Excel. Instead I want to pass the N equations, Y(N) at t=0 through the help of a DLL into Fortran, solve them in Fortran using the DIVPAG ODE Solver (I have Intel® Parallel Studio XE Composer Edition for Fortran Windows* with Rogue Wave* IMSL* bought in Dec 2015) and then pass the results back to Excel at t=dt. I know N, Y(N), can calculate LHS for Y equations, i.e. all info to use DIVPAG. 

I have created Fortran DLL's before but this time the trouble I think is, how to set up the correct arguments for invoking IMSL and the DIVPAG routine. Is there guide that can tell us what arguments to invoke before using DIVPAG?

Below is what I have done:

1. Based on (https://software.intel.com/en-us/articles/installing-and-using-the-imsl-...) set up the correct libraries in MS Visual Studio: $(FNL_DIR)\IA32\lib and $(FNL_DIR)\IA32\include\dll  (for IA-32 architecture target). 

2. Added: USE IMSL_LIBRARIES to the top of my code

3. Added: USE IVPAG_INT

3. Added: include 'link_fnl_static.h'

4. Added: !DEC$ OBJCOMMENT LIB:'libiomp5md.lib'

When I compile I get a bunch of warning but more importantly 2 errors:

a. Error LNK2019: unresolved external symbol _divpag@56 referenced in function

b. Fatal error LNK1120: 1 unresolved externals    Debug\XYZ.dll    

 

 

Could anyone point me to the correct way of invoking and using DIVPAG and creating a DLL. 

Thanks. 

 

 

 

 

 

 

 


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>