Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

User subroutine obj file

Status
Not open for further replies.

engm

Mechanical
Jun 10, 2004
7
Hi,

I am using abaqus with user subroutine on my pc which has no fortran compiler.

Can some of you tell me can I compile my user subroutine on other computer that has fortran compiler, then get the obj file from there, so I can eventually run jobs with it on my pc?
If yes, how to do it?

Thanks so much.
 
Replies continue below

Recommended for you

You don't need to compile your FORTRAN subroutine before you can use it. ABAQUS will compile it when you run the job with the USER option. But you can not use ABAQUS CAE to run the job, and you need use command line to do it.
 
Abaqus won't compile it unless Fortran has been installed on that machine. I've not heard of subroutines being run with a pre-compiled source code. You'll just have to install fortran.

corus
 
Hi Corus,

Thank you for your advice.

Here is an excerpt from abaqus online document 24.1.1:
"One or more user subroutines can be included in a model by using the user option on the abaqus execution procedure to specify the name of a FORTRAN source or object file that contains the subroutines". Does it mean abaqus allows run with obj file?

Is it possible to extract the obj file after the abaqus job is completed on a compiler-installed computer?


Thanks.
 
This is news to me, though I have fortran so haven't looked for this. The easiest way to check it is to run the job with the addition it says, ie. abaqus job=... user=fred.o where fred.o is the object file.
The second question I have no idea, but why extract it 'after' the job has run?

corus
 
Hi Corus,

Thank you. The reason for my second question is that my pc doe not have fortran compiler. I was thinking submitting my abaqus job (with my subroutine) to another computer where I borrowed an account from my friend, then getting the wanted obj file and transferring it to my pc for later use. I can't stay on my friend's account for too long. My subroutine is a user element code, and it will be used for many other jobs on my pc.

Thanks.

engm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor