| /petsc/src/snes/tests/output/ |
| H A D | ex2_1.out | 385 [0]Point 0 is in Cell 0 386 [0]Point 1 is in Cell 1 387 [0]Point 2 is in Cell 2 388 [0]Point 3 is in Cell 3 389 [0]Point 4 is in Cell 4 390 [0]Point 5 is in Cell 5 391 [0]Point 6 is in Cell 6 392 [0]Point 7 is in Cell 7 393 [0]Point 8 is in Cell 8 394 [0]Point 9 is in Cell 9 [all …]
|
| H A D | ex2_5.out | 385 [0]Point 0 is in Cell 0 386 [0]Point 1 is in Cell 1 387 [0]Point 2 is in Cell 2 388 [0]Point 3 is in Cell 3 389 [0]Point 4 is in Cell 4 390 [0]Point 5 is in Cell 5 391 [0]Point 6 is in Cell 6 392 [0]Point 7 is in Cell 7 393 [0]Point 8 is in Cell 8 394 [0]Point 9 is in Cell 9 [all …]
|
| H A D | ex2_3.out | 385 [0]Point 0 is in Cell 0 386 [0]Point 1 is in Cell 1 387 [0]Point 2 is in Cell 2 388 [0]Point 3 is in Cell 3 389 [0]Point 4 is in Cell 4 390 [0]Point 5 is in Cell 5 391 [0]Point 6 is in Cell 6 392 [0]Point 7 is in Cell 7 393 [0]Point 8 is in Cell 8 394 [0]Point 9 is in Cell 9 [all …]
|
| H A D | ex2_7.out | 28 [0]Point 0 is in Cell 9 29 [0]Point 1 is in Cell 129 30 [0]Point 2 is in Cell 128 31 [0]Point 3 is in Cell 11 32 [0]Point 4 is in Cell 10 33 [0]Point 5 is in Cell 130 34 [0]Point 6 is in Cell 27 35 [0]Point 7 is in Cell 19 36 [0]Point 8 is in Cell 18 37 [0]Point 9 is in Cell 75 [all …]
|
| H A D | ex2_6.out | 28 [0]Point 0 is in Cell 0 29 [0]Point 1 is in Cell 2 30 [0]Point 2 is in Cell 2 31 [0]Point 3 is in Cell 0 32 [0]Point 4 is in Cell 0 33 [0]Point 5 is in Cell 2 34 [0]Point 6 is in Cell 0 35 [0]Point 7 is in Cell 0 36 [0]Point 8 is in Cell 0 37 [0]Point 9 is in Cell 1 [all …]
|
| H A D | ex2_9.out | 28 [0]Point 0 is in Cell 0 29 [0]Point 1 is in Cell 2 30 [0]Point 2 is in Cell 2 31 [0]Point 3 is in Cell 0 32 [0]Point 4 is in Cell 0 33 [0]Point 5 is in Cell 2 34 [0]Point 6 is in Cell 0 35 [0]Point 7 is in Cell 0 36 [0]Point 8 is in Cell 0 37 [0]Point 9 is in Cell 1 [all …]
|
| H A D | ex2_8.out | 28 [0]Point 0 is in Cell 0 29 [0]Point 1 is in Cell 2 30 [0]Point 2 is in Cell 2 31 [0]Point 3 is in Cell 0 32 [0]Point 4 is in Cell 0 33 [0]Point 5 is in Cell 2 34 [0]Point 6 is in Cell 0 35 [0]Point 7 is in Cell 0 36 [0]Point 8 is in Cell 0 37 [0]Point 9 is in Cell 1 [all …]
|
| H A D | ex2_11.out | 55 [0]Point 0 is in Cell 9 56 [0]Point 1 is in Cell 129 57 [0]Point 2 is in Cell 128 58 [0]Point 3 is in Cell 11 59 [0]Point 4 is in Cell 10 60 [0]Point 5 is in Cell 130 61 [0]Point 6 is in Cell 27 62 [0]Point 7 is in Cell 19 63 [0]Point 8 is in Cell 18 64 [0]Point 9 is in Cell 75 [all …]
|
| H A D | ex2_10.out | 55 [0]Point 0 is in Cell 0 56 [0]Point 1 is in Cell 2 57 [0]Point 2 is in Cell 2 58 [0]Point 3 is in Cell 0 59 [0]Point 4 is in Cell 0 60 [0]Point 5 is in Cell 2 61 [0]Point 6 is in Cell 0 62 [0]Point 7 is in Cell 0 63 [0]Point 8 is in Cell 0 64 [0]Point 9 is in Cell 1 [all …]
|
| /petsc/src/vec/is/is/tests/output/ |
| H A D | ex13_2.out | 21 is[00] identical to is[0] 22 is[01] identical to is[0] 23 is[02] identical to is[0] 24 is[03] identical to is[0] 25 is[04] identical to is[0] 26 is[05] identical to is[0] 27 is[06] identical to is[0] 28 is[07] identical to is[0] 29 is[08] identical to is[0] 30 is[09] identical to is[0] [all …]
|
| /petsc/src/vec/is/is/interface/ |
| H A D | index.c | 232 PetscErrorCode ISCreateSubIS(IS is, IS comps, IS *subis) in ISCreateSubIS() argument 242 PetscValidHeaderSpecific(is, IS_CLASSID, 1); in ISCreateSubIS() 246 PetscCall(PetscObjectGetComm((PetscObject)is, &comm)); in ISCreateSubIS() 248 PetscCall(ISGetLocalSize(is, &nroots)); in ISCreateSubIS() 263 PetscCall(PetscLayoutFindOwnerIndex(is->map, comps_indices[i], &owner, &lidx)); in ISCreateSubIS() 273 PetscCall(ISGetIndices(is, &is_indices)); in ISCreateSubIS() 276 PetscCall(ISRestoreIndices(is, &is_indices)); in ISCreateSubIS() 299 PetscErrorCode ISClearInfoCache(IS is, PetscBool clear_permanent_local) in ISClearInfoCache() argument 304 PetscValidHeaderSpecific(is, IS_CLASSID, 1); in ISClearInfoCache() 305 PetscValidType(is, 1); in ISClearInfoCache() [all …]
|
| H A D | isreg.c | 27 PetscErrorCode ISCreate(MPI_Comm comm, IS *is) in ISCreate() argument 30 PetscAssertPointer(is, 2); in ISCreate() 33 PetscCall(PetscHeaderCreate(*is, IS_CLASSID, "IS", "Index Set", "IS", comm, ISDestroy, ISView)); in ISCreate() 34 PetscCall(PetscLayoutCreate(comm, &(*is)->map)); in ISCreate() 35 (*is)->compressOutput = PETSC_TRUE; in ISCreate() 62 PetscErrorCode ISSetType(IS is, ISType method) in ISSetType() argument 68 PetscValidHeaderSpecific(is, IS_CLASSID, 1); in ISSetType() 69 PetscCall(PetscObjectTypeCompare((PetscObject)is, method, &match)); in ISSetType() 74 …PetscCheck(r, PetscObjectComm((PetscObject)is), PETSC_ERR_ARG_UNKNOWN_TYPE, "Unknown IS type: %s",… in ISSetType() 75 PetscTryTypeMethod(is, destroy); in ISSetType() [all …]
|
| /petsc/src/vec/is/is/impls/block/ |
| H A D | block.c | 14 static PetscErrorCode ISDestroy_Block(IS is) in ISDestroy_Block() argument 16 IS_Block *sub = (IS_Block *)is->data; in ISDestroy_Block() 20 PetscCall(PetscObjectComposeFunction((PetscObject)is, "ISBlockSetIndices_C", NULL)); in ISDestroy_Block() 21 PetscCall(PetscObjectComposeFunction((PetscObject)is, "ISBlockGetIndices_C", NULL)); in ISDestroy_Block() 22 PetscCall(PetscObjectComposeFunction((PetscObject)is, "ISBlockRestoreIndices_C", NULL)); in ISDestroy_Block() 23 PetscCall(PetscObjectComposeFunction((PetscObject)is, "ISBlockGetSize_C", NULL)); in ISDestroy_Block() 24 PetscCall(PetscObjectComposeFunction((PetscObject)is, "ISBlockGetLocalSize_C", NULL)); in ISDestroy_Block() 25 PetscCall(PetscObjectComposeFunction((PetscObject)is, "ISShift_C", NULL)); in ISDestroy_Block() 26 PetscCall(PetscFree(is->data)); in ISDestroy_Block() 30 static PetscErrorCode ISLocate_Block(IS is, PetscInt key, PetscInt *location) in ISLocate_Block() argument [all …]
|
| /petsc/src/vec/is/is/impls/stride/ |
| H A D | stride.c | 12 static PetscErrorCode ISCopy_Stride(IS is, IS isy) in ISCopy_Stride() argument 14 IS_Stride *is_stride = (IS_Stride *)is->data, *isy_stride = (IS_Stride *)isy->data; in ISCopy_Stride() 21 static PetscErrorCode ISShift_Stride(IS is, PetscInt shift, IS isy) in ISShift_Stride() argument 23 IS_Stride *is_stride = (IS_Stride *)is->data, *isy_stride = (IS_Stride *)isy->data; in ISShift_Stride() 31 static PetscErrorCode ISDuplicate_Stride(IS is, IS *newIS) in ISDuplicate_Stride() argument 33 IS_Stride *sub = (IS_Stride *)is->data; in ISDuplicate_Stride() 36 …PetscCall(ISCreateStride(PetscObjectComm((PetscObject)is), is->map->n, sub->first, sub->step, newI… in ISDuplicate_Stride() 40 static PetscErrorCode ISInvertPermutation_Stride(IS is, PetscInt nlocal, IS *perm) in ISInvertPermutation_Stride() argument 45 PetscCall(ISGetInfo(is, IS_IDENTITY, IS_GLOBAL, PETSC_TRUE, &isident)); in ISInvertPermutation_Stride() 46 …IU_Allreduce(MPI_IN_PLACE, &samelocal, 1, MPI_C_BOOL, MPI_LAND, PetscObjectComm((PetscObject)is))); in ISInvertPermutation_Stride() [all …]
|
| /petsc/src/vec/is/tests/ |
| H A D | ex6.c | 5 PetscErrorCode TestRenumber(IS is, IS mult) in TestRenumber() argument 11 PetscCall(PetscPrintf(PetscObjectComm((PetscObject)is), "\n-----------------\n")); in TestRenumber() 12 PetscCall(PetscPrintf(PetscObjectComm((PetscObject)is), "\nInitial\n")); in TestRenumber() 13 PetscCall(ISView(is, NULL)); in TestRenumber() 15 PetscCall(PetscPrintf(PetscObjectComm((PetscObject)is), "\nMult\n")); in TestRenumber() 18 PetscCall(ISRenumber(is, mult, &N, NULL)); in TestRenumber() 19 …PetscCall(PetscPrintf(PetscObjectComm((PetscObject)is), "\nRenumbered, unique entries %" PetscInt_… in TestRenumber() 20 PetscCall(ISRenumber(is, mult, NULL, &nis)); in TestRenumber() 28 IS is; in main() local 39 PetscCall(ISCreateStride(PETSC_COMM_WORLD, 0, 0, 0, &is)); in main() [all …]
|
| /petsc/src/vec/is/is/impls/general/ |
| H A D | general.c | 7 static PetscErrorCode ISDuplicate_General(IS is, IS *newIS) in ISDuplicate_General() argument 9 IS_General *sub = (IS_General *)is->data; in ISDuplicate_General() 13 PetscCall(PetscLayoutGetLocalSize(is->map, &n)); in ISDuplicate_General() 14 …PetscCall(ISCreateGeneral(PetscObjectComm((PetscObject)is), n, sub->idx, PETSC_COPY_VALUES, newIS)… in ISDuplicate_General() 15 PetscCall(PetscLayoutGetBlockSize(is->map, &bs)); in ISDuplicate_General() 20 static PetscErrorCode ISDestroy_General(IS is) in ISDestroy_General() argument 22 IS_General *is_general = (IS_General *)is->data; in ISDestroy_General() 26 PetscCall(PetscObjectComposeFunction((PetscObject)is, "ISGeneralSetIndices_C", NULL)); in ISDestroy_General() 27 PetscCall(PetscObjectComposeFunction((PetscObject)is, "ISGeneralFilter_C", NULL)); in ISDestroy_General() 28 PetscCall(PetscObjectComposeFunction((PetscObject)is, "ISGeneralSetIndicesFromMask_C", NULL)); in ISDestroy_General() [all …]
|
| /petsc/src/vec/is/is/tests/ |
| H A D | ex13.c | 11 …ErrorCode CreateIS(MPI_Comm comm, PetscInt type, PetscInt n, PetscInt first, PetscInt step, IS *is) in CreateIS() argument 23 PetscCall(ISCreateGeneral(comm, n, idx, PETSC_OWN_POINTER, is)); in CreateIS() 26 PetscCall(ISCreateStride(comm, n, first, step, is)); in CreateIS() 31 PetscCall(ISCreateBlock(comm, 1, n, idx, PETSC_OWN_POINTER, is)); in CreateIS() 39 IS is[128]; in main() local 49 PetscCall(PetscArrayzero(is, PETSC_STATIC_ARRAY_LENGTH(is))); in main() 57 PetscCall(CreateIS(comm, type, n, first + offset, step, &is[j])); in main() 60 PetscCall(CreateIS(comm, type, n, first + offset, step, &is[j])); in main() 61 PetscCall(ISCopy(is[j], is[j])); in main() 65 PetscCall(ISDuplicate(tmp, &is[j])); in main() [all …]
|
| H A D | ex1.c | 15 IS is, newis; in main() local 28 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, 0, &n, PETSC_COPY_VALUES, &is)); in main() 29 PetscCall(ISGetSize(is, &n)); in main() 31 PetscCall(ISDestroy(&is)); in main() 39 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, n, indices, PETSC_COPY_VALUES, &is)); in main() 40 PetscCall(ISGetIndices(is, &ii)); in main() 42 PetscCall(ISRestoreIndices(is, &ii)); in main() 48 PetscCall(ISPermutation(is, &flg)); in main() 50 PetscCall(ISGetInfo(is, IS_PERMUTATION, IS_LOCAL, compute, &flg)); in main() 53 PetscCall(ISIdentity(is, &flg)); in main() [all …]
|
| H A D | ex1f.F90 | 14 IS is, newis 24 PetscCallA(ISCreateGeneral(PETSC_COMM_SELF, n, indices, PETSC_COPY_VALUES, is, ierr)) 25 PetscCallA(ISGetLocalSize(is, n, ierr)) 27 PetscCallA(ISDestroy(is, ierr)) 35 PetscCallA(ISCreateGeneral(PETSC_COMM_SELF, n, indices, PETSC_COPY_VALUES, is, ierr)) 36 PetscCallA(ISGetIndices(is, ii, ierr)) 40 PetscCallA(ISRestoreIndices(is, ii, ierr)) 46 PetscCallA(ISPermutation(is, flag, ierr)) 48 PetscCallA(ISGetInfo(is, IS_PERMUTATION, IS_LOCAL, compute, flag, ierr)) 49 PetscCallA(ISIdentity(is, flag, ierr)) [all …]
|
| H A D | ex2.c | 14 IS is; in main() local 23 PetscCall(ISCreateStride(PETSC_COMM_SELF, 0, 0, 2, &is)); in main() 24 PetscCall(ISGetSize(is, &n)); in main() 26 PetscCall(ISStrideGetInfo(is, &start, &stride)); in main() 29 PetscCall(PetscObjectTypeCompare((PetscObject)is, ISSTRIDE, &flg)); in main() 31 PetscCall(ISGetIndices(is, &ii)); in main() 32 PetscCall(ISRestoreIndices(is, &ii)); in main() 33 PetscCall(ISDestroy(&is)); in main() 38 PetscCall(ISCreateStride(PETSC_COMM_SELF, 10000, -8, 3, &is)); in main() 39 PetscCall(ISGetLocalSize(is, &n)); in main() [all …]
|
| H A D | ex7.c | 10 IS is; in TestGeneral() local 13 PetscCall(ISCreateGeneral(comm, n, idx, PETSC_COPY_VALUES, &is)); in TestGeneral() 14 PetscCall(ISLocate(is, key, &location)); in TestGeneral() 16 PetscCall(ISLocate(is, nonkey, &location)); in TestGeneral() 18 PetscCall(ISSort(is)); in TestGeneral() 19 PetscCall(ISLocate(is, key, &location)); in TestGeneral() 21 PetscCall(ISLocate(is, nonkey, &location)); in TestGeneral() 23 PetscCall(ISDestroy(&is)); in TestGeneral() 34 IS is; in TestBlock() local 37 PetscCall(ISCreateBlock(comm, bs, n, idx, PETSC_COPY_VALUES, &is)); in TestBlock() [all …]
|
| H A D | ex2f.F90 | 12 IS is 22 PetscCallA(ISCreateStride(PETSC_COMM_SELF, ssize, stride, first, is, ierr)) 23 PetscCallA(ISGetLocalSize(is, n, ierr)) 26 PetscCallA(ISStrideGetInfo(is, start, stride, ierr)) 30 PetscCallA(PetscObjectTypeCompare(is, ISSTRIDE, flag, ierr)) 32 PetscCallA(ISGetIndices(is, ii, ierr)) 33 PetscCallA(ISRestoreIndices(is, ii, ierr)) 34 PetscCallA(ISDestroy(is, ierr)) 41 PetscCallA(ISCreateStride(PETSC_COMM_SELF, ssize, stride, first, is, ierr)) 42 PetscCallA(ISGetLocalSize(is, n, ierr)) [all …]
|
| /petsc/src/dm/impls/stag/tests/ |
| H A D | ex17.c | 36 IS is; in main() local 40 PetscCall(DMStagCreateISFromStencils(dm, 1, &s, &is)); in main() 42 PetscCall(ISView(is, PETSC_VIEWER_STDOUT_WORLD)); in main() 43 PetscCall(ISDestroy(&is)); in main() 46 IS is; in main() local 50 PetscCall(DMStagCreateISFromStencils(dm, 1, &s, &is)); in main() 52 PetscCall(ISView(is, PETSC_VIEWER_STDOUT_WORLD)); in main() 53 PetscCall(ISDestroy(&is)); in main() 56 IS is; in main() local 62 PetscCall(DMStagCreateISFromStencils(dm, 2, s, &is)); in main() [all …]
|
| /petsc/src/vec/is/utils/ |
| H A D | isio.c | 6 PetscErrorCode ISView_Binary(IS is, PetscViewer viewer) in ISView_Binary() argument 17 PetscCall(ISGetLayout(is, &map)); in ISView_Binary() 28 PetscCall(ISGetIndices(is, &iarray)); in ISView_Binary() 30 PetscCall(ISRestoreIndices(is, &iarray)); in ISView_Binary() 39 static PetscErrorCode ISLoad_HDF5(IS is, PetscViewer viewer) in ISLoad_HDF5() argument 45 …PetscCheck(((PetscObject)is)->name, PetscObjectComm((PetscObject)is), PETSC_ERR_SUP, "IS name must… in ISLoad_HDF5() 46 PetscCall(PetscObjectGetName((PetscObject)is, &isname)); in ISLoad_HDF5() 48 PetscCall(PetscViewerHDF5Load(viewer, isname, is->map, H5T_NATIVE_LLONG, (void **)&ind)); in ISLoad_HDF5() 50 PetscCall(PetscViewerHDF5Load(viewer, isname, is->map, H5T_NATIVE_INT, (void **)&ind)); in ISLoad_HDF5() 52 PetscCall(ISGeneralSetIndices(is, is->map->n, ind, PETSC_OWN_POINTER)); in ISLoad_HDF5() [all …]
|
| /petsc/src/ts/tests/ |
| H A D | ex5_control.txt | 19 - Default initiation is a west-east temperature gradient, wind = 0, and two high pressure perturbat… 23 - All temperature is in degrees Fahrenheit. 24 - Fraction is from 0 to 1. where 0=0% of sky covered by clouds, 1 = 100% of sky covered by clouds (… 25 - Wind speed is in miles per hour 26 - Precipitable water is in centimeters 27 - Wind direction is from 0 to 360. where 0 is wind from north, 90 is east, 180 is south, 270 is wes… 28 - Runtime is in hours 32 - Wind input is only used for latent and sensible heat fluxes. The dynamic winds do not affect the … 33 - Model is not designed to be run for longer than 15 hours
|