This module provides the routine that computes the costs of tree boxes.

name | description |
---|---|

Subroutines contained in this interface:

name | description |
---|---|

This routine computes the cost of a set of boxes. | |

This routine computes the cost of a set of boxes. |

This routine computes the cost of a set of boxes.

Note | |
---|---|

The cost of a particle is counted as pcost (if given) or 1. For meshes, the cost is 1 per mesh point. For the geometry part, the cost of a box is given by its volume. Use weights(3) to adjust this if needed. |

name | type | dimension | intent | optional | description |
---|---|---|---|---|---|

integer array | (:,:) | (IN) | Number of grid points in each box. | ||

real array | (3) | (IN) | Weights for the three cost contributions: particles, mesh, | ||

real array | (:,:) | (IN) | The minimum coordinate of the boxes. | ||

real array | (:,:) | (IN) | The maximum coordinate of the boxes. | ||

integer | (IN) | Number of boxes to compute cost for. | |||

integer array | (:) | (IN) | Pointer to first particle in each box to determine cost for. | ||

integer array | (:) | (IN) | Index list of points in each box to determine cost for. | ||

real array | (:) | Costs of the boxes 1..nbox. boxcost(i) is the cost of box boxes(i). | |||

integer | (OUT) | Return status, 0 on success | |||

real array | (:) | (IN) |
| Argument of length Npart, specifying the |

integer array, `(:,:)`

, (IN)

Number of grid points in each box.

real array, `(3)`

, (IN)

Weights for the three cost contributions: particles, mesh, geometry for defining the total cost of a box.

real array, `(:,:)`

, (IN)

The minimum coordinate of the boxes.

1st index: x,y[,z] 2nd: box ID

real array, `(:,:)`

, (IN)

The maximum coordinate of the boxes.

1st index: x,y[,z] 2nd: box ID

integer, , (IN)

Number of boxes to compute cost for.

integer array, `(:)`

, (IN)

Pointer to first particle in each box to determine cost for. This only needs to be present if there are any particles.

integer array, `(:)`

, (IN)

Index list of points in each box to determine cost for. This only needs to be present if there are any particles.

real array, `(:)`

, no intent declared

Costs of the boxes 1..nbox. boxcost(i) is the cost of box boxes(i).

integer, , (OUT)

Return status, 0 on success

real array, `(:)`

, (IN)

Argument of length Npart, specifying the computational cost of each particle.

ppm_module_data, ppm_module_error, ppm_module_substop, ppm_module_data_tree, ppm_module_write, ppm_module_substart

This routine computes the cost of a set of boxes.

Note | |
---|---|

The cost of a particle is counted as pcost (if given) or 1. For meshes, the cost is 1 per mesh point. For the geometry part, the cost of a box is given by its volume. Use weights(3) to adjust this if needed. |

name | type | dimension | intent | optional | description |
---|---|---|---|---|---|

integer array | (:,:) | (IN) | Number of grid points in each box. | ||

real array | (3) | (IN) | Weights for the three cost contributions: particles, mesh, | ||

real array | (:,:) | (IN) | The minimum coordinate of the boxes. | ||

real array | (:,:) | (IN) | The maximum coordinate of the boxes. | ||

integer | (IN) | Number of boxes to compute cost for. | |||

integer array | (:) | (IN) | Pointer to first particle in each box to determine cost for. | ||

integer array | (:) | (IN) | Index list of points in each box to determine cost for. | ||

real array | (:) | Costs of the boxes 1..nbox. boxcost(i) is the cost of box boxes(i). | |||

integer | (OUT) | Return status, 0 on success | |||

real array | (:) | (IN) |
| Argument of length Npart, specifying the |

integer array, `(:,:)`

, (IN)

Number of grid points in each box.

real array, `(3)`

, (IN)

Weights for the three cost contributions: particles, mesh, geometry for defining the total cost of a box.

real array, `(:,:)`

, (IN)

The minimum coordinate of the boxes.

1st index: x,y[,z] 2nd: box ID

real array, `(:,:)`

, (IN)

The maximum coordinate of the boxes.

1st index: x,y[,z] 2nd: box ID

integer, , (IN)

Number of boxes to compute cost for.

integer array, `(:)`

, (IN)

Pointer to first particle in each box to determine cost for. This only needs to be present if there are any particles.

integer array, `(:)`

, (IN)

Index list of points in each box to determine cost for. This only needs to be present if there are any particles.

real array, `(:)`

, no intent declared

Costs of the boxes 1..nbox. boxcost(i) is the cost of box boxes(i).

integer, , (OUT)

Return status, 0 on success

real array, `(:)`

, (IN)

Argument of length Npart, specifying the computational cost of each particle.

ppm_module_data, ppm_module_error, ppm_module_substop, ppm_module_data_tree, ppm_module_write, ppm_module_substart