PartMC  2.6.1
Data Types | Modules | Functions/Subroutines | Variables
bin_grid.F90 File Reference

The pmc_bin_grid module. More...

Go to the source code of this file.

Data Types

type  pmc_bin_grid::bin_grid_t
 1D grid, either logarithmic or linear. More...
 

Modules

module  pmc_bin_grid
 The bin_grid_t structure and associated subroutines.
 

Functions/Subroutines

elemental integer function pmc_bin_grid::bin_grid_size (bin_grid)
 Return the number of bins in the grid, or -1 if the bin grid is not allocated. More...
 
subroutine pmc_bin_grid::vol_to_lnr (r, f_vol, f_lnr)
 Convert a concentration f(vol)d(vol) to f(ln(r))d(ln(r)) where vol = 4/3 pi r^3. More...
 
subroutine pmc_bin_grid::bin_grid_make (bin_grid, type, n_bin, min, max)
 Generates the bin grid given the range and number of bins. More...
 
integer function pmc_bin_grid::bin_grid_find (bin_grid, val)
 Find the bin number that contains a given value. More...
 
real(kind=dp) function, dimension(bin_grid_size(x_bin_grid)) pmc_bin_grid::bin_grid_histogram_1d (x_bin_grid, x_data, weight_data)
 Make a histogram with of the given weighted data, scaled by the bin sizes. More...
 
real(kind=dp) function, dimension(bin_grid_size(x_bin_grid), bin_grid_size(y_bin_grid)) pmc_bin_grid::bin_grid_histogram_2d (x_bin_grid, x_data, y_bin_grid, y_data, weight_data)
 Make a 2D histogram with of the given weighted data, scaled by the bin sizes. More...
 
integer function pmc_bin_grid::pmc_mpi_pack_size_bin_grid (val)
 Determines the number of bytes required to pack the given value. More...
 
subroutine pmc_bin_grid::pmc_mpi_pack_bin_grid (buffer, position, val)
 Packs the given value into the buffer, advancing position. More...
 
subroutine pmc_bin_grid::pmc_mpi_unpack_bin_grid (buffer, position, val)
 Unpacks the given value from the buffer, advancing position. More...
 
logical function pmc_bin_grid::pmc_mpi_allequal_bin_grid (val)
 Check whether all processors have the same value. More...
 
subroutine pmc_bin_grid::bin_grid_netcdf_dim (bin_grid, ncid, dim_name, unit, dimid, long_name, scale)
 Write a bin grid dimension to the given NetCDF file if it is not already present and in any case return the associated dimid. More...
 
subroutine pmc_bin_grid::bin_grid_output_netcdf (bin_grid, ncid, dim_name, unit, long_name, scale)
 Write a bin grid to the given NetCDF file. More...
 
subroutine pmc_bin_grid::bin_grid_input_netcdf (bin_grid, ncid, dim_name, scale)
 Read full state. More...
 

Variables

integer, parameter pmc_bin_grid::bin_grid_type_invalid = 0
 Invalid type of bin grid. More...
 
integer, parameter pmc_bin_grid::bin_grid_type_log = 1
 Logarithmically spaced bin grid. More...
 
integer, parameter pmc_bin_grid::bin_grid_type_linear = 2
 Linearly spaced bin grid. More...
 

Detailed Description

The pmc_bin_grid module.

Definition in file bin_grid.F90.