Massive-Parallel Trajectory Calculations (MPTRAC) is a Lagrangian particle dispersion model for the analysis of atmospheric transport processes in the free troposphere and stratosphere.
there is a bug in the netCDF grid output, I think.
When you use strcat() to build the netCDF variable names, it will overwrite the original data of the ctl struct. So the code crashes here with a netCDF error message:
Hi Mingzhao,
there is a bug in the netCDF grid output, I think.
When you use strcat() to build the netCDF variable names, it will overwrite the original data of the ctl struct. So the code crashes here with a netCDF error message:
https://github.com/slcs-jsc/mptrac/blob/8dee3a1775f66c95e8afaf3b671f3f9fb5fdadfa/src/libtrac.c#L6736
You need to create a new string to make this work, e.g.
Can you please take a look?
Thanks Lars