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

#add_grass command gives ValueError with gpu #234

Closed
eyyupT opened this issue Dec 16, 2019 · 6 comments
Closed

#add_grass command gives ValueError with gpu #234

eyyupT opened this issue Dec 16, 2019 · 6 comments

Comments

@eyyupT
Copy link

eyyupT commented Dec 16, 2019

#add_grass command gives
ValueError: index 32000 is out of bounds for array with size 32000.

I have tried different sizes but every time i got this error.
Operating system : Ubuntu 16.04
gprMax version : v3.1.5
@craig-warren
ValueError

@craig-warren
Copy link
Member

@eyyupT can you supply the input file you are using, or a simple example that exhibits the behaviour.

@eyyupT
Copy link
Author

eyyupT commented Dec 20, 2019

@craig-warren
#title: gpr_11202
#domain: 1.0 0.12 0.4
#dx_dy_dz: 0.001 0.001 0.001
#time_window: 2500

#num_threads: 6

#material: 3.0 0.01 1.0 0.0 plastic

#soil_peplinski: 0.5 0.5 2.0 2.66 0.001 0.25 heterogeneous_soil
#fractal_box: 0 0 0 1.0 0.12 0.3 1.5 1 1 1 50 heterogeneous_soil my_fractal_box
#add_grass: 0 0 0.3 1.0 0.12 0.3 1.5 0.28 0.32 100000 my_fractal_box

#cylinder: 0.5 0.06 0.24 0.5 0.06 0.28 0.028 plastic

#python:
from user_libs.antennas import antenna_like_GSSI_1500
antenna_like_GSSI_1500(0.1 + current_model_run * 0.01, 0.06, 0.35, 0.001)
#end_python:

this input file gives following error

11201_hata

I guess the number 120000 is the product of dimension in x and y coordinate (1000x120)

I tried above input file with below code to reduce grass area and to get rid of error
#add_grass: 0.1 0.04 0.3 0.9 0.08 0.3 1.5 0.28 0.32 10000 my_fractal_box

and the i got error with the number 32000 (grass area =800x40).
I run the simulation 80 times to get 80 A-scans. Error arise randomly not a specific simulation. Thus, you need to run simulation 80 times to get same error.

Thank you so much.

Best Regards

@eyyupT
Copy link
Author

eyyupT commented Jan 12, 2020

@craig-warren any improvement ?

@craig-warren
Copy link
Member

@eyyupT can you provide a basic example of this behaviour that consistently gives the error. When I tested your examples the model ran without any error. What are the differences in your 80 A-scans?

@eyyupT
Copy link
Author

eyyupT commented Jan 13, 2020

@craig-warren antenna moves 0.1 cm in each simulation.

@craig-warren
Copy link
Member

@eyyupT thanks, but can you provide a basic example (input file) that exhibits this behaviour consistently?

@craig-warren craig-warren closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2022
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

2 participants