Home
last modified time | relevance | path

Searched refs:values (Results 1 – 25 of 353) sorted by relevance

12345678910>>...15

/petsc/src/mat/tests/
H A Dex114.c13 PetscScalar values[N]; in main() local
44 values[0] = -2.0; in main()
45 values[1] = -2.0; in main()
46 values[2] = -2.0; in main()
47 values[3] = -4.0; in main()
48 values[4] = 1.0; in main()
49 values[5] = 1.0; in main()
50 PetscCall(MatSetValues(A, 1, &row, N, indices, values, INSERT_VALUES)); in main()
55 values[0] = -2.0; in main()
56 values[1] = -2.0; in main()
[all …]
H A Dex64.c11 PetscScalar values[16], one = 1.0; in main() local
27 for (i = 0; i < 16; i++) values[i] = i; in main()
28 for (i = 0; i < 4; i++) values[4 * i + i] += 5; in main()
31 PetscCall(MatSetValuesBlocked(A, 1, &i, 1, &j, values, INSERT_VALUES)); in main()
33 for (i = 0; i < 16; i++) values[i] = i; in main()
36 PetscCall(MatSetValuesBlocked(A, 1, &i, 1, &j, values, INSERT_VALUES)); in main()
38 for (i = 0; i < 16; i++) values[i] = i; in main()
41 PetscCall(MatSetValuesBlocked(A, 1, &i, 1, &j, values, INSERT_VALUES)); in main()
43 for (i = 0; i < 16; i++) values[i] = i; in main()
44 for (i = 0; i < 4; i++) values[4 * i + i] += 6; in main()
[all …]
H A Dex29.c9 PetscInt id, val, cnt, *values; in main() local
37 PetscCall(PetscMalloc1(9, &values)); in main()
41 values[cnt++] = val; in main()
45 PetscCall(PetscIntView(cnt, values, PETSC_VIEWER_STDOUT_SELF)); in main()
46 PetscCall(PetscFree(values)); in main()
/petsc/src/ts/tutorials/output/
H A Dex20adj_6.out13 Store in checkpoint number 10 with stage values (located in RAM)
17 Store in checkpoint number 13 with stage values (located in RAM)
22 Restore in checkpoint number 13 with stage values (located in RAM)
24 Restore in checkpoint number 13 with stage values (located in RAM)
26 Restore in checkpoint number 10 with stage values (located in RAM)
27 Store in checkpoint number 11 with stage values (located in RAM)
29 Restore in checkpoint number 11 with stage values (located in RAM)
31 Restore in checkpoint number 10 with stage values (located in RAM)
34 Store in checkpoint number 4 with stage values (located in RAM)
35 Store in checkpoint number 7 with stage values (located in RAM)
[all …]
H A Dex20adj_4.out32 Skip the step from 12 to 13 (stage values already checkpointed)
37 Skip the step from 12 to 13 (stage values already checkpointed)
41 Skip the step from 10 to 11 (stage values already checkpointed)
46 Skip the step from 10 to 11 (stage values already checkpointed)
50 Skip the step from 8 to 9 (stage values already checkpointed)
55 Skip the step from 8 to 9 (stage values already checkpointed)
59 Skip the step from 6 to 7 (stage values already checkpointed)
64 Skip the step from 6 to 7 (stage values already checkpointed)
68 Skip the step from 0 to 1 (stage values already checkpointed)
81 Skip the step from 4 to 5 (stage values already checkpointed)
[all …]
/petsc/src/sys/tests/
H A Dex12.c7 PetscInt i, n = 1000, *values; in main() local
23 PetscCall(PetscMalloc1(n, &values)); in main()
26 values[i] = (PetscInt)(n * value + 2.0); in main()
28 PetscCall(PetscSortInt(n, values)); in main()
35 values[i] = (PetscInt)(n * value + 2.0); in main()
37 PetscCall(PetscSortInt(n, values)); in main()
41 PetscCheck(values[i] >= values[i - 1], PETSC_COMM_SELF, PETSC_ERR_PLIB, "Values not sorted"); in main()
42 … 0) PetscCall(PetscPrintf(PETSC_COMM_SELF, "%" PetscInt_FMT " %" PetscInt_FMT "\n", i, values[i])); in main()
44 PetscCall(PetscFree(values)); in main()
H A Dex5.c8 char **names, **values; in main() local
16 PetscCall(PetscOptionsLeftGet(NULL, &N, &names, &values)); in main()
18 if (values[i]) { in main()
19 …PetscCall(PetscPrintf(PETSC_COMM_WORLD, "Option left: name:-%s value: %s\n", names[i], values[i])); in main()
24 PetscCall(PetscOptionsLeftRestore(NULL, &N, &names, &values)); in main()
/petsc/lib/petsc/bin/
H A Dpetsclogformat.py304values = [100*sumStages[stage][event]["time"]/time,100*sumStages[stage][event]["flops"]/flops,100*…
305 if max(values) > .5:
307 …stage][event]["count"],"&",'%5.0f' % values[0],"&",'%5.0f' % values[1],"&",'%5.0f' % values[2],"&"…
309 …ges[stage][event]["count"]," ",'%5.0f' % values[0],'%5.0f' % values[1],'%5.0f' % values[2],'%5.0…
311values = [100*sumStages[stage][event]["time"]/time,100*sumStages[stage][event]["flops"]/flops]
312 if max(values) > .5:
314 …"&",'%6.0f' % sumStages[stage][event]["count"],"&",'%5.0f' % values[0],"&",'%5.0f' % values[1],"&"…
316 …24),'%6.0f' % sumStages[stage][event]["count"]," ",'%5.0f' % values[0],'%5.0f' % values[1]," "…
/petsc/src/dm/label/tutorials/output/
H A Dex1_0_nsize-1.out3 IS of values
13 IS of values
23 IS of values
30 IS of values
40 IS of values
47 IS of values
54 IS of values
61 IS of values
68 IS of values
75 IS of values
[all …]
H A Dex1_0_nsize-2.out3 IS of values
18 IS of values
33 IS of values
42 IS of values
57 IS of values
66 IS of values
75 IS of values
84 IS of values
93 IS of values
102 IS of values
[all …]
H A Dex1f90_0.out3 IS of values
13 IS of values
23 IS of values
30 IS of values
40 IS of values
47 IS of values
54 IS of values
61 IS of values
/petsc/src/sys/classes/random/tutorials/
H A Dex1.c13 PetscInt i, n = 1000, *values; in main() local
31 PetscCall(PetscMalloc1(n, &values)); in main()
36 values[i] = (PetscInt)(n * PetscRealPart(value) + 2.0); in main()
41 PetscCall(PetscSortInt(n, values)); in main()
49 values[i] = (PetscInt)(n * PetscRealPart(value) + 2.0); in main()
52 PetscCall(PetscSortInt(n, values)); in main()
55 …for (i = 1; i < n; i++) PetscCheck(values[i] >= values[i - 1], PETSC_COMM_SELF, PETSC_ERR_PLIB, "V… in main()
56 PetscCall(PetscFree(values)); in main()
/petsc/src/vec/vec/tests/output/
H A Dex36_1.out1 0: Setting values...
5 1: Setting values...
9 0: Fetching these values from vector...
13 1: Fetching these values from vector...
17 0: Fetched values:
21 1: Fetched values:
/petsc/src/snes/tutorials/network/power/
H A Dpffunctions.c37 PetscScalar values[8]; in FormJacobian_Power_private() local
72 values[0] = 1.0; in FormJacobian_Power_private()
73 values[1] = 0.0; in FormJacobian_Power_private()
74 values[2] = 0.0; in FormJacobian_Power_private()
75 values[3] = 1.0; in FormJacobian_Power_private()
76 PetscCall(MatSetValues(J, 2, row, 2, col, values, ADD_VALUES)); in FormJacobian_Power_private()
87 values[0] = values[1] = values[2] = values[3] = 0.0; in FormJacobian_Power_private()
89 values[1] = 2.0 * Vm * bus->gl / Sbase; in FormJacobian_Power_private()
90 values[3] = -2.0 * Vm * bus->bl / Sbase; in FormJacobian_Power_private()
92 PetscCall(MatSetValues(J, 2, row, 2, col, values, ADD_VALUES)); in FormJacobian_Power_private()
[all …]
H A Dpower2.c165 PetscScalar values[8]; in FormJacobian_Subnet() local
200 values[0] = 1.0; in FormJacobian_Subnet()
201 values[1] = 0.0; in FormJacobian_Subnet()
202 values[2] = 0.0; in FormJacobian_Subnet()
203 values[3] = 1.0; in FormJacobian_Subnet()
204 PetscCall(MatSetValues(J, 2, row, 2, col, values, ADD_VALUES)); in FormJacobian_Subnet()
215 values[0] = values[1] = values[2] = values[3] = 0.0; in FormJacobian_Subnet()
217 values[1] = 2.0 * Vm * bus->gl / Sbase; in FormJacobian_Subnet()
218 values[3] = -2.0 * Vm * bus->bl / Sbase; in FormJacobian_Subnet()
220 PetscCall(MatSetValues(J, 2, row, 2, col, values, ADD_VALUES)); in FormJacobian_Subnet()
[all …]
/petsc/src/sys/classes/draw/utils/
H A Dhists.c23 PetscReal *values; member
84 PetscCall(PetscMalloc2(h->maxValues, &h->values, h->maxValues, &h->weights)); in PetscDrawHGCreate()
166 PetscCall(PetscFree2((*hist)->values, (*hist)->weights)); in PetscDrawHGDestroy()
199 PetscCall(PetscArraycpy(tmp, hist->values, hist->maxValues)); in PetscDrawHGAddValue()
201 PetscCall(PetscFree2(hist->values, hist->weights)); in PetscDrawHGAddValue()
203 hist->values = tmp; in PetscDrawHGAddValue()
232 hist->values[hist->numValues] = value; in PetscDrawHGAddValue()
267 PetscCall(PetscArraycpy(tmp, hist->values, hist->maxValues)); in PetscDrawHGAddWeightedValue()
269 PetscCall(PetscFree2(hist->values, hist->weights)); in PetscDrawHGAddWeightedValue()
271 hist->values = tmp; in PetscDrawHGAddWeightedValue()
[all …]
H A Dbars.c84 PetscCall(PetscFree(bar->values)); in PetscDrawBarSetData()
85 PetscCall(PetscMalloc1(bins, &bar->values)); in PetscDrawBarSetData()
87 PetscCall(PetscArraycpy(bar->values, data, bins)); in PetscDrawBarSetData()
112 PetscCall(PetscFree((*bar)->values)); in PetscDrawBarDestroy()
136 PetscReal xmin, xmax, ymin, ymax, *values, binLeft, binRight; in PetscDrawBarDraw() local
155 values = bar->values; in PetscDrawBarDraw()
161 ymin = PetscMin(ymin, values[i]); in PetscDrawBarDraw()
162 ymax = PetscMax(ymax, values[i]); in PetscDrawBarDraw()
176 PetscCall(PetscSortRealWithPermutation(numValues, values, perm)); in PetscDrawBarDraw()
179 if (values[perm[numValues - i - 1]] < bar->sorttolerance) { in PetscDrawBarDraw()
[all …]
/petsc/src/mat/impls/baij/seq/baijmkl/
H A Dbaijmkl.h11 …_end, col_indx, values) mkl_sparse_s_create_bsr(A, indexing, block_layout, rows, cols, block_size,… argument
13 …_end, col_indx, values) mkl_sparse_d_create_bsr(A, indexing, block_layout, rows, cols, block_size,… argument
17 …_end, col_indx, values) mkl_sparse_c_create_bsr(A, indexing, block_layout, rows, cols, block_size,… argument
19 …_end, col_indx, values) mkl_sparse_z_create_bsr(A, indexing, block_layout, rows, cols, block_size,… argument
/petsc/src/dm/tests/
H A Dex22.c15 PetscScalar *values; in main() local
49 PetscCall(PetscMalloc1(2 * 2 * w * w, &values)); in main()
50 for (i = 0; i < 2 * 2 * w * w; i++) values[i] = i; in main()
51 PetscCall(MatSetValuesBlockedStencil(mat, 2, idx, 2, idy, values, INSERT_VALUES)); in main()
64 PetscCall(PetscFree(values)); in main()
65 PetscCall(VecGetArrayWrite(vec, &values)); in main()
67 for (i = 0; i < size; i++) values[i] = (PetscScalar)(rank + 1); in main()
68 PetscCall(VecRestoreArrayWrite(vec, &values)); in main()
74 PetscCall(PetscFree(values)); in main()
/petsc/src/vec/vec/tests/
H A Dex36.c15 PetscScalar *values; in main() local
38 PetscCall(PetscMalloc1(n, &values)); in main()
42 values[i - istart] = (rank + 1) * i * 2; in main()
48 …FMT "; val[%" PetscInt_FMT "] == %f\n", rank, i, indices[i], i, (double)PetscRealPart(values[i]))); in main()
51 PetscCall(VecSetValues(x, m, indices, values, INSERT_VALUES)); in main()
65 values[i] = -1.0; in main()
74 PetscCall(VecGetValues(x, m, indices, values)); in main()
77 …FMT "; val[%" PetscInt_FMT "] == %f\n", rank, i, indices[i], i, (double)PetscRealPart(values[i]))); in main()
85 PetscCall(PetscFree(values)); in main()
H A Dex16.c9 PetscScalar values[4]; in main() local
26 for (i = 0; i < 4; i++) values[i] = i + 1; in main()
29 PetscCall(VecSetValuesBlocked(x, 2, indices, values, INSERT_VALUES)); in main()
42 for (i = 0; i < 4; i++) values[i] = -(i + 1); in main()
45 PetscCall(VecSetValuesBlocked(x, 2, indices, values, INSERT_VALUES)); in main()
H A Dex15.c9 PetscScalar values[6]; in main() local
24 for (i = 0; i < 6; i++) values[i] = 4.0 * i; in main()
28 PetscCall(VecSetValuesBlocked(x, 2, indices, values, INSERT_VALUES)); in main()
39 for (i = 0; i < 6; i++) values[i] = -4.0 * i; in main()
43 PetscCall(VecSetValuesBlocked(x, 2, indices, values, ADD_VALUES)); in main()
/petsc/src/snes/tests/output/
H A Dex2_4.out119 [0]Field values
128 [1]Field values
134 [2]Field values
140 [3]Field values
146 [4]Field values
/petsc/src/mat/impls/aij/seq/bas/
H A Dspbas.c47 if (matrix.values) { in spbas_memory_requirement()
79 PetscCall(PetscMalloc1(nrows, &result->values)); in spbas_allocate_pattern()
81 result->values = NULL; in spbas_allocate_pattern()
100 PetscBool do_values = (result->values) ? PETSC_TRUE : PETSC_FALSE; in spbas_allocate_data()
119 result->values[0] = result->alloc_val; in spbas_allocate_data()
120 … for (i = 1; i < nrows; i++) result->values[i] = result->values[i - 1] + result->row_nnz[i - 1]; in spbas_allocate_data()
130 PetscCall(PetscMalloc1(r_nnz, &result->values[i])); in spbas_allocate_data()
357 if (matrix.values) PetscCall(PetscFree(matrix.alloc_val)); in spbas_delete()
361 if (matrix.values) { in spbas_delete()
362 for (i = 0; i < matrix.nrows; i++) PetscCall(PetscFree(matrix.values[i])); in spbas_delete()
[all …]
/petsc/src/dm/impls/network/
H A Dnetworkcreate.c88 PetscScalar *values; in VecView_Network_MPI() local
111 PetscCall(PetscCalloc1(len, &values)); in VecView_Network_MPI()
128 values[0] += 1; /* number of edges */ in VecView_Network_MPI()
129 values[k++] = id; in VecView_Network_MPI()
130 values[k++] = nvar; in VecView_Network_MPI()
131 for (i = offset; i < offset + nvar; i++) values[k++] = xv[i]; in VecView_Network_MPI()
149 values[1] += 1; /* number of vertices */ in VecView_Network_MPI()
150 values[k++] = id; in VecView_Network_MPI()
151 values[k++] = nvar; in VecView_Network_MPI()
152 for (i = offset; i < offset + nvar; i++) values[k++] = xv[i]; in VecView_Network_MPI()
[all …]

12345678910>>...15