Implemented a profile resorter and introduce convenience variables nmax
and ntot in the grid file to have shortcuts to total number of cells
Remove write statemet
Fixed the last bugs... Function has to work now!
Added dummy functions in the serial code for the new MPI calls
Remove the write statements and fixed the counting bug
Clean up the sorting code and make the comments consistent with what is
happening...
Implemented a routine to calculate the potential energy budget
Incorporate nonequidistant grids into the potential energy calculation
Add ghost cells for the profile to allow for interpolation
Add interpolation to the routines to get them more accurate
Add an improved statistics script
Edit the labels in the statistics file
Add the TKE to the stats
Add a energy budget
Interpolate the sort value based on the value of the bin
Cover the exception where the field value is exactly the bin value
Prevent the index from going out of bounds if the sorting searched
beyond the grid size
Updated the algorithm with mor eaccurate interpolations
Remove the biases from the sort function
Interpolate the buoyancy as well