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
FloatingPointError: invalid value encountered in sqrt #362
Comments
@xxu99 can you post the input file you are using that is causing this error please. |
I get this error too. A little research has shown that |
@woiler103 can you provide an input file you are using that creates the error. Thanks. |
So far this error is no longer showing up after update gprMax-devel today. Great, thanks! |
This problem still arises from time to time, I am running the cylinder_fs.py demo file. |
@xxu99 can you be more specific please to help us investigate. |
Today when running my configuration, this error appeared again. I ran cylinder_fs.py, the error also appears.
My conda info:
|
I also got this error after updating the recent script.
and then the subgrids example cylinder_fs.py run correctly and got the results (h5 and vti format). |
|
@DragonLT ,yeah,I'm not sure whether the upmentioned correction is right or wrong.I handled it the same way you did.But I haven't added that yet, and he's relatively stable at the moment. Usually, I restart the computer or the compiler |
Hello Craig, after the latest commit on Dec 22, I am not seeing this error anymore. |
Hello Craig, unfortunately I called it too soon, it took longer than usual but I am still seeing the same error. |
Building PML boundaries [main_grid]: 0%| | 0/4 [00:00<?, ?it/s]Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "d:\doctor\gpr\gprmax\gprMax_main.py", line 6, in
gprMax.gprMax.cli()
File "d:\doctor\gpr\gprmax\gprMax\gprMax.py", line 195, in cli
results = run_main(args)
^^^^^^^^^^^^^^
File "d:\doctor\gpr\gprmax\gprMax\gprMax.py", line 224, in run_main
results = context.run()
^^^^^^^^^^^^^
File "d:\doctor\gpr\gprmax\gprMax\contexts.py", line 79, in run
model.build()
File "d:\doctor\gpr\gprmax\gprMax\model_build_run.py", line 74, in build
self.reuse_geometry() if config.get_model_config().reuse_geometry else self.build_geometry()
^^^^^^^^^^^^^^^^^^^^^
File "d:\doctor\gpr\gprmax\gprMax\model_build_run.py", line 191, in build_geometry
gb.build_pmls()
File "d:\doctor\gpr\gprmax\gprMax\model_build_run.py", line 364, in build_pmls
build_pml(self.grid, pml_id, thickness)
File "d:\doctor\gpr\gprmax\gprMax\pml.py", line 707, in build_pml
pml.calculate_update_coeffs(averageer, averagemr)
File "d:\doctor\gpr\gprmax\gprMax\pml.py", line 291, in calculate_update_coeffs
cfs.calculate_sigmamax(self.d, er, mr, self.G)
File "d:\doctor\gpr\gprmax\gprMax\pml.py", line 95, in calculate_sigmamax
self.sigma.max = (0.8 * (m + 1)) / (config.sim_config.em_consts["z0"] * d * np.sqrt(er * mr))
^^^^^^^^^^^^^^^^
FloatingPointError: invalid value encountered in sqrt
The text was updated successfully, but these errors were encountered: