src/bin_grid.f90 File Reference

The pmc_bin_grid module. More...

Classes

struct  pmc_bin_grid::bin_grid_t
 1D grid of size bins. More...

Namespaces

namespace  pmc_bin_grid
 

The bin_grid_t structure and associated subroutines.


Functions

subroutine pmc_bin_grid::bin_grid_alloc (bin_grid, n_bin)
 Allocates a bin_grid.
subroutine pmc_bin_grid::bin_grid_free (bin_grid)
 Frees all memory.
subroutine pmc_bin_grid::vol_to_lnr (r, f_vol, f_lnr)
 Convert a density f(vol)d(vol) to f(ln(r))d(ln(r)) where vol = 4/3 pi r^3.
subroutine pmc_bin_grid::bin_grid_make (bin_grid, n_bin, v_min, v_max)
 Generates the bin grid given the range and number of bins.
real *8 pmc_bin_grid::bin_grid_edge (bin_grid, i)
 Given a bin_grid (which stores the center points of the bins), find the given edge volume (m^3).
integer pmc_bin_grid::bin_grid_particle_in_bin (bin_grid, v)
 Find the bin number that contains a given particle. This assumes logarithmically spaced bins.
subroutine pmc_bin_grid::inout_write_bin_grid (file, bin_grid)
 Write full state.
subroutine pmc_bin_grid::inout_read_bin_grid (file, bin_grid)
 Read full state.
subroutine pmc_bin_grid::spec_read_bin_grid (file, bin_grid)
 Read the specification for a bin_grid from a inout file and generate it.
integer pmc_bin_grid::pmc_mpi_pack_size_bin_grid (val)
 Determines the number of bytes required to pack the given value.
subroutine pmc_bin_grid::pmc_mpi_pack_bin_grid (buffer, position, val)
 Packs the given value into the buffer, advancing position.
subroutine pmc_bin_grid::pmc_mpi_unpack_bin_grid (buffer, position, val)
 Unpacks the given value from the buffer, advancing position.

Detailed Description

The pmc_bin_grid module.


Generated on 29 Mar 2010 for PartMC by  doxygen 1.6.1