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

Library needed by ESMF not present - Internal subroutine call returned Error #216

Open
kgurer opened this issue Aug 8, 2024 · 3 comments

Comments

@kgurer
Copy link

kgurer commented Aug 8, 2024

Describe the bug

I enhanced "ESMF_all_10.ncl" base sample file to interpolate MPAS output to lat-lon grid as well as to get some additional nc files out and plot the data. However, when I run the ncl script, I come up with the following error that is dumped into:

"PET0.RegridWeightGen.Log" file:

"PET0 /home/conda/feedstock_root/build_artifacts/esmf_1693581303648/work/src/Infrastructure/Mesh/src/ESMCI_Mesh_FileIO.C:298 ESMCI_mesh_create_from_file() Library needed by ESMF not present - This functionality requires ESMF to be built with the PIO library enabled.

20240808 083318.872 ERROR PET0 ESMCI_MeshCap.C:2600 MeshCap::meshcreatefromfilenew() Library needed by ESMF not present - Internal subroutine call returned Error

20240808 083318.872 ERROR PET0 ESMF_Mesh.F90:1969 ESMF_MeshCreateFromFile() Library needed by ESMF not present - Internal subroutine call returned Error"

Provide the following:

  • a concise NCL script demonstrating the issue (remove unnecessary code) ("ter_limited_mpas_to_latlon_ncl.txt" and "PET0.RegridWeightGen.Log" files)
  • necessary data files (too big to put here. It is the first MPAS I/O file (static) that is generated to run MPAS.
  • relevant graphical output (no graphical output is generated).

When I run the ncl script (ter_limited_mpas_to_latlon.ncl), "limited_area_0.1deg_src_grid.nc" and "limited_area_0.1deg_dst_grid.nc" files are generated, but the weight file (limited_area_0.1deg_wgt_grid.nc" is not generated and the script stops.

Computing environment

  • OS: [Linux)
  • OS version: 4.18.0-553.8.1.el8_10.x86_64
  • NCL Version: 6.6.2
  • Installation method: conda

Additional context

Attached files"

ter_limited_mpas_to_latlon_ncl.txt
PET0.RegridWeightGen.Log

@kafitzgerald
Copy link
Contributor

I suspect you could be running into this issue conda-forge/esmf-feedstock#101. You might check what version of ESMF you have installed in your environment (conda list).

It looks like the issue was already addressed so updating your environment may help or you could try changing the version of ESMF.

@kgurer
Copy link
Author

kgurer commented Aug 9, 2024

I have esmf 8.4.2 and conda 23.3.1 installed on our system as it was done by our IT manager. I was able to run ncl without any problems last year. The system software was upgraded a few months ago and then this problem now occurs. It appears that the latest version of ncl/esmf doesn't have some libraries, in particular PIO library enabled, as the error log indicates. Hence, is there a previous version of ncl/esmf with support libraries including pio, so I can install it at my local directory and run ncl there? Thanks.

@kgurer
Copy link
Author

kgurer commented Aug 9, 2024

I found :
ncl 6.6.2 at "https://www.ncl.ucar.edu/Download/"
esmf 8.6.0 at "https://github.com/esmf-org/esmf/tree/v8.6.0"

I will try to install them (also bringing required libraries including pio) and see what happens.

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