Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

I encountered an error during compilation. #25

Open
banzhiqing opened this issue Oct 24, 2023 · 2 comments
Open

I encountered an error during compilation. #25

banzhiqing opened this issue Oct 24, 2023 · 2 comments

Comments

@banzhiqing
Copy link

Dear developers,

Greetings! I would like to inquire about an issue I encountered while compiling Hos-ocean on Ubuntu 20.04. Could you kindly assist me in understanding the root cause of the following error?
sources/HOS/velocities.f90:1259:41:

1256 | DO ii2=1,n2
| 2
......
1259 | k=SQRT(kx(ii1)**2+ky(ii2)**2)
| 1
Warning: Array reference at (1) out of bounds (64 > 1) in loop beginning at (2)
sources/HOS/velocities.f90:1260:63:

1256 | DO ii2=1,n2
| 2
......
1260 | M(index1,index2) = exp(i*(kx(ii1)*x(i1)+ky(ii2)*y(i2)))EXP(keta(i1,i2))
| 1
Warning: Array reference at (1) out of bounds (64 > 1) in loop beginning at (2)
sources/HOS/velocities.f90:1260:70:

1253 | DO i2=1,n2
| 2
......

sources/utilities/Bivar.f90:524:49:

524 | if ( vpdt(x1,y1,x2,y2,xii,yii) ) 36,25,26
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
sources/utilities/Bivar.f90:530:50:

530 | if(vpdt(x2,y2,x3,y3,xii,yii)) 36,27,28
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
sources/utilities/Bivar.f90:534:50:

534 | if(vpdt(x3,y3,x1,y1,xii,yii)) 36,29,30
| 1
Warning: Fortran 2018 deleted feature: Arithmetic IF statement at (1)
sources/utilities/Bivar.f90:648:50:

648 | if(vpdt(x1,y1,x2,y2,xii,yii)) 46,45,56
| 1

@gducrozet
Copy link
Member

It seems that there is an issue with the size of the allocated vectors. As a first test, you can try to force the compilation of the whole set of routines
make clean
make all

@banzhiqing
Copy link
Author

Thank you very much for your responses; my questions have been resolved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants