Quantcast
Channel: Intel® Software - Intel® Fortran Compiler for Linux* and macOS*
Viewing all articles
Browse latest Browse all 2746

compilation error while building code

$
0
0

Hi,

I have been trying to compile a file with the following variable definitions. And I use the intel 15 set of compilers.

integer (int_kind), parameter :: max_blocks_clinic = 65

.

.

.

.

integer (int_kind) :: nblocks_x=8

integer (int_kind) :: nblocks_y=8

type tlt_info

        real (r8), dimension(nx_block,ny_block,max_blocks_clinic) :: &
           DIABATIC_DEPTH,  &   ! depth of the diabatic region at the
                                !  surface, i.e. mean mixed or boundary layer
                                !  depth
           THICKNESS,       &   ! transition layer thickness
           INTERIOR_DEPTH       ! depth at which the interior, adiabatic
                                !  region starts, i.e.
                                !   = TLT%DIABATIC_DEPTH + TLT%THICKNESS
        integer (int_kind), &
           dimension(nx_block,ny_block,max_blocks_clinic) :: &
           K_LEVEL,  &          ! k level at or below which the interior,
                                !  adiabatic region starts
           ZTW                  ! designates if the interior region
                                !  starts below depth zt or zw.
                                !  ( = 1 for zt, = 2 for zw )
      end type tlt_info

However I got the following error.

loop.F90(55): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression.   [DIABATIC_DEPTH]
           DIABATIC_DEPTH,  &   ! depth of the diabatic region at the
-----------^
loop.F90(58): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression.   [THICKNESS]
           THICKNESS,       &   ! transition layer thickness
-----------^
loop.F90(59): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression.   [INTERIOR_DEPTH]
           INTERIOR_DEPTH       ! depth at which the interior, adiabatic
-----------^
loop.F90(64): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression.   [K_LEVEL]
           K_LEVEL,  &          ! k level at or below which the interior,
-----------^
loop.F90(66): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression.   [ZTW]
           ZTW                  ! designates if the interior region

Any help on how this can be resolved???


Viewing all articles
Browse latest Browse all 2746

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>