You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there,
I found another strange behavior when I was trying to regrid 3D unstructured meshes with conservative regridding using esmpy 8.7 from conda-forge on linux with python 3.10.
For some resolutions I get a segfault. Here is a minimal working example using PyVista grids:
The important part is res1, res2 = 10, 10, which sets the input- and output resolution. For me, it only works when:
res1 <= res2 (strange, since I typically want a coarser output grid when using conservative regridding), and
if res1 and res2 have an integer ratio
So, res1, res2 = 10, 10 works fine, res1, res2 = 5, 10 and res1, res2 = 10, 20 also, but res1, res2 = 10, 5 or res1, res2 = 10, 12 just gives a segfault and nothing more.
Note that regrid_method=esmpy.RegridMethod.NEAREST_STOD works for all resolution combinations.
Do you have any idea what went wrong here?
Here the images for res1, res2 = 10, 10 as references:
Cheers,
Sebastian
The text was updated successfully, but these errors were encountered:
Thanks for letting us know. we will take a look and get back to you. Please note that because of backlogs, we may take a bit longer than usual to do so. Thanks for the patience.
Do you get a back trace with your segmentation fault? In particular, can you tell if it's occurring in the creation of one of the Field objects? I'm wondering if it's similar to the error I just encountered and am looking into: #326 (comment)
Do you get a back trace with your segmentation fault? In particular, can you tell if it's occurring in the creation of one of the Field objects? I'm wondering if it's similar to the error I just encountered and am looking into: #326 (comment)
Actually, I'm guessing your problem has a different cause, because the problem I encountered in #326 turned out not to be directly due to the creation of a Field object. The fix in 6d5fdfe does fix some Segfault issues with ESMPy, but at a glance at your code, it doesn't look like it would be likely to fix your issue. If it's easy for you to apply that patch and retry, you could do so, but I don't have high hopes.
Hey there,
I found another strange behavior when I was trying to regrid 3D unstructured meshes with conservative regridding using esmpy 8.7 from conda-forge on linux with python 3.10.
For some resolutions I get a segfault. Here is a minimal working example using PyVista grids:
The important part is
res1, res2 = 10, 10
, which sets the input- and output resolution. For me, it only works when:So,
res1, res2 = 10, 10
works fine,res1, res2 = 5, 10
andres1, res2 = 10, 20
also, butres1, res2 = 10, 5
orres1, res2 = 10, 12
just gives a segfault and nothing more.Note that
regrid_method=esmpy.RegridMethod.NEAREST_STOD
works for all resolution combinations.Do you have any idea what went wrong here?
Here the images for
res1, res2 = 10, 10
as references:Cheers,
Sebastian
The text was updated successfully, but these errors were encountered: