Home
last modified time | relevance | path

Searched refs:base (Results 1 – 25 of 137) sorted by relevance

123456

/petsc/src/sys/classes/draw/utils/
H A Daxis.c33 PetscReal x = 0.0, base = 0.0, eps; in PetscADefTicks() local
36 PetscCall(PetscAGetBase(low, high, num, &base, &power)); in PetscADefTicks()
37 PetscCall(PetscAGetNice(low, base, -1, &x)); in PetscADefTicks()
41 if (x < low) x += base; in PetscADefTicks()
44 eps = base / 10; in PetscADefTicks()
47 x += base; in PetscADefTicks()
93 PetscErrorCode PetscAGetNice(PetscReal in, PetscReal base, int sign, PetscReal *result) in PetscAGetNice() argument
99 etmp = in / base + 0.5 + s; in PetscAGetNice()
104 etmp = base * (etmp - m); in PetscAGetNice()
111 PetscReal base, ftemp, e10; in PetscAGetBase() local
[all …]
/petsc/src/mat/utils/
H A Dpheap.c13 HeapNode *base; member
32 #define Value(h, loc) ((h)->base[loc].value)
33 #define Id(h, loc) ((h)->base[loc].id)
40 h->base[loc].id = Id(h, loc2); in Swap()
41 h->base[loc].value = Value(h, loc2); in Swap()
42 h->base[loc2].id = id; in Swap()
43 h->base[loc2].value = val; in Swap()
72 PetscCall(PetscCalloc1(h->alloc, &h->base)); in PetscHeapCreate()
73 h->base[0].id = -1; in PetscHeapCreate()
74 h->base[0].value = PETSC_INT_MIN; in PetscHeapCreate()
[all …]
/petsc/src/sys/objects/
H A Dfcallback.c23 FortranCallbackBase *base = &_classbase[i - PETSC_SMALLEST_CLASSID]; in PetscFortranCallbackFinalize() local
24 FortranCallbackLink next, link = base->subtypes; in PetscFortranCallbackFinalize()
55 FortranCallbackBase *base; in PetscFortranCallbackRegister() local
74 base = &_classbase[classid - PETSC_SMALLEST_CLASSID]; in PetscFortranCallbackRegister()
75 if (!subtype) *id = PETSC_SMALLEST_FORTRAN_CALLBACK + base->basecount++; in PetscFortranCallbackRegister()
77 …for (link = base->subtypes; link; link = link->next) { /* look for either both NULL or matching va… in PetscFortranCallbackRegister()
89 link->next = base->subtypes; in PetscFortranCallbackRegister()
90 base->subtypes = link; in PetscFortranCallbackRegister()
95base->maxsubtypecount = PetscMax(base->maxsubtypecount, link->max - PETSC_SMALLEST_FORTRAN_CALLBAC… in PetscFortranCallbackRegister()
122 FortranCallbackBase *base = &_classbase[classid - PETSC_SMALLEST_CLASSID]; in PetscFortranCallbackGetSizes() local
[all …]
/petsc/config/BuildSystem/config/compile/
H A DC.py41 base, ext = os.path.splitext(source)
44 return base+self.targetExtension
100 base, ext = os.path.splitext(source)
102 return base+'.exe'
103 return base
154 base, ext = os.path.splitext(basename)
156 if not (len(base) > len(prefix) and base[:len(prefix)] == prefix):
157 base = prefix+base
159 base += '.'+self.configCompilers.setCompilers.sharedLibraryExt
161 base += '.'+self.argDB['LD_SHARED_SUFFIX']
[all …]
H A DCxx.py34 base, ext = os.path.splitext(source)
37 return base+'.o'
94 base, ext = os.path.splitext(source)
96 return base+'.exe'
97 return base
149 base, ext = os.path.splitext(basename)
151 if not (len(base) > len(prefix) and base[:len(prefix)] == prefix):
152 base = prefix+base
154 base += '.'+self.configCompilers.setCompilers.sharedLibraryExt
156 base += '.'+self.argDB['LD_SHARED_SUFFIX']
[all …]
/petsc/src/snes/tests/
H A Dex18f90.F9075 subroutine SNESSetFunctionNoInterface(snes_base, x, TestFunction, base, ierr)
80 class(*) :: base
90 class(base_type), pointer :: base
96 nullify (base)
98 allocate (base)
110 PetscCallA(SNESSetFunctionNoInterface(snes_base, x, TestFunction, base, ierr))
121 if (associated(base)) deallocate (base)
/petsc/src/dm/impls/forest/tests/
H A Dex2.c136 DM base, preForest, postForest; in main() local
171 PetscCall(DMCreate(comm, &base)); in main()
172 PetscCall(DMSetType(base, DMPLEX)); in main()
173 PetscCall(DMSetFromOptions(base)); in main()
175 PetscCall(AddIdentityLabel(base)); in main()
176 PetscCall(DMGetDimension(base, &dim)); in main()
194 PetscCall(DMPlexConstructGhostCells(base, NULL, NULL, &baseFV)); in main()
196 PetscCall(DMDestroy(&base)); in main()
197 base = baseFV; in main()
207 PetscCall(DMSetField(base, 0, NULL, (PetscObject)fv)); in main()
[all …]
H A Dex1.c10 DM base, forest, plex; in main() local
21 PetscCall(DMCreate(PETSC_COMM_WORLD, &base)); in main()
22 PetscCall(DMSetType(base, DMPLEX)); in main()
23 PetscCall(DMSetFromOptions(base)); in main()
27 PetscCall(DMForestSetBaseDM(forest, base)); in main()
31 PetscCall(DMDestroy(&base)); in main()
H A Dex3.c9 DM base, forest, plex; in main() local
23 PetscCall(DMCreate(PETSC_COMM_WORLD, &base)); in main()
24 PetscCall(DMSetType(base, DMPLEX)); in main()
25 PetscCall(DMSetFromOptions(base)); in main()
26 PetscCall(DMViewFromOptions(base, NULL, "-dm_view")); in main()
31 PetscCall(DMForestSetBaseDM(forest, base)); in main()
33 PetscCall(DMDestroy(&base)); in main()
/petsc/src/sys/ftn-custom/
H A Dzutils.c46 size_t PetscIntAddressToFortran(const PetscInt *base, const PetscInt *addr) in PetscIntAddressToFortran() argument
48 size_t tmp1 = (size_t)base, tmp2 = 0; in PetscIntAddressToFortran()
70 if (base + itmp2 != addr) { in PetscIntAddressToFortran()
79 PetscInt *PetscIntAddressFromFortran(const PetscInt *base, size_t addr) in PetscIntAddressFromFortran() argument
81 return (PetscInt *)(base + addr); in PetscIntAddressFromFortran()
94 PetscErrorCode PetscScalarAddressToFortran(PetscObject obj, PetscInt align, PetscScalar *base, Pets… in PetscScalarAddressToFortran() argument
96 size_t tmp1 = (size_t)base, tmp2; in PetscScalarAddressToFortran()
183 PetscErrorCode PetscScalarAddressFromFortran(PetscObject obj, PetscScalar *base, size_t addr, Petsc… in PetscScalarAddressFromFortran() argument
193 tlx = base + addr; in PetscScalarAddressFromFortran()
203 *lx = base + addr; in PetscScalarAddressFromFortran()
/petsc/config/BuildSystem/config/utilities/
H A DfeatureTestMacros.py1 import config.base
3 class Configure(config.base.Configure):
5 config.base.Configure.__init__(self, framework)
8 config.base.Configure.setupDependencies(self, framework)
H A DmacosFirewall.py2 import config.base
5 class Configure(config.base.Configure):
7 config.base.Configure.__init__(self, framework)
24 config.base.Configure.setupDependencies(self, framework)
H A Ddebuggers.py2 import config.base
5 class Configure(config.base.Configure):
7 config.base.Configure.__init__(self, framework)
69 …(output, error, status) = config.base.Configure.executeShellCommand(self.dbx+' -c conftest -p '+st…
79 …(output, error, status) = config.base.Configure.executeShellCommand(self.dbx+' -c conftest -a '+st…
89 …(output, error, status) = config.base.Configure.executeShellCommand(self.dbx+' -c conftest -pid '+…
H A DfortranCommandLine.py2 import config.base
4 class Configure(config.base.Configure):
6 config.base.Configure.__init__(self, framework)
20 config.base.Configure.setupDependencies(self, framework)
H A DFPTrap.py2 import config.base
5 class Configure(config.base.Configure):
7 config.base.Configure.__init__(self, framework)
20 config.base.Configure.setupDependencies(self, framework)
H A DgetResidentSetSize.py2 import config.base
6 class Configure(config.base.Configure):
8 config.base.Configure.__init__(self, framework)
24 config.base.Configure.setupDependencies(self, framework)
/petsc/src/mat/tests/
H A Dex229.c34 Vec base; in main() local
42 PetscCall(MatCreateVecs(A, &base, NULL)); in main()
43 PetscCall(VecSet(base, 2.0)); in main()
45 PetscCall(MatMFFDSetBase(A, base, NULL)); in main()
49 PetscCall(VecDestroy(&base)); in main()
H A Dex218.c45 Vec base; in main() local
55 PetscCall(MatCreateVecs(user->B, &base, NULL)); in main()
61 PetscCall(MatShellTestMult(S, MyFunction, base, user, NULL)); in main()
62 PetscCall(MatShellTestMultTranspose(S, MyFunction, base, user, NULL)); in main()
64 PetscCall(VecDestroy(&base)); in main()
/petsc/config/PETSc/options/
H A DmemAlign.py2 import config.base
4 class Configure(config.base.Configure):
6 config.base.Configure.__init__(self, framework)
22 config.base.Configure.setupDependencies(self, framework)
H A DindexTypes.py2 import config.base
4 class Configure(config.base.Configure):
6 config.base.Configure.__init__(self, framework)
23 config.base.Configure.setupDependencies(self, framework)
H A Dlanguages.py2 import config.base
4 class Configure(config.base.Configure):
6 config.base.Configure.__init__(self, framework)
26 config.base.Configure.setupDependencies(self, framework)
H A DdataFilesPath.py2 import config.base
6 class Configure(config.base.Configure):
8 config.base.Configure.__init__(self, framework)
25 config.base.Configure.setupDependencies(self, framework)
/petsc/systems/Apple/iOS/bin/
H A Diosbuilder.py40 self.base = self.framework.require('config.base', None)
158 base = os.path.basename(dirname)
160 if base == 'examples': return False
161 if base == 'projects': return False
162 if base.startswith('ftn-'): return False
163 if base == 'contrib': return False
164 if base == 'tutorials': return False
165 if base == 'benchmarks': return False
166 if base == 'systems': return False
168 if base == 'agmres': return False
[all …]
/petsc/config/BuildSystem/config/
H A Datomics.py1 import config.base
5 class Configure(config.base.Configure):
7 config.base.Configure.__init__(self, framework)
12 config.base.Configure.setupDependencies(self, framework)
/petsc/src/ksp/pc/impls/tfs/
H A Dgs.c885 PetscScalar *base; in PCTFS_gs_gop_local_in_plus() local
903 base = vals + *map++; in PCTFS_gs_gop_local_in_plus()
904 while (*map >= 0) *base += *(vals + *map++); in PCTFS_gs_gop_local_in_plus()
1021 PetscScalar *base; in PCTFS_gs_gop_vec_local_plus() local
1027 base = vals + map[0] * step; in PCTFS_gs_gop_vec_local_plus()
1033 PetscCall(PCTFS_rvec_add(base, vals + map[1] * step, step)); in PCTFS_gs_gop_vec_local_plus()
1034 PetscCall(PCTFS_rvec_copy(vals + map[1] * step, base, step)); in PCTFS_gs_gop_vec_local_plus()
1038 PetscCall(PCTFS_rvec_add(base, vals + map[1] * step, step)); in PCTFS_gs_gop_vec_local_plus()
1039 PetscCall(PCTFS_rvec_add(base, vals + map[2] * step, step)); in PCTFS_gs_gop_vec_local_plus()
1040 PetscCall(PCTFS_rvec_copy(vals + map[2] * step, base, step)); in PCTFS_gs_gop_vec_local_plus()
[all …]

123456