| /petsc/src/sys/classes/random/impls/curand/ |
| H A D | curand.c | 6 curandGenerator_t gen; member 14 PetscCallCURAND(curandSetPseudoRandomGeneratorSeed(curand->gen, r->seed)); in PetscRandomSeed_CURAND() 27 PetscCallCURAND(curandGenerateUniform(curand->gen, val, nn)); in PetscRandomGetValuesReal_CURAND() 29 PetscCallCURAND(curandGenerateUniformDouble(curand->gen, val, nn)); in PetscRandomGetValuesReal_CURAND() 52 PetscCallCURAND(curandDestroyGenerator(curand->gen)); in PetscRandomDestroy_CURAND() 88 PetscCallCURAND(curandCreateGenerator(&curand->gen, CURAND_RNG_PSEUDO_DEFAULT)); in PetscRandomCreate_CURAND() 89 PetscCallCURAND(curandSetStream(curand->gen, *stream)); in PetscRandomCreate_CURAND() 91 PetscCallCURAND(curandSetGeneratorOrdering(curand->gen, CURAND_ORDERING_PSEUDO_SEEDED)); in PetscRandomCreate_CURAND()
|
| /petsc/src/ts/tutorials/power_grid/stability_9bus/ |
| H A D | ex9busdmnetwork.c | 114 Gen *gen; in read_data() local 184 …PetscCall(PetscCalloc5(NBUS * nc, &bus, NGEN * nc, &gen, NLOAD * nc, &load, NBRANCH * nc + (nc - 1… in read_data() 207 gen[i * 3 + j].id = i * 3 + j; in read_data() 208 gen[i * 3 + j].PG = PG[j]; in read_data() 209 gen[i * 3 + j].QG = QG[j]; in read_data() 210 gen[i * 3 + j].H = H[j]; in read_data() 211 gen[i * 3 + j].Rs = Rs[j]; in read_data() 212 gen[i * 3 + j].Xd = Xd[j]; in read_data() 213 gen[i * 3 + j].Xdp = Xdp[j]; in read_data() 214 gen[i * 3 + j].Xq = Xq[j]; in read_data() [all …]
|
| /petsc/src/snes/tutorials/network/power/ |
| H A D | power.c | 141 …en; j++) PetscCall(DMNetworkAddComponent(networkdm, i, User.compkey_gen, &pfdata->gen[genj++], 0)); in main() 154 PetscCall(PetscFree(pfdata->gen)); in main() 171 GEN gen; in main() 188 gen = (GEN)component; in main() 189 …etscPrintf(PETSC_COMM_SELF,"Rank %d Gen pg = %f qg = %f\n",crank,(double)gen->pg,(double)gen->qg)); in main()
|
| H A D | power2.c | 28 GEN gen; in FormFunction_Subnet() local 103 gen = (GEN)component; in FormFunction_Subnet() 104 if (!gen->status) continue; in FormFunction_Subnet() 105 farr[offset] += -gen->pg / Sbase; in FormFunction_Subnet() 106 farr[offset + 1] += -gen->qg / Sbase; in FormFunction_Subnet() 374 GEN gen; in SetInitialValues_Subnet() local 395 gen = (GEN)component; in SetInitialValues_Subnet() 396 if (!gen->status) continue; in SetInitialValues_Subnet() 397 xarr[offset + 1] = gen->vs; in SetInitialValues_Subnet() 519 …++) PetscCall(DMNetworkAddComponent(networkdm, vtx[i], componentkey[2], &pfdata1->gen[genj++], 0)); in main() [all …]
|
| H A D | pffunctions.c | 250 GEN gen; in FormFunction_Power() local 330 gen = (GEN)component; in FormFunction_Power() 331 if (!gen->status) continue; in FormFunction_Power() 332 farr[offset] += -gen->pg / Sbase; in FormFunction_Power() 333 farr[offset + 1] += -gen->qg / Sbase; in FormFunction_Power() 354 GEN gen; in SetInitialGuess_Power() local 381 gen = (GEN)component; in SetInitialGuess_Power() 382 if (!gen->status) continue; in SetInitialGuess_Power() 383 xarr[offset + 1] = gen->vs; in SetInitialGuess_Power()
|
| H A D | PFReadData.c | 55 PetscCall(PetscCalloc1(pf->ngen, &pf->gen)); in PFReadMatPowerData() 59 Gen = pf->gen; in PFReadMatPowerData() 194 …for (j = 0; j < pf->bus[i].ngen; j++) PetscCall(PetscMemcpy(&newgen[genj++], &pf->gen[pf->bus[i].g… in PFReadMatPowerData() 197 PetscCall(PetscFree(pf->gen)); in PFReadMatPowerData() 199 pf->gen = newgen; in PFReadMatPowerData()
|
| H A D | case9.m | 31 mpc.gen = [
|
| H A D | power.h | 139 GEN gen; member
|
| /petsc/src/dm/impls/plex/tests/output/ |
| H A D | ex98f90_0.out | 1 DM Object: cubit(SquareFaceSet.gen): 08/02/2022: 12:09:03 1 MPI process 3 cubit(SquareFaceSet.gen): 08/02/2022: 12:09:03 in 2 dimensions:
|
| H A D | ex98_0.out | 1 DM Object: cubit(SquareFaceSet.gen): 08/02/2022: 12:09:03 1 MPI process 3 cubit(SquareFaceSet.gen): 08/02/2022: 12:09:03 in 2 dimensions:
|
| /petsc/config/BuildSystem/config/packages/ |
| H A D | CUDA.py | 113 return ''.join(' -arch=sm_'+gen for gen in self.cudaArchList()) 118 return ''.join(' --cuda-gpu-arch=sm_'+gen for gen in self.cudaArchList()) 400 gen = int(output) 404 …self.log.write('petsc-supplied CUDA device query test found the CUDA Capability is '+str(gen)+'\n') 405 self.cudaArch = str(gen)
|
| H A D | kokkos.py | 153 gen = self.cuda.cudaArchSingle() # cudaArchSingle() returns a number, such as '75' or '120' 156 if gen in gens:
|
| /petsc/src/snes/tutorials/network/ |
| H A D | ex1.c | 274 GEN gen; in SetInitialGuess() local 304 gen = (GEN)component; in SetInitialGuess() 305 if (!gen->status) continue; in SetInitialGuess() 306 xarr[offset + 1] = gen->vs; in SetInitialGuess() 584 …Call(DMNetworkAddComponent(networkdm, vtx[i], appctx_power->compkey_gen, &pfdata->gen[genj++], 0)); in main() 635 PetscCall(PetscFree(pfdata->gen)); in main()
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/ |
| H A D | _doc_section.py | 163 … gen = (l.strip() for l in fh if l.lstrip().startswith('#') and 'include' in l and '/*' in l) 165 l.group(2).strip() for l in filter(None, map(self._sowing_include_finder.match, gen))
|
| /petsc/share/petsc/datafiles/meshes/ |
| H A D | testcase3D.cas | 450 (ignition/octane-exp-gen 1.) 451 (ignition/equiv-exp-gen 1.) 452 (ignition/rpm-exp-gen 1.) 453 (ignition/temp-exp-gen 1.) 454 (ignition/press-exp-gen 1.) 455 (ignition/activate-gen 20080) 456 (ignition/octane-gen 90) 457 (ignition/pre-exp-gen 0.0405) 3258 (prepdf/fla-gen-method 1) 3272 (prepdf/fla-gen-expert? #t) [all …]
|