Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Unexpected Errors when compling subroutine - UEL

Status
Not open for further replies.
Replies continue below

Recommended for you

You would think that if you would at least describe what your code is supposed to do, or are people supposed to blindly compile your code and slog through the source to figure it out?

TTFN
faq731-376
7ofakss

Need help writing a question or understanding a reply? forum1529

Of course I can. I can do anything. I can do absolutely anything. I'm an expert!
 
Hi,

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
 
I see no error codes.
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor