Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

Convert_mpas Error: Problems opening output file

jfqbsm

Member
Hi,
I'm trying to implement MPAS following the MPAS tutorial practice guide. So far everything is working fine.
In paragraph 3.3 when I run the convert_mpas utility I get the following output:

root@cluster2:/home/240km_uniform# convert_mpas history.2014-09-14_12.00.00.nc
Reading MPAS mesh information from file 'history.2014-09-14_12.00.00.nc'

Target domain specification file 'target_domain' not found.
Default 0.5-degree global target domain will be used.


Computing remapping weights
Time to compute remap weights: 2.621616 s
Error: Problems opening output file
STOP 5
I don't see what's wrong and how to debug this problem.
Any suggestion would be very helpful
Thanks in advance
 
Is there an existing 'latlon.nc' file in your working directory? And, if so what are the file permissions?

Also, which compiler and NetCDF library versions are you using?
 
Hello,

There is no latlon.nc file and the utility runs under root.
I used the iolib_installation script to install all libraries under ubuntu gcc version 7.5.0 .
 
Hello,
I noticed that there was an another existing netcdf library on the system. So there may have been a mix-up during compilation time, therefore i decided to clean the installation and do a fresh install from scratch. I'll keep you inform as soon as i have tried again.
 
Hello,
After doing a new install and try again convert_mpas i have a new error and get the following output:
root@cluster2:/home/240km_uniform# convert_mpas history.2024-09-15_00.00.00.nc
Reading MPAS mesh information from file 'history.2024-09-15_00.00.00.nc'

Target domain specification file 'target_domain' not found.
Default 0.5-degree global target domain will be used.


Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0 0x150d426bb2ed in ???
#1 0x150d426ba503 in ???
#2 0x150d41886f0f in ???
#3 0x55fda40c6fb9 in __netcdf_MOD_nf90_open
at /home/duda/sources/netcdf-fortran-4.4.5/fortran/netcdf4_file.f90:39
#4 0x55fda4058a31 in ???
#5 0x55fda4058f8e in ???
#6 0x55fda4068e64 in ???
#7 0x55fda405509e in ???
#8 0x150d41869c86 in ???
#9 0x55fda40550c9 in ???
#10 0xffffffffffffffff in ???
Segmentation fault (core dumped)
 
Hello,
As far as i can understand the previous error show me that the convert_mpas program can't open the history.nc file. As during the first test convert_mpas could open the same history.nc file, i compiled the netcdf library with --disable-netcdf-4 option (as the library was built the first time) , and then tried again to run convert_mpas. So the history.nc is opened but i got the same error i got the first time. In addition i added debug instructions in the convert_mpas where the program try to create latlon.nc file, so i got the following message: erreurNetCDF: Attempt to use feature that was not turned on when netCDF was built.
Any help will be welcome.
Thanks in advance
 
Hello,
Good news, finally it works fine, after clearing all environment variables and installing again all libraries from scratch.
 
Top