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

Intel(R) Fortran Compiler 10.0.025 thinks scalar is assumed-size array. Bug?

davisr
Beginner
1,587 Views

In a subroutine that starts

Subroutine PopulateThis (This)
Type (MaterialBurnupStepType), intent (InOut):: This

when Intel Fortran Compiler 10.0.025 encounters the statement

This % NuclideBurnupStep (:) = WimsBurnupStep % NumberDensity % Density (I_Material_Wims, :)

it declares the error

Error1 Error: An assumed-size array shall not be written as a whole array reference except as an actual argument in a procedure reference for which the shape is not required. [NUCLIDEBURNUPSTEP]

The argument, This, is a scalar, not an array. There is no assumed-size array anywhere, since there is no asterisk in a dimension statement anywhere.This % NuclideBurnupStep (:)is a well-defined array (pointer) component of This, as is evidenced by the correct interpretation of theimmediately antecedentstatements

Do I_Nuclide = 1, Size (This % NuclideBurnupStep)
This % NuclideBurnupStep (I_Nuclide) = NewNuclideBurnupStep (This, I_Nuclide)
End do

Is this a bug? If not, please explain how I have defined an assumed-size array without using an asterisk, in a pointer to an array.

This code worked in CVF.

Regards,
Ron Davis

0 Kudos
5 Replies
Steven_L_Intel1
Employee
1,587 Views
We need to see a minimal but complete source that shows the problem. Also, have you tried 10.1.024?
0 Kudos
davisr
Beginner
1,587 Views

From where can I download Version 10.1.024? Every link I try takes me to a download of 10.0.025.

0 Kudos
Kevin_D_Intel
Employee
1,587 Views

1. Login into the Intel Registration and Download Center (IRC) (https://registrationcenter.intel.com) using your Intel Premier Account credentials.

2. On the default landing page, click on the 10.1 (024) or whatever version appears in the Downloads column corresponding to the Product name Intel Visual Fortran Compiler Professional Edition for Windows* with IMSL* for the Intel Visual Fortran Compiler for Windows* with IMSL* sub-product. There will be two versions listed. The one for Math Kernel Library for Windows* you do not want.

3. When the next screen appears, if the download version you clicked in the previous step was 10.1 (024) then the new screen will list the download files for the 10.1.024 update. If files listed are from another update like 10.0.025, then use the Release and Minor Version pull-down sections at the bottom of the download files area to select 10.1 and 024.

0 Kudos
Steven_L_Intel1
Employee
1,587 Views
Note that your support license needs to be current in order to see and install 10.1.024.
0 Kudos
davisr
Beginner
1,587 Views

Thank you both for your help. I haveinstalled the new version.

Concerning the problem that started this thread, I don't know whether the download made the difference because I made my code more explicit, which I should have done anyway, so the compiler no longer needs to interpret the bare comma. There is another reason I don't know whether the new version is important, and in case anyone gives any more attention to this thread, don't.

After another problem, and an inability to reproduce the problem in a smaller program, I discovered that under Properties ? Configuration Properties ? Fortran ? Preprocessor ? Additional Include Directories, where a list of several long directory names is crammed into a tiny space, there was a reference to a directory full of .mod files prepared by CVF. Correcting that sure corrected a lot of problems. I am going around all my other problem postings on this site to ensure that noboby wastes any (more) time on this problem.

0 Kudos
Reply