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

Compilation Aborted (code 1) Error

Manish_G_
Beginner
6,808 Views

Hello,

I tried to compile a fortran source code  in Visual studio ultimate 2013 with update 5. I am using a Intel XE parallel studio _update 6 compiler (Free for students) and they are already linked. When I compile for my source code, i get 2 errors. I would be highly helpful if someone could help me out with this.

The source code (basically subroutine) was written in visual studio itself.

I am attaching my build log.

Thanks in Advance!

0 Kudos
7 Replies
andrew_4619
Honored Contributor III
6,808 Views
the include file 'ABA_PARAM.INC' needs to be in your source directory or in the include path set
0 Kudos
mecej4
Honored Contributor III
6,808 Views

See your Abaqus documentation for what to put into the file aba_param.inc, if you do not already have that file. The include file usually contains something similar to:

      implicit real*8(a-h,o-z)
      parameter (nprecd=2)

You need to make the directory containing that file accessible through the INCLUDE environment variable or through a corresponding setting in Visual Studio.

 

0 Kudos
Manish_G_
Beginner
6,808 Views

Hi,

Thanks andrew and mecej for the reply. I did try what you had said, but still the error does not go. I added the file "aba_param_dp" in the directory that contains the source code and made the directory accessible through "Additional Include Directories" in visual studio and then tried to compile it.

I think the compiler needs the "aba_param" file as this is what is contained in the source code, but i cannot find this file anywhere in the abaqus installation directory. The only two files that i find are 

"aba_param_sp"

"aba_param_dp"

Could you tell me what shall i do now to remove the error..? can i rename the "aba_param_dp" to "aba_param" and then try to compile. will that work or not.?

Thanks in Advance!

 

 

0 Kudos
mecej4
Honored Contributor III
6,808 Views

Few of us can help you with Abaqus in this forum, but it seems reasonable that you are expected to copy one of the two files that you have to aba_params.inc before proceeding. Note the suffix 'inc'. The full file name should match the name in the INCLUDE line in your source code.

0 Kudos
andrew_4619
Honored Contributor III
6,808 Views

Google is your friend, I found:

Regarding the included file, the ABAQUS preprocessor automatically copies ABA_PARAM_SP.INC or ABA_PARAM_DP.INC as ABA_PARAM.INC depending on which executable you have requested (/Standard or /Explicit). If you look at either, you will see that they only declare "implicit real*8(a-h, o-z)" or "implicit real*4(a-h, o-z)", so you can omit it if you don't want implicit declarations (I personally declare "implicit none", in order to get errors for undefined variables)

You really need to read thq ABAQUS manual or go to an ABAQUS support forum. I think the problem you have is how to integrate ifort and Abaqus  a subject on which 99.9% of users of this forum (myself included) will know nothing....

0 Kudos
Manish_G_
Beginner
6,808 Views

Hi andrew & mecej4,

Thanks again.!

As andrew said, that the preprocessor, automatically detects and uses the correct file so i dont think file name is the problem. Additionally if i omit, it would give me more errors than now, so i intend to use the include aba_param.inc statement.As andrew suggested, the problem that i may be having is to integrate ifort and abaqus is also not right i think, as when i run the sub routine using "abajus job = filename.inp user = fortran.for"  command it works perfectly and it gives me results. 

I simply want to compile and see directly in Visual studio for compilation errors to which i get the 2 errors mentioned earlier. So, i think the problem is definitely with the inclusion of aba_param.inc file. please could you suggest any other method that i could try and see if the error might get resolved.I could send you the source code or any other file that may assist you to figure the problem, as I cant understand this and it is really frustating me.

Thanks in Advance!

0 Kudos
andrew_4619
Honored Contributor III
6,808 Views

if the include is as mecej3 suggests which i believe it is you just need to copy ABA_PARAM_DP.INC to your source directory and rename it to ABA_PARAM.INC and then it should compile ( I presume your source uses real(8)  - double precision - DP). It seems when ABAQUS invokes ifort it does this copy automatically an choses SP or DP, whichever is relevant to the user specified job control.

 

.

 

 

0 Kudos
Reply