-
Does fortran 90 can be recognized by abacus?
Hello,
I write a vumat subroutine with fortran 90. (I renamed it as .for)
But when I run it, it always shows error: Problem during compilation
And no more information in .msg .dat or .sat files
Does it mean we must use fortran 77 for subroutines?
Thanks.
yaning
-
Fortran 90 files and Abaqus
Yaning,
There are two things you can do:
1. Rename your *.f90 file as *.for and put !DEC$ FREEFORM as the first line in your code.
2. I haven't tried this but you can add a flag in the environment file (probably called abaqus_v6.env and located in the site sub-directory where your ABAQUS is installed). In the link_sl line add f90. In the compile_fortran line add 'f90 -c -free'
Example:
link_sl='f90 ......'
compile_fortran='f90 -c -free....'
As I said, I haven't tried the second method. Somebody might need to correct me.
Regards,
Cormac
-
No, you can use Fortran 90 just fine. Here's one approach that seems to work on multiple platforms:
(1) Give your source file a name that ends in .f90
(2) Compile your source file using the recommended compiler on your computer. For example, on Linux use a command like: ifort -c sourcefilename.f90
You can use the additional flags, see the flags that ABAQUS uses in the global abaqus_v6.env file.
(3) Run your Abaqus simulation by including the object file on the command line. For example: abaqus interactive job=inputfile.inp user=sourcefilename.o
You can also create a shared library file from a Fortran 90 file, but that is a different topic.
- Jorgen
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks