Unexpected Errors when compling subroutine - UEL
Unexpected Errors when compling subroutine - UEL
(OP)
Hi,
Attached are the input files, as well as the use-defined subroutine I prepared. Some error messages popped up as shown below. Could you please help check what's ('re) reason(s) to such errors? Many thanks!
Attached are the input files, as well as the use-defined subroutine I prepared. Some error messages popped up as shown below. Could you please help check what's ('re) reason(s) to such errors? Many thanks!





RE: Unexpected Errors when compling subroutine - UEL
TTFN

FAQ731-376: Eng-Tips.com Forum Policies
Need help writing a question or understanding a reply? forum1529: Translation Assistance for Engineers
Of course I can. I can do anything. I can do absolutely anything. I'm an expert!
RE: Unexpected Errors when compling subroutine - UEL
Sorry for my slip! The following parameters denote the basic geomegry properties of the pipeline and some misc. parameters of elements of stiffness matrix as shown below. I commented some of parameters by using dummy values instead, in order to test what trigered those errors mentioned in my previous query.
Di=PROPS(1)-2*PROPS(2)
A=0.25*PROPS(5)*(Di**2)
Iy=(PROPS(5)/64)*(PROPS(1)**4-Di**4)
Iz=(PROPS(5)/64)*(PROPS(1)**4-Di**4)
EI_y=PROPS(3)*Iy
EI_z=PROPS(3)*Iz
G=PROPS(3)/(2*(1+PROPS(4)))
J=2*(PROPS(5)/64)*(PROPS(1)**4-Di**4)
L=sqrt((COORDS(1,2)-COORDS(1,1))**2
* +(COORDS(2,2)-COORDS(2,1))**2
* +(COORDS(3,2)-COORDS(3,1))**2)
DEN1=(12*EI_y-k*G*A*L**2)**2
C DEN2=(12*EI_z-k*G*A*L**2)**2
C NUME1=k*G*A*EI_y*(12*EI_y+k*G*A*L**2)
C NUME2=k*G*A*EI_z*(12*EI_z+k*G*A*L**2)
C DEN1=1.0
DEN2=1.0
NUME1=1.0
NUME2=1.0
RE: Unexpected Errors when compling subroutine - UEL
You posted only a small piece of code with no useful information about the code.
There's not even a hint as to what kind of errors you are getting.
Errors while attempting to compile the code?
Errors while attempting to run code which has successfully been compiled?
We can't help you with your code because we have no clue as to what problems you are encountering.
If you truly want help, you'll need to post a clear question/request and provide sufficient backup information for someone to even attempt to help you out.
None-the-less.... to start with... you really should declare all the variables/arguments in your routine. ie.. Which variable's are Integers, which are Reals, etc. For anything other than a super trivial program, if you haven't defined your arguments, you're pretty much guaranteed to fail.
Dan