- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Doctor, how can i call IMSL function statement in my routine. Please take a look in this example.
PROGRAM
plastico_bingham_difUSE
MSIMSLMDIMPLICIT
REAL*8(A-H,O-Z)PARAMETER
(NROOT=1)DIMENSION
XGUES(NROOT), X(NROOT), INFO(NROOT)EXTERNAL
FuncCOMMON
/P1/ReCOMMON
/P2/yopen
(unit=3,file='exer.01.dat',status='unknown')y =0.d0
Re = 1.d4
X1 = 0.005d0
X2 = 0.01d0
tol = 1.d-2
ERABS = 1.D-30
EREL = tol
EPS = 1.D-10
ETA = EPS
ITMAX = 5.d0
XGUES(1)=0.5D0*(x1+x2)
write
(3,*) ' Re fat 'do
Re=1.d4,1.d6,500 CALL DZREAL(Func,ERABS,EREL,EPS,ETA,NROOT,ITMAX,XGUES,X,INFO)fat = X(1)
XGUES(1)= fat
write (*,*)' fat = ', fat write(3,*) Re, fatend do
close
(3)stop
end
! Funao transcendental para o calculo do fator de atrito de um fluido
! tipo plstico de Bingham
function
Func(fat)IMPLICIT
REAL*8(A-H,O-Z)COMMON
/P1/ ReCOMMON
/P2/ya = 2.d0*y/(Re*f)
ARG1 = (1.d0-a)*
dsqrt((Re**2*f/8.d0) - (Re*y/4.d0) )DENOM1 =
dsqrt( f- 2.d0*y/Re )TROMB = 5.5d0/
dsqrt(2.d0) - (1.d0-a)*(3.d0+a)/3.28d0Func = DENOM1*(4.073d0*
dlog10(ARG1) + TROMB ) - 1.0d0return
end function
The compiler send a message like this:
Error1 Error: Error in opening the compiled module file. Check INCLUDE paths. [MSIMSLMD]
C:Documents and SettingsAmorimMeus documentosVisual Studio 2005ProjectsConsole6Console6DebugRAIZES_plastico_bingham_ZREAL.f902
Thanks Doctor
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page