I have a similar issue to Lucy above, this is my current setup:
San Diego Super Computer Center - Expanse
```
[cgrudzien@exp-18-46 test_data]$ nf-config --fc
/cm/shared/apps/spack/cpu/opt/spack/linux-centos8-zen2/intel-19.1.1.217/intel-mpi-2019.8.254-6kl5iseo7airrooh6wmqg2m3t5zvnsll/compilers_and_libraries_2020.2.254/linux/mpi/intel64/bin/mpiifort
[cgrudzien@exp-18-46 test_data]$ nf-config --fflags
-I/cm/shared/apps/spack/cpu/opt/spack/linux-centos8-zen2/intel-19.1.1.217/netcdf-fortran-4.5.3-u7d3te2y4gdabhq2yapkiwheqh2abavy/include -I/cm/shared/apps/spack/cpu/opt/spack/linux-centos8-zen2/intel-19.1.1.217/netcdf-fortran-4.5.3-u7d3te2y4gdabhq2yapkiwheqh2abavy/include
[cgrudzien@exp-18-46 test_data]$ nf-config --flibs
-L/cm/shared/apps/spack/cpu/opt/spack/linux-centos8-zen2/intel-19.1.1.217/netcdf-fortran-4.5.3-u7d3te2y4gdabhq2yapkiwheqh2abavy/lib -lnetcdff
```
I was able to successfully compile convert_mpas commit 248de60 with this setup
```
[cgrudzien@exp-18-46 test_data]$ convert_mpas
Usage: convert_mpas mesh-file [data-files]
If only one file argument is given, both the MPAS mesh information and
the fields will be read from the specified file.
If two or more file arguments are given, the MPAS mesh information will
be read from the first file and fields to be remapped will be read from
the subsequent files.
All time records from input files will be processed and appended to
the output file.
1
```
However, when I try to run this on a generic MPAS history file generated from a simulation with MPAS-A 8.0.1 on a shifted 60-3km variable resolution mesh, I get the following error message
```
Reading MPAS mesh information from file 'x20.835586.WestCoast.history.2022-12-23_00_00_00.nc'
Reading target domain specification from file 'target_domain'
Setting nlat = 361
Setting nlon = 720
Setting startlat = -90.00000
Setting startlon = -180.0000
Setting endlat = 90.00000
Setting endlon = 180.0000
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
convert_mpas 000000000044882A for__signal_handl Unknown Unknown
libpthread-2.28.s 00007FFFF5D48CF0 Unknown Unknown Unknown
libnetcdff.so.7.0 00007FFFF79BC117 netcdf_mp_nf90_ge Unknown Unknown
convert_mpas 000000000040CFD4 Unknown Unknown Unknown
convert_mpas 000000000041003A Unknown Unknown Unknown
convert_mpas 0000000000433095 Unknown Unknown Unknown
convert_mpas 000000000040C062 Unknown Unknown Unknown
libc-2.28.so 00007FFFF5629D85 __libc_start_main Unknown Unknown
convert_mpas 000000000040BF6E Unknown Unknown Unknown
```
A `ncdump -h` of the input file is included in the attached. Thanks for your help troubleshooting this.
Investigating further, I think this was just a memory issue, I was able to get this to work by using additional memory / reducing the number of fields that I was interpolating
```
Reading MPAS mesh information from file 'x20.835586.WestCoast.history.2022-12-2
3_00_00_00.nc'
Reading target domain specification from file 'target_domain'
Setting nlat = 361
Setting nlon = 720
Setting startlat = -90.00000
Setting startlon = -180.0000
Setting endlat = 90.00000
Setting endlon = 180.0000
Computing remapping weights
Time to compute remap weights: 1.659505 s
Created a new output file
Reading list of fields to include in remapped output
Found 1 lines in 'include_fields' file
List of fields to be excluded from output ('exclude_fields') not found
Remapping MPAS fields from file 'x20.835586.WestCoast.history.2022-12-23_00_00_
00.nc'
Input file has 1 records
Defining fields in output file
Remapping field rainc, frame 1
read: 0.005019 s
remap: 0.002869 s
write: 0.000445 s
Total runtime: 5.476796
```