| da.c (1ed6e3ff8437baa411029a28c2b08f047df9ad9a) | da.c (f13dfd9ea68e0ddeee984e65c377a1819eab8a8a) |
|---|---|
| 1#include <petsc/private/dmdaimpl.h> /*I "petscdmda.h" I*/ 2 3/*@ 4 DMDASetSizes - Sets the number of grid points in the three dimensional directions 5 6 Logically Collective 7 8 Input Parameters: --- 675 unchanged lines hidden (view full) --- 684. da - the `DMDA` object 685 686 Output Parameter: 687. ranks - the neighbors ranks, stored with the x index increasing most rapidly. The process itself is in the list 688 689 Level: intermediate 690 691 Notes: | 1#include <petsc/private/dmdaimpl.h> /*I "petscdmda.h" I*/ 2 3/*@ 4 DMDASetSizes - Sets the number of grid points in the three dimensional directions 5 6 Logically Collective 7 8 Input Parameters: --- 675 unchanged lines hidden (view full) --- 684. da - the `DMDA` object 685 686 Output Parameter: 687. ranks - the neighbors ranks, stored with the x index increasing most rapidly. The process itself is in the list 688 689 Level: intermediate 690 691 Notes: |
| 692 In 2d the array is of length 9, in 3d of length 27 | 692 In 2d the `ranks` is of length 9, in 3d of length 27 |
| 693 694 Not supported in 1d 695 696 Do not free the array, it is freed when the `DMDA` is destroyed. 697 698 Fortran Note: 699 Pass in an array of the appropriate length to contain the values 700 --- 85 unchanged lines hidden (view full) --- 786 PetscValidLogicalCollectiveInt(da, refine_z, 4); 787 788 if (refine_x > 0) dd->refine_x = refine_x; 789 if (refine_y > 0) dd->refine_y = refine_y; 790 if (refine_z > 0) dd->refine_z = refine_z; 791 PetscFunctionReturn(PETSC_SUCCESS); 792} 793 | 693 694 Not supported in 1d 695 696 Do not free the array, it is freed when the `DMDA` is destroyed. 697 698 Fortran Note: 699 Pass in an array of the appropriate length to contain the values 700 --- 85 unchanged lines hidden (view full) --- 786 PetscValidLogicalCollectiveInt(da, refine_z, 4); 787 788 if (refine_x > 0) dd->refine_x = refine_x; 789 if (refine_y > 0) dd->refine_y = refine_y; 790 if (refine_z > 0) dd->refine_z = refine_z; 791 PetscFunctionReturn(PETSC_SUCCESS); 792} 793 |
| 794/*@ | 794/*@C |
| 795 DMDAGetRefinementFactor - Gets the ratios that the `DMDA` grid is refined 796 797 Not Collective 798 799 Input Parameter: 800. da - the `DMDA` object 801 802 Output Parameters: --- 647 unchanged lines hidden --- | 795 DMDAGetRefinementFactor - Gets the ratios that the `DMDA` grid is refined 796 797 Not Collective 798 799 Input Parameter: 800. da - the `DMDA` object 801 802 Output Parameters: --- 647 unchanged lines hidden --- |