Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Fortran Subroutine issues

mechprog
Beginner
458 Views

Hello,

I am trying to write a subroutine using Intel Fortan 10.1 through Visual Studio 2008. As this is a subroutine I am not sure how to check for bugs or errors in the code. The code is currently not working with Abaqus had there were errors during com. However, I do not know if theerrors are on the Subroutine end or the Abaqus end?I am getting the following error message when trying to run the subroutine in with Abaqus, "Problem during compilation" Therefore:

1)How can Icheck for errors or debug the codefromFortran?
2) Does there appear to be anything inhertenly wrong with the code below from a programmers end?

Thank-you

0 Kudos
2 Replies
mecej4
Honored Contributor III
458 Views
You need to know something about the subroutine arguments that Abaqus passes to your subroutine -- after all, one cannot write a subroutine without knowing what its specification is. Using that knowledge, you can write a short main program to call the subroutine with those arguments.

Compile and debug your subroutine with this short driver program, using the same calling conventions as those specified for Abaqus, and then try using just the subroutine with Abaqus.
0 Kudos
mechprog
Beginner
458 Views
Thanks mecej4. The abaqus program is already set up to accept user subroutines like the one in the original post. The subroutine I is based on an example for"USDFLD subroutine", provide in the Abaqus manual. So I am not sure why is it not working at the moment, I am trying to find ways to solve any issues within the code.

Thanks again.
0 Kudos
Reply