Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fortran runtime error: Index '23' of dimension 2 of array 'scxf' above upper bound of 22 #10

Closed
Aki-halas opened this issue Dec 17, 2022 · 6 comments

Comments

@Aki-halas
Copy link

Hello, I got the following error when I ran the program:
[root@Z textXD]# ../src/DSurfTomo DSurfTomo.in

                          DSurfTomo (v1.3)

PLEASE contact Hongjain Fang (fanghj@mail.ustc.edu.cn) if you find any bug

model origin:latitude,longitue
28.2215 102.5475
grid spacing:latitude,longitue
0.0005 0.0005
model dimension:nx,ny,nz
10 10 9
Rayleigh wave phase velocity used,periods:(s)
0.0 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2
At line 255 of file main.f90
Fortran runtime error: Index '23' of dimension 2 of array 'scxf' above upper bound of 22
About the period I set in DSurfTomo.in:0.04 0.05 0.06 0.07 0.08 0.09 0.10 0.11 0.12 0.13 0.14 0.15 0.16 0.17 0.18 0.19 0.20 0.21 0.22 0.23 0.24 0.25
I really hope to get your help, thank you very much.

@HongjianFang
Copy link
Owner

Hi,
You may need to increase the source number parameter in your input file (the 8th line) to at least, or larger than, the number of your stations.

Cheers,
Hongjian Fang

@Aki-halas
Copy link
Author

Thanks, this error has been resolved.But it seems that a new error has been encountered.I can make sure that both the source and receiver are within the scope of the set model, so I don't know why the error is being reported.Then, it seems that the period and depth parameters can only be read to one decimal place, can this be changed?
[root@Z textXD]# ../src/DSurfTomo DSurfTomo.in

                          DSurfTomo (v1.3)

PLEASE contact Hongjain Fang (fanghj@mail.ustc.edu.cn) if you find any bug

model origin:latitude,longitue
28.2281 102.5437
grid spacing:latitude,longitue
0.0010 0.0010
model dimension:nx,ny,nz
10 10 9
Rayleigh wave group velocity used,periods:(s)
0.0 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2
Number of all measurements 14
grid points in depth direction:(km)
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
computing sensitivity matrix...
Source lies outside bounds of model (lat,long)= 90.0000000 0.00000000
TERMINATING PROGRAM!!!

@HongjianFang
Copy link
Owner

I have not tested the program for very small scales. The problem seems to do with the origin point you set.

@Bazzi26
Copy link

Bazzi26 commented Nov 7, 2023

Thanks, this error has been resolved.But it seems that a new error has been encountered.I can make sure that both the source and receiver are within the scope of the set model, so I don't know why the error is being reported.Then, it seems that the period and depth parameters can only be read to one decimal place, can this be changed? [root@Z textXD]# ../src/DSurfTomo DSurfTomo.in

                          DSurfTomo (v1.3)

PLEASE contact Hongjain Fang (fanghj@mail.ustc.edu.cn) if you find any bug

model origin:latitude,longitue 28.2281 102.5437 grid spacing:latitude,longitue 0.0010 0.0010 model dimension:nx,ny,nz 10 10 9 Rayleigh wave group velocity used,periods:(s) 0.0 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 Number of all measurements 14 grid points in depth direction:(km) 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 computing sensitivity matrix... Source lies outside bounds of model (lat,long)= 90.0000000 0.00000000 TERMINATING PROGRAM!!!

Hi, have you solve the error?

@HongjianFang
Copy link
Owner

It looks like sth wrong with your data format. I would check it first and then the parameters in the input file.

@Bazzi26
Copy link

Bazzi26 commented Nov 9, 2023

It looks like sth wrong with your data format. I would check it first and then the parameters in the input file.

Thanks,I‘ll check it again.

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

No branches or pull requests

3 participants