GRIDMAN
grid managment library
|
Merge two 2D grids. More...
Go to the source code of this file.
Functions/Subroutines | |
subroutine | gridman_grid2d_merge (GRID, GRID1, GRID2, TOL, IERR) |
Merge two 2D grids by connecting their boundary edges. More... | |
Merge two 2D grids.
Definition in file merge.f.
subroutine gridman_grid2d_merge | ( | type(gridman_grid) | GRID, |
type(gridman_grid) | GRID1, | ||
type(gridman_grid) | GRID2, | ||
real(gridman_dp), intent(in) | TOL, | ||
integer, intent(out) | IERR | ||
) |
Merge two 2D grids by connecting their boundary edges.
GRID2 is merged into GRID1 by connecting their boundary edges.
WARNING: the object GRID must not be equal to GRID1 or GRID2!
WARNING: The object GRID will be overwritten if already exists!
WARNING: the algorithm implemented at the moment assumes that edges of GRID1 and GRID2 which overlap with each over can be completely removed. That is, there are no "hanging tails" which do not belong to the intersection
Units of GRID are same as units of GRID1
grid | Resulting grid object | |
grid1 | First grid which stays intact | |
grid2 | Second grid which is merged into the first one | |
[in] | tol | Relative accuracy of the points coordinates |
Recommended value TOL=1e-5. It might be necessary to increase or decrease TOL in each individual case.
[out] | ierr | Error code |
Definition at line 39 of file merge.f.
References gridman::gridman_dp, gridman_grid2d_check(), gridman_grid_allocate(), gridman_index_copy(), gridman_index_transform(), and gridman::gridman_sp.
Referenced by mergegrid().