Segmentation fault when regridding #268
-
Requirements
Affiliation(s)AirMettle, Inc ESMF Version8.6.0 IssueI am trying to use the ESMC library to regrid tensors obtained from reading NetCDF files. I am running into an issue where the first time I call regrid a file I get the correct expected output. But the second time, I get a segfault. I am running this with ESMF_COMM="mpiuni". I can provide more specifics but the general structure of the smallest failing example code is
l have made sure to check that the return code is always =
Any help finding the issue is much appreciated! Autotag |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@AbhiHampiholi Reproducer |
Beta Was this translation helpful? Give feedback.
@AbhiHampiholi
We have this documented in the ESMF Fortran Reference Guide but I see that it's not documented in the ESMF C Reference Guide. I know that in Fortran you cannot call ESMF Initialize after Finalize. Try moving the ESMC_Initialize and ESMC_Finalize outside of the loop.
Reproducer
test_268.tgz