compling COAWST error

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
okami_zxh

compling COAWST error

#1 Unread post by okami_zxh »

Hi all friends,
I am try to compile coawst by using gfortran. When I tried to compile SCRIP_COAWST, there is one error about flags,did someone have the same error before? Here is the error:

Code: Select all

/usr/bin/gfortran -frepack-arrays -O3 -ffast-math -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -c ./kinds_mod.f
/usr/bin/gfortran -frepack-arrays -O3 -ffast-math -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -c ./constants.f
/usr/bin/gfortran -frepack-arrays -O3 -ffast-math -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -c ./iounits.f
/usr/bin/gfortran -frepack-arrays -O3 -ffast-math -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -c ./netcdf.f
/usr/bin/gfortran -frepack-arrays -O3 -ffast-math -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -c ./scripwrap_mod.f
./scripwrap_mod.f:38.48:

        integer(int_kind), allocatable :: istr_w, jstr_w,               &
                                                1
Error: Allocatable component at (1) must be an array
./scripwrap_mod.f:55.48:

        integer(int_kind), allocatable :: istr_o, jstr_o,               &
                                                1
Error: Allocatable component at (1) must be an array
./scripwrap_mod.f:72.48:

        integer(int_kind), allocatable :: istr_a, jstr_a,               &
                                                1
Error: Allocatable component at (1) must be an array
make: *** [scripwrap_mod.o] Error 1

jcwarner
Posts: 1172
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: compling COAWST error

#2 Unread post by jcwarner »

a few other people had similar issues. they were using older version of gfortran that did not allow a value that was a single integer to be allocatable. we suggested to them to upgrade their gfortran and have not herd back so that most likely worked for them. can you try the same?

the posts were at
https://coawstmodel-trac.sourcerepo.com ... ssion/2/56


please post future coawst issues on that trac site.
thanks,
john

Post Reply