Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use DFPORT

Status
Not open for further replies.

j0zn

Programmer
Jul 19, 2013
36
BR
Hi guys!
I would like to know how to use DFPORT,but I don't know how to use it.
Please write it with an example.

Thank you in advance
 
DFPORT has lots of functions - is there any particular one you wish to use? It has Bessel functions, date/time routines, file access, processes, sorting etc.

Also worth searching for PORTLIB if you have powerstation 4, or IFPORT on the later Intel compilers.
 
Example - sleep for 10 seconds
Code:
    program main
    use dfport

    implicit none

    print *, 'Sleeping for 10 seconds'
    call sleep(10)
    print *, 'Awake'

    end program main
To link you need libF90.lib and libPEPCF90.lib. You really need to tell us what you want to do with it. Nobody is going to invent a program with calls to over 50 functions ranging from Bessel functions to sorting, incorporating all the functions in dfport.
 
I am trying to calculate the integral of sin(x) from 0 to pi, using Monte Carlo. I want to call ran() or some rotine of the Numerical Recipes such as ran0.f90, ran1.f90 and so on.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top