Add minor syntax changes (extra spaces here and there). Also move the verbose statments to after the return so they actually get run!
More minor changes to the script (make the fprintf more idiomatic
Make the construction of the combined struct be a little less complicated whilst maintaining the same functionality
Add support for parallel execution of the vertical sigma layer interpolations. In addition to this function being launched in parallel, the subfunction grid_vert_interp.m is also parallelised. Although, now that I think about it, that might mean the two functions are competing for the workers in the pool and thus might be suboptimal. I will have to run some tests to see if that is the case
Add parallel loop support in the loop through the positions in the regular grid. This function only interpolates the regularly gridded POLCOMS vertical grid onto the FVCOM vertical grid; horizontal gridding happens afterwards in interp_POLCOMS2FVCOM. Also update the comments to better reflect what is actually being done in this function
Make the interpolation of the regularly gridded data to the unstructured grid occur in parallel. So far as I can tell (and have tested) this has not changed the results of the interpolation, but the speedup is significant (from almost interminable to over in the blink of an eye). Getting the loop to be able to be parallelised required refactoring the code a bit (mainly through the creation of intermediate arrays), but as I said, it seems to have improved things speed-wise