Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Ivo
Beginner
3,306 Views

Fortran Compiler for Abaqus

Jump to solution

Hi, I need a compiler for running Fortran Subroutines in Abaqus. I am using Abaqus 2018. In my understanding I should go for Intel Parallel Studio XE. Does the newest version work with Abaqus 2018?

Thanks

0 Kudos

Accepted Solutions
Steve_Lionel
Black Belt Retired Employee
2,130 Views

We get a lot of questions about Abaqus and Fortran, where users request years-old versions because that's what the Abaqus documentation mentions.  There's no inherent reason to think that the now-current version of the compiler won't work with Abaqus. We keep telling people that and I have yet to see someone come back and say it didn't work. At most you may have to change a setup script Abaqus uses to locate the Intel compiler.

Use the current version from the Intel oneAPI HPC Toolkit and write back here with descriptions of any issues you encounter.

View solution in original post

50 Replies
RahulV_intel
Moderator
2,153 Views

Hi,


We are redirecting your query to an appropriate forum.


Thanks,

Rahul


Steve_Lionel
Black Belt Retired Employee
2,131 Views

We get a lot of questions about Abaqus and Fortran, where users request years-old versions because that's what the Abaqus documentation mentions.  There's no inherent reason to think that the now-current version of the compiler won't work with Abaqus. We keep telling people that and I have yet to see someone come back and say it didn't work. At most you may have to change a setup script Abaqus uses to locate the Intel compiler.

Use the current version from the Intel oneAPI HPC Toolkit and write back here with descriptions of any issues you encounter.

View solution in original post

arogz
Novice
2,125 Views

Hello all!

I downloaded oneAPI HPC tool kit but I am struggling to figure out how to link ABAQUS and the Fortran compiler included in the tool kit. It seems like in previous versions the Fortran compiler was linked to ABAQUS by calling the file ifortvars.bat from the ABAQUS CAE launcher as explained here: https://grabcad.com/tutorials/linking-abaqus-and-fortran 

The thing is that I do not find the ifortvars.bat file in the oneAPI folder in the C unit... could you please help me with this issue? which file is the equivalent to ifortvars.bat in this new distribution?

Otherwise, could you please let me know how to download a previous version of Parallel Studio XE?

(I am a student)

I would really appreciate your help in this matter, I need Fortran to implement subroutines in ABAQUS for my research work...

Best regards,

Alfredo

mecej4
Black Belt
2,118 Views

The batch file that you want is setvars.bat in the ONEAPI root directory.

You can find this for yourself by finding the OneAPI entries in the Start menu, right click on one of the shortcuts and select Properties. You will see the full path to the batch file and arguments to it displayed.

gotham1808
Beginner
2,048 Views

Hello,

I did include the setvars in the CAE launcher:

@Echo off
call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" x64
call "C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat" x64

"C:\SIMULIA\CAE\2017\win_b64\code\bin\ABQLauncher.exe" %*

However, when I run the Abaqus verification, it does not recognize the Fortran and C++ compilers. Could you please help me with this? Thank you.

Greg_T_
New Contributor III
1,911 Views

I've had problems in the past with the Abaqus verification automatic checking.  I'd recommend that you run a small analysis with a user subroutine to check if that will work with Abaqus and the Fortran compiler.  An example could be a small mesh for a stress analysis with a distributed load given by the DLOAD user subroutine.

I've had success running Abaqus with Fortran by first opening the Intel compiler console window from the Start button: Start->Intel Parallel Studio->Compiler Update for Intel 64...

That opens the initialized Intel Fortran console window, which should take care of the initializations that the batch files you tried should have done, or that the Abaqus validation should have used.  In that Intel console window I change directory to my Abaqus input file, then enter the Abaqus command line to run the analysis, including the "user=" parameter to give the name of the Fortran source file.

Have you tried this approach?

Regards, Greg T.

jsi1v18
Beginner
1,837 Views

I have the same problem. Before my license of intel XE parallel 2020 expired, I can work on ABAQUS linking with Intel Fortran smoothly. After the license expired, I installed intel oneAPI base and HPC toolkits and tried to link them using setvars.bat

However, ABAQUS cannot recognise Fortran subroutine, as shown in the photo below. Could you help, please? Thank you in advance. 

jsi1v18_0-1609432515113.png

 

 

Steve_Lionel
Black Belt Retired Employee
1,831 Views

There is no useful information in that screenshot. What does std_user.log say?

jsi1v18
Beginner
1,776 Views

The screenshot may give an idea that ABAQUS and Intel oneAPI  are properly linked, or may be not?

Here is the content showed in the log file.

std_user.log

Analysis initiated from SIMULIA established products
Abaqus JOB Job-cutx
Abaqus 3DEXPERIENCE R2019x
Abaqus License Manager checked out the following licenses:
Abaqus/Standard checked out 5 tokens from Flexnet server AbaqusLM1.soton.ac.uk.
<309 out of 341 licenses remain available>.
Begin Compiling Abaqus/Standard User Subroutines
01/01/2021 12:54:39
Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.1 Build 20201112_000000
Copyright (C) 1985-2020 Intel Corporation. All rights reserved.

End Compiling Abaqus/Standard User Subroutines
Begin Linking Abaqus/Standard User Subroutines
Creating library standardU.lib and object standardU.exp
libirc.lib(fast_mem_ops.obj) : warning LNK4210: .CRT section exists; there may be unhandled static initializers or terminators
End Linking Abaqus/Standard User Subroutines
01/01/2021 12:54:42
Begin Analysis Input File Processor
01/01/2021 12:54:42
Run pre.exe
01/01/2021 12:54:51
End Analysis Input File Processor
Begin Abaqus/Standard Analysis
01/01/2021 12:54:51
Run standard.exe
01/01/2021 12:54:51
Abaqus Error: Abaqus/Standard Analysis exited with an error - Please see the
message file for possible error messages if the file exists.
Begin Convert MFS to SFS
01/01/2021 12:54:54
Run SMASimUtility.exe
01/01/2021 12:54:54
End Convert MFS to SFS
Abaqus/Analysis exited with errors

 

Do I need to find the location of libirc.lib and add the missing path to the SYSTEM->path variable manually? Is that the solution?

Thank you very much for your time and help.

 

Steve_Lionel
Black Belt Retired Employee
1,766 Views

The warning about libirc can probably be ignored. Instead focus on "Abaqus Error: Abaqus/Standard Analysis exited with an error - Please see the message file for possible error messages if the file exists." It appears that your executable was created, but something went wrong when it ran. Abaqus is being extremely unhelpful in describing what happened.

As best as I can tell, your problem is unrelated to Intel Fortran (or even Fortran at all). You would probably get more useful information in an Abaqus support forum.

mecej4
Black Belt
1,760 Views

It appears to me that the Abaqus batch files have been set up to be unobtrusive, with echoing turned off and messages diverted to files.

When everything functions normally, this is a good setup -- no fuss, everything is fine, you can get going with your objective -- the FEA solution.

When something goes wrong, however, you only get a curt notice of failure, and it will take a lot of effort, knowledge and poking around batch and log files to find out what went wrong. Most casual users of Abaqus are probably not equipped to troubleshoot failures. Most of us in the Intel forums are not licensed Abaqus users, so we do not have knowledge specific to Abaqus. Is there no Abaqus forum where these issues can be aired and solved?

arogz
Novice
1,715 Views

Many thanks for your insights on this. I did tried your approach and unfortunately I got the following warning and error, do you have any idea how to solve these issues?

Thanks in advance!

Job-1.JPG

Steve_Lionel
Black Belt Retired Employee
1,705 Views

You are using the Fortran compiler that generates code for 32-bit processors and combining it with Abaqus code for 64-bit processors. Make sure that you use the "Intel 64" version of the compiler setup.

sarkar
Beginner
1,679 Views

A more detailed log file 

 

Analysis initiated from SIMULIA established products
Abaqus JOB 2d
Abaqus 3DEXPERIENCE R2018x
Abaqus License Manager checked out the following licenses:
Abaqus/Standard checked out 5 tokens from Flexnet server CADLAB1.
<509 out of 541 licenses remain available>.
Begin Compiling Abaqus/Standard User Subroutines
1/3/2021 10:57:47 AM
Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.1 Build 20201112_000000
Copyright (C) 1985-2020 Intel Corporation. All rights reserved.

End Compiling Abaqus/Standard User Subroutines
Begin Linking Abaqus/Standard User Subroutines
Creating library standardU.lib and object standardU.exp
libirc.lib(fast_mem_ops.obj) : warning LNK4210: .CRT section exists; there may be unhandled static initializers or terminators
End Linking Abaqus/Standard User Subroutines
1/3/2021 10:57:48 AM
Begin Analysis Input File Processor
1/3/2021 10:57:48 AM
Run pre.exe
1/3/2021 10:57:51 AM
End Analysis Input File Processor
Begin Abaqus/Standard Analysis
1/3/2021 10:57:51 AM
Run standard.exe
1/3/2021 10:57:52 AM
Abaqus Error: The executable standard.exe
aborted with system error code 1073741511.
Please check the .dat, .msg, and .sta files for error messages if the files
exist. If there are no error messages and you cannot resolve the problem,
please run the command "abaqus job=support information=support" to report and
save your system information. Use the same command to run Abaqus that you
used when the problem occurred. Please contact your local Abaqus support
office and send them the input file, the file support.log which you just
created, the executable name, and the error code.
Begin Convert MFS to SFS
1/3/2021 10:57:53 AM
Run SMASimUtility.exe
1/3/2021 10:57:53 AM
End Convert MFS to SFS
Abaqus/Analysis exited with errors

sarkar
Beginner
1,668 Views

@jsi1v18 Could you find the following error in the msg file?

***ERROR: USER SUBROUTINE DISP IS MISSING

arogz
Novice
1,656 Views

@sarkar & @jsi1v18 I have a similar log file (see below). I checked the message file and found a similar error:

***ERROR: USER SUBROUTINE UMAT IS MISSING

any ideas on how to solve this issue?

Job-1.JPG

andrew_4619
Valued Contributor III
1,650 Views

There is nothing useful in the error data shown and nothing that suggests the problem is anything to do with Fortran. Either show some useful / relevant error data of maybe going to an ABAQUS forum would be a better idea.

Ivo
Beginner
1,574 Views

Hi, many thanks for the answer. So the Intel oneAPI HPC Toolkit can be used instead of Parallel Studio and no license has to be purchased?

mecej4
Black Belt
1,565 Views

Ivo, correct on both points. Do note, however, that most of us do not have Abaqus (I do not), so we cannot tell you whether the Abaqus scripts need slight modifications to make them work with OneAPI HPC Toolkit, but such modifications can be discussed here.