Home
last modified time | relevance | path

Searched refs:fid (Results 1 – 10 of 10) sorted by relevance

/petsc/lib/petsc/bin/
H A Dpetsc_conf.py44 fid = open(petscvariables, 'r')
49 for line in fid:
53 fid.close()
56 fid = open(petscconfinclude, 'r')
61 for line in fid:
71 fid.close()
H A DPetscBinaryIO.py403 def readObjectType(self, fid): argument
406 header = np.fromfile(fid, dtype=self._inttype, count=1)[0]
416 def readBinaryFile(self, fid, mattype='sparse'): argument
436 if isinstance(fid, basestring):
437 fid = open(fid, 'rb')
443 objecttype = self.readObjectType(fid)
446 objects.append(self.readVec(fid))
448 objects.append(self.readIS(fid))
450 objects.append(self.readMat(fid,mattype))
452 objects.append(self.readReal(fid))
[all …]
/petsc/share/petsc/matlab/
H A DPetscReadBinaryMatlab.m17 fid=fopen(filename,'r');
18 if (fid == -1)
21 str=fgets(fid);
39 str=fgets(fid);
41 fclose(fid);
H A DPetscBagRead.m59 fid = fopen(petscbagh,'rt'); variable
60 if (fid<0)
68 while ~feof(fid)
69 lin = fgetl(fid);
83 fclose(fid);
/petsc/src/ksp/ksp/impls/fetidp/
H A Dfetidp.c652 PetscInt fid = fidp[i]; in KSPFETIDPSetUpOperators() local
654fid >= 0 && fid < pcbddc->n_ISForDofsLocal, PetscObjectComm((PetscObject)ksp), PETSC_ERR_USER, "In… in KSPFETIDPSetUpOperators()
656 … PetscCall(ISOnComm(pcbddc->ISForDofsLocal[fid], PETSC_COMM_SELF, PETSC_COPY_VALUES, &tis[i])); in KSPFETIDPSetUpOperators()
662 PetscInt fid = fidp[i]; in KSPFETIDPSetUpOperators() local
664fid >= 0 && fid < pcbddc->n_ISForDofs, PetscObjectComm((PetscObject)ksp), PETSC_ERR_USER, "Invalid… in KSPFETIDPSetUpOperators()
665 PetscCall(PetscObjectReference((PetscObject)pcbddc->ISForDofs[fid])); in KSPFETIDPSetUpOperators()
666 tis[i] = pcbddc->ISForDofs[fid]; in KSPFETIDPSetUpOperators()
/petsc/src/dm/impls/swarm/
H A Dswarm.c288 PetscInt bs, nlocal, fid = -1, cfid = -2; in DMSwarmDestroyVectorFromField_Private() local
293 PetscCall(DMSwarmDataBucketGetDMSwarmDataFieldIdByName(swarm->db, fieldname, &fid)); in DMSwarmDestroyVectorFromField_Private()
296fid, PetscObjectComm((PetscObject)dm), PETSC_ERR_USER, "Vector being destroyed was not created fro… in DMSwarmDestroyVectorFromField_Private()
312 PetscInt bs, n, fid; in DMSwarmCreateVectorFromField_Private() local
340 PetscCall(DMSwarmDataBucketGetDMSwarmDataFieldIdByName(swarm->db, fieldname, &fid)); in DMSwarmCreateVectorFromField_Private()
341 PetscCall(PetscObjectComposedDataSetInt((PetscObject)*vec, SwarmDataFieldId, fid)); in DMSwarmCreateVectorFromField_Private()
357 PetscInt fid; in DMSwarmDestroyVectorFromFields_Private() local
359 PetscCall(DMSwarmDataBucketGetDMSwarmDataFieldIdByName(swarm->db, fieldnames[f], &fid)); in DMSwarmDestroyVectorFromFields_Private()
360 id += fid; in DMSwarmDestroyVectorFromFields_Private()
435 PetscInt fid; in DMSwarmCreateVectorFromFields_Private() local
[all …]
/petsc/src/dm/impls/plex/
H A Dplexegads.c1108 int Nf, fid, periodic[2]; in DMPlexCreateGeom_Internal() local
1118 fid = EGlite_indexBodyTopo(body, face); in DMPlexCreateGeom_Internal()
1120 fid = EG_indexBodyTopo(body, face); in DMPlexCreateGeom_Internal()
1123 …R_PLIB, "Loop %d has %" PetscInt_FMT " faces, instead of 1 (%" PetscInt_FMT ")", lid - 1, Nf, fid); in DMPlexCreateGeom_Internal()
1360 int lid, Nf, fid, Ner = 0, Ne, e, Nt = 0, t; in DMPlexCreateGeom_Internal() local
1372 fid = EGlite_indexBodyTopo(body, fobjs[0]); in DMPlexCreateGeom_Internal()
1376 fid = EG_indexBodyTopo(body, fobjs[0]); in DMPlexCreateGeom_Internal()
1441 PetscCall(DMLabelSetValue(faceLabel, cOff + t, fid)); in DMPlexCreateGeom_Internal()
2999 PetscInt fid, Ne, Nn; in DMPlex_Surface_Grad() local
3029 fid = EGlite_indexBodyTopo(body, face); in DMPlex_Surface_Grad()
[all …]
/petsc/src/snes/tutorials/
H A Dex56.c299 PetscInt fid[] = {1}; /* The fixed faces (x=0) */ in main() local
340 …PetscCall(DMAddBoundary(dm, DM_BC_ESSENTIAL, "fixed", label, Nfid, fid, 0, Ncomp, components, (Pet… in main()
/petsc/src/ts/tutorials/
H A Dex30.c599 const PetscInt fid = (PetscInt)PetscRealPart(constants[numConstants]); in average() local
600 obj[0] = u[uOff[fid]]; in average()
/petsc/doc/
H A Dpetsc.bib1561 @Article{ aq-scholz-fid,
1591 @Article{ scholz-fid-seus,