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

running remap_land with --print_memory flag fails on Mac OS #191

Open
ilaflott opened this issue Nov 17, 2022 · 0 comments
Open

running remap_land with --print_memory flag fails on Mac OS #191

ilaflott opened this issue Nov 17, 2022 · 0 comments

Comments

@ilaflott
Copy link
Contributor

Describe the bug
Attempting to run remap_land with --print_memory flag results in the following error message on Mac OS:

Error from pe 0: tool_util.c: Can not open ascii file /proc/self/status

The directory structure pointed to on Mac OS does not exist by default, and creating it involves loosening the read-only permissions of this area in Mac OS- not a desirable approach!

To Reproduce
Compile code in build directory as usual, then run code with and without the --print_memory flag

cd build/t/Test10
../../tools/remap_land/remap_land --file_type land --src_mosaic C48_mosaic/C48_mosaic.nc   --dst_mosaic C192_mosaic/C192_mosaic.nc  --src_restart src_restart/land.res   --dst_restart land.res  --dst_cold_restart dst_cold_restart/land.res   --remap_file remap_file_C48_to_C192 --print_memory
../../tools/remap_land/remap_land --file_type land --src_mosaic C48_mosaic/C48_mosaic.nc   --dst_mosaic C192_mosaic/C192_mosaic.nc  --src_restart src_restart/land.res   --dst_restart land.res  --dst_cold_restart dst_cold_restart/land.res   --remap_file remap_file_C48_to_C192 

The first execution fails, while the second runs to completion successfully.

Expected behavior
Similar to behavior without the print_memory flag, except actually writing the relevant output to a text file in an area with appropriate permissions under MacOS

System Environment
Describe the system environment, include:

  • OS: MacOS 12.5 (Intel)
  • netCDF Version: 4.9.0
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

1 participant