Home
last modified time | relevance | path

Searched refs:g (Results 1 – 25 of 332) sorted by relevance

12345678910>>...14

/petsc/config/BuildSystem/config/packages/
H A DChombo.py39 g = open(os.path.join(self.packageDir,'lib','mk','Make.defs.local'),'w')
40 g.write('\n#begin\n')
41 g.write('#DIM='+str(dim)+'\n')
42 g.write('#DEBUG='+'\n')
43 g.write('#OPT='+'\n')
44 g.write('#PRECISION='+'\n')
45 g.write('#PROFILE='+'\n')
47 g.write('CXX='+self.getCompiler()+'\n')
48 g.write('MPICXX='+self.getCompiler()+'\n')
51 g.write('FC='+self.getCompiler()+'\n')
[all …]
H A DMFEM.py47 def writeConfig(self, g, lib_name, lib_data): argument
50 g.write('MFEM_USE_{0} = YES\n'.format(lib_name_upper))
51 g.write('{0}_DIR = {1}\n'.format(lib_name_upper, lib_data.directory))
52 g.write('{0}_OPT = {1}\n'.format(lib_name_upper, self.headers.toString(lib_data.include)))
53 g.write('{0}_LIB = {1}\n'.format(lib_name_upper, self.libraries.toString(lib_data.lib)))
55 g.write('{0}_LIB := $(subst -Wl,-Xlinker=,$({0}_LIB))\n'.format(lib_name_upper))
98 with open(os.path.join(configDir,'user.mk'),'w') as g:
99 g.write('PREFIX = '+prefix+'\n')
100 g.write('MPICXX = '+cxx+'\n')
101 g.write('GHV_CXX = '+ghv+'\n')
[all …]
H A DMUMPS.py91 g = open(os.path.join(self.packageDir,'Makefile.inc'),'w')
92 g.write('LPORDDIR = $(topdir)/PORD/lib/\n')
93 g.write('IPORD = -I$(topdir)/PORD/include/\n')
94 g.write('LPORD = -L$(LPORDDIR) -lpord\n')
95 g.write('PLAT = \n')
99 g.write('IMETIS = '+self.headers.toString(self.metis.include)+'\n')
100 g.write('LMETIS = '+self.libraries.toString(self.metis.lib)+'\n')
104 g.write('IPARMETIS = '+self.headers.toString(self.parmetis.include)+'\n')
105 g.write('LPARMETIS = '+self.libraries.toString(self.parmetis.lib)+'\n')
109 g.write('ISCOTCH = '+self.headers.toString(self.ptscotch.include)+'\n')
[all …]
H A DKS.py30 g = open(makeinc,'w')
31 g.write('SHELL = '+self.programs.SHELL+'\n')
32 g.write('CP = '+self.programs.cp+'\n')
33 g.write('RM = '+self.programs.RM+'\n')
34 g.write('MKDIR = '+self.programs.mkdir+'\n')
35 g.write('OMAKE = '+self.make.make+' '+self.make.noprintdirflag+'\n')
37 g.write('CLINKER = '+self.getLinker()+'\n')
38 g.write('AR = '+self.setCompilers.AR+'\n')
39 g.write('ARFLAGS = '+self.setCompilers.AR_FLAGS+'\n')
40 g.write('AR_LIB_SUFFIX = '+self.setCompilers.AR_LIB_SUFFIX+'\n')
[all …]
H A Dh2opus.py77 with open(os.path.join(self.packageDir,'make.inc'),'w') as g:
78 g.write('H2OPUS_INSTALL_DIR = '+self.installDir+'\n')
79 g.write('CXX = '+cxx+'\n')
80 g.write('CXXFLAGS = '+cxxflags+'\n')
81 g.write('AR = '+self.setCompilers.AR+'\n')
82 g.write('AR_FLAGS = '+self.setCompilers.AR_FLAGS+'\n')
83 g.write('AR_SUFFIX = '+self.setCompilers.AR_LIB_SUFFIX+'\n')
84 g.write('RANLIB = '+self.setCompilers.RANLIB+'\n')
85 g.write('SL = '+self.setCompilers.getLinker()+'\n')
87 g.write('SL_FLAGS = '+self.setCompilers.getSharedLinkerFlags()+'\n')
[all …]
H A DpARMS.py28 g = open(os.path.join(self.packageDir,'makefile.in'),'w')
29 g.write('SHELL = /bin/sh\n')
30 g.write('.SUFFIXES:\n')
31 g.write('.SUFFIXES: .c .o .f .F\n')
35 g.write('CC = '+self.getCompiler()+'\n')
36g.write('CFLAGS = '+self.updatePackageCFlags(self.getCompilerFlags())+' -DUSE_MPI -DREAL=doubl…
38 g.write('-DDBL_CMPLX\n')
40 g.write('-DDBL\n')
45 g.write('CFDEFS = -DFORTRAN_UNDERSCORE\n')
47 g.write('CFDEFS = -DFORTRAN_CAPS\n')
[all …]
H A Dhpl.py34 g = open(makefile,'w')
35 g.write('SHELL = '+self.programs.SHELL+'\n')
36 g.write('CP = '+self.programs.cp+'\n')
37 g.write('RM = '+self.programs.RM+'\n')
38 g.write('MKDIR = '+self.programs.mkdir+'\n')
39 g.write('OMAKE = '+self.make.make+' '+self.make.noprintdirflag+'\n')
41 g.write('CLINKER = '+self.getLinker()+'\n')
42 g.write('AR = '+self.setCompilers.AR+'\n')
43 g.write('ARFLAGS = '+self.setCompilers.AR_FLAGS+'\n')
44 g.write('AR_LIB_SUFFIX = '+self.setCompilers.AR_LIB_SUFFIX+'\n')
[all …]
H A Dsprng.py22 g = open(os.path.join(self.packageDir,'SRC','make.PETSC'),'w')
24 g.write('AR = '+self.setCompilers.AR+'\n')
25 g.write('ARFLAGS = '+self.setCompilers.AR_FLAGS+'\n')
26 g.write('AR_LIB_SUFFIX = '+self.setCompilers.AR_LIB_SUFFIX+'\n')
27 g.write('RANLIB = '+self.setCompilers.RANLIB+'\n')
34 g.write('CC = '+self.getCompiler()+'\n')
35 g.write('CFLAGS = '+cflags+'\n')
36 g.write('CLD = $(CC)\n')
37 g.write('MPICC = $(CC)\n')
38 g.write('CPP ='+self.getPreprocessor()+'\n')
[all …]
H A DTriangle.py40 g = open(makeinc,'w')
41 g.write('SHELL = '+self.programs.SHELL+'\n')
42 g.write('CP = '+self.programs.cp+'\n')
43 g.write('RM = '+self.programs.RM+'\n')
44 g.write('MKDIR = '+self.programs.mkdir+'\n')
45 g.write('OMAKE = '+self.make.make+' '+self.make.noprintdirflag+'\n')
47 g.write('CLINKER = '+self.getLinker()+'\n')
48 g.write('AR = '+self.setCompilers.AR+'\n')
49 g.write('ARFLAGS = '+self.setCompilers.AR_FLAGS+'\n')
50 g.write('AR_LIB_SUFFIX = '+self.setCompilers.AR_LIB_SUFFIX+'\n')
[all …]
H A DKBLAS.py56 with open(os.path.join(self.packageDir,'make.inc'),'w') as g:
57 g.write('_SUPPORT_BLAS2_ = TRUE\n')
58 g.write('_SUPPORT_BLAS3_ = TRUE\n')
59 g.write('_SUPPORT_BATCH_TR_ = TRUE\n')
60 g.write('_SUPPORT_TLR_ = TRUE\n')
61 g.write('_SUPPORT_SVD_ = TRUE\n')
62 g.write('_SUPPORT_LAPACK_ = TRUE\n')
64 g.write('_CUB_DIR_ = '+self.cub.directory+'/include\n')
66 g.write('_CUB_DIR_ = '+cudaDir+'/include\n')
67 g.write('_USE_MAGMA_ = TRUE\n')
[all …]
H A Dcams.py21 g = open(os.path.join(self.packageDir,'make.inc'),'w')
22 g.write('CP = '+self.programs.cp+'\n')
23 g.write('RM = '+self.programs.RM+'\n')
24 g.write('MKDIR = '+self.programs.mkdir+'\n')
26 g.write('AR = '+self.setCompilers.AR+'\n')
27 g.write('ARFLAGS = '+self.setCompilers.AR_FLAGS+'\n')
28 g.write('AR_LIB_SUFFIX = '+self.setCompilers.AR_LIB_SUFFIX+'\n')
29 g.write('RANLIB = '+self.setCompilers.RANLIB+'\n')
31 g.write('PREFIX = '+self.installDir+'\n')
34 g.write('CXX = '+self.getCompiler()+'\n')
[all …]
H A DTetGen.py41 g = open(makeinc,'w')
42 g.write('SHELL = '+self.programs.SHELL+'\n')
43 g.write('CP = '+self.programs.cp+'\n')
44 g.write('RM = '+self.programs.RM+'\n')
45 g.write('MKDIR = '+self.programs.mkdir+'\n')
46 g.write('OMAKE = '+self.make.make+' '+self.make.noprintdirflag+'\n')
48 g.write('CLINKER = '+self.getLinker()+'\n')
49 g.write('AR = '+self.setCompilers.AR+'\n')
50 g.write('ARFLAGS = '+self.setCompilers.AR_FLAGS+'\n')
51 g.write('AR_LIB_SUFFIX = '+self.setCompilers.AR_LIB_SUFFIX+'\n')
[all …]
H A Drevolve.py24 g = open(os.path.join(self.packageDir,'make.inc'),'w')
25 g.write('CP = '+self.programs.cp+'\n')
26 g.write('RM = '+self.programs.RM+'\n')
27 g.write('MKDIR = '+self.programs.mkdir+'\n')
29 g.write('AR = '+self.setCompilers.AR+'\n')
30 g.write('ARFLAGS = '+self.setCompilers.AR_FLAGS+'\n')
31 g.write('AR_LIB_SUFFIX = '+self.setCompilers.AR_LIB_SUFFIX+'\n')
32 g.write('RANLIB = '+self.setCompilers.RANLIB+'\n')
34 g.write('PREFIX = '+self.installDir+'\n')
36 g.write('CXX = '+self.getCompiler()+'\n')
[all …]
H A DGLVis.py43 with open(os.path.join(self.packageDir,'glvis_config.mk'),'w') as g:
44 g.write('PREFIX = .\n')
45 g.write('INSTALL = /usr/bin/install\n')
46 g.write('AR = '+self.setCompilers.AR+'\n')
47 g.write('MFEM_DIR = ./mfem\n')
48 g.write('GLVIS_OPTS = \n')
49 g.write('GLVIS_LDFLAGS = \n')
50 g.write('GL_OPTS = '+self.headers.toString(self.x11.include)+'\n')
51g.write('GL_LIBS = '+self.libraries.toString(self.x11.lib)+' '+self.libraries.toString(self.opengl…
52 g.write('GLVIS_USE_FREETYPE = NO\n')
[all …]
H A DMAGMA.py138 with open(os.path.join(self.packageDir,'make.inc'),'w') as g:
146 g.write('CC = '+cc+'\n')
147 g.write('CFLAGS = '+cflags+'\n')
148 g.write('CXX = '+cxx+'\n')
149 g.write('CXXFLAGS = '+cxxflags+'\n')
151 g.write('BACKEND = cuda\n')
152 g.write('NVCC = '+nvcc+'\n')
153 g.write('DEVCC = '+nvcc+'\n')
154 g.write('DEVCCFLAGS = '+nvccflags+'\n')
156 g.write('BACKEND = hip\n')
[all …]
/petsc/src/vec/vec/impls/mpi/
H A Dcommonmpvec.c17 static PetscErrorCode VecGhostStateSync_Private(Vec g, Vec l) in VecGhostStateSync_Private() argument
22 PetscCall(PetscObjectStateGet((PetscObject)g, &gstate)); in VecGhostStateSync_Private()
24 PetscCall(PetscObjectStateSet((PetscObject)g, PetscMax(gstate, lstate))); in VecGhostStateSync_Private()
66 PetscErrorCode VecGhostGetLocalForm(Vec g, Vec *l) in VecGhostGetLocalForm() argument
71 PetscValidHeaderSpecific(g, VEC_CLASSID, 1); in VecGhostGetLocalForm()
74 PetscCall(PetscObjectTypeCompare((PetscObject)g, VECSEQ, &isseq)); in VecGhostGetLocalForm()
75 PetscCall(PetscObjectTypeCompare((PetscObject)g, VECMPI, &ismpi)); in VecGhostGetLocalForm()
77 Vec_MPI *v = (Vec_MPI *)g->data; in VecGhostGetLocalForm()
80 *l = g; in VecGhostGetLocalForm()
84 if (*l) PetscCall(VecGhostStateSync_Private(g, *l)); in VecGhostGetLocalForm()
[all …]
/petsc/src/dm/impls/da/
H A Ddadist.c7 PetscErrorCode DMCreateGlobalVector_DA(DM da, Vec *g) in DMCreateGlobalVector_DA() argument
13 PetscAssertPointer(g, 2); in DMCreateGlobalVector_DA()
14 PetscCall(VecCreate(PetscObjectComm((PetscObject)da), g)); in DMCreateGlobalVector_DA()
15 PetscCall(VecSetSizes(*g, dd->Nlocal, PETSC_DETERMINE)); in DMCreateGlobalVector_DA()
16 PetscCall(VecSetBlockSize(*g, dd->w)); in DMCreateGlobalVector_DA()
17 PetscCall(VecSetType(*g, da->vectype)); in DMCreateGlobalVector_DA()
19 PetscCall(VecSetBindingPropagates(*g, PETSC_TRUE)); in DMCreateGlobalVector_DA()
20 PetscCall(VecBindToCPU(*g, PETSC_TRUE)); in DMCreateGlobalVector_DA()
22 PetscCall(VecSetDM(*g, da)); in DMCreateGlobalVector_DA()
23 PetscCall(VecSetLocalToGlobalMapping(*g, da->ltogmap)); in DMCreateGlobalVector_DA()
[all …]
H A Ddagtol.c7 PetscErrorCode DMGlobalToLocalBegin_DA(DM da, Vec g, InsertMode mode, Vec l) in DMGlobalToLocalBegin_DA() argument
13 PetscValidHeaderSpecific(g, VEC_CLASSID, 2); in DMGlobalToLocalBegin_DA()
15 PetscCall(VecScatterBegin(dd->gtol, g, l, mode, SCATTER_FORWARD)); in DMGlobalToLocalBegin_DA()
19 PetscErrorCode DMGlobalToLocalEnd_DA(DM da, Vec g, InsertMode mode, Vec l) in DMGlobalToLocalEnd_DA() argument
25 PetscValidHeaderSpecific(g, VEC_CLASSID, 2); in DMGlobalToLocalEnd_DA()
27 PetscCall(VecScatterEnd(dd->gtol, g, l, mode, SCATTER_FORWARD)); in DMGlobalToLocalEnd_DA()
31 PetscErrorCode DMLocalToGlobalBegin_DA(DM da, Vec l, InsertMode mode, Vec g) in DMLocalToGlobalBegin_DA() argument
38 PetscValidHeaderSpecific(g, VEC_CLASSID, 4); in DMLocalToGlobalBegin_DA()
40 PetscCall(VecScatterBegin(dd->gtol, l, g, ADD_VALUES, SCATTER_REVERSE)); in DMLocalToGlobalBegin_DA()
45 PetscCall(VecScatterBegin(dd->gtol, l, g, INSERT_VALUES, SCATTER_REVERSE_LOCAL)); in DMLocalToGlobalBegin_DA()
[all …]
/petsc/include/petsc/private/
H A Dpetsclegacycupmblas.h9 …axpy(a, b, c, d, e, f, g) cublasCaxpy((a), (b), (cuComplex *)(c), (cuComplex … argument
11 …dotu(a, b, c, d, e, f, g) cublasCdotu((a), (b), (cuComplex *)(c), (d), (cuCom… argument
12 …dot(a, b, c, d, e, f, g) cublasCdotc((a), (b), (cuComplex *)(c), (d), (cuCom… argument
17 …ublasXgemv(a, b, c, d, e, f, g, h, i, j, k, l) cublasCgemv((a), (b), (c), (d), (cuComplex *)… argument
18 …efine cublasXgemm(a, b, c, d, e, f, g, h, i, j, k, l, m, n) cublasCgemm((a), (b), (c), (d), (e), (… argument
19 …ublasXgeam(a, b, c, d, e, f, g, h, i, j, k, l, m) cublasCgeam((a), (b), (c), (d), (e), (cuCompl… argument
20 #define cublasXgemvStridedBatched(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) \ argument
21 …atched((a), (b), (c), (d), (const cuComplex *)(e), (const cuComplex *)(f), (g), (h), (const cuComp…
23 …, c, d, e, f, g) cublasZaxpy((a), (b), (cuDoubleComplex *)(c), (cuDoubleCompl… argument
25 …, c, d, e, f, g) cublasZdotu((a), (b), (cuDoubleComplex *)(c), (d), (cuDouble… argument
[all …]
/petsc/src/mat/impls/aij/seq/seqcusparse/
H A Dcusparsematimpl.h23 …seXcsrilu02_bufferSize(a, b, c, d, e, f, g, h, i) cusparseCcsrilu02_bufferSize(a, b, c, d, (cuCom… argument
24 …arseXcsrilu02_analysis(a, b, c, d, e, f, g, h, i, j) cusparseCcsrilu02_analysis(a, b, c, d, (cuCom… argument
25 …fine cusparseXcsrilu02(a, b, c, d, e, f, g, h, i, j) cusparseCcsrilu02(a, b, c, d, (cuCom… argument
26 …rseXcsric02_bufferSize(a, b, c, d, e, f, g, h, i) cusparseCcsric02_bufferSize(a, b, c, d, (cuCom… argument
27 …parseXcsric02_analysis(a, b, c, d, e, f, g, h, i, j) cusparseCcsric02_analysis(a, b, c, d, (cuCom… argument
28 …efine cusparseXcsric02(a, b, c, d, e, f, g, h, i, j) cusparseCcsric02(a, b, c, d, (cuCom… argument
32 …csrilu02_bufferSize(a, b, c, d, e, f, g, h, i) cusparseZcsrilu02_bufferSize(a, b, c, d, (cuDouble… argument
33 …eXcsrilu02_analysis(a, b, c, d, e, f, g, h, i, j) cusparseZcsrilu02_analysis(a, b, c, d, (cuDouble… argument
34 …e cusparseXcsrilu02(a, b, c, d, e, f, g, h, i, j) cusparseZcsrilu02(a, b, c, d, (cuDouble… argument
35 …Xcsric02_bufferSize(a, b, c, d, e, f, g, h, i) cusparseZcsric02_bufferSize(a, b, c, d, (cuDouble… argument
[all …]
/petsc/src/mat/impls/aij/seq/seqhipsparse/
H A Dhipsparsematimpl.h33 …eXcsrilu02_bufferSize(a, b, c, d, e, f, g, h, i) hipsparseCcsrilu02_bufferSize(a, b, c, d, (hipCo… argument
34 …rseXcsrilu02_analysis(a, b, c, d, e, f, g, h, i, j) hipsparseCcsrilu02_analysis(a, b, c, d, (hipCo… argument
35 …ne hipsparseXcsrilu02(a, b, c, d, e, f, g, h, i, j) hipsparseCcsrilu02(a, b, c, d, (hipCo… argument
36 …seXcsric02_bufferSize(a, b, c, d, e, f, g, h, i) hipsparseCcsric02_bufferSize(a, b, c, d, (hipCo… argument
37 …arseXcsric02_analysis(a, b, c, d, e, f, g, h, i, j) hipsparseCcsric02_analysis(a, b, c, d, (hipCo… argument
38 …ine hipsparseXcsric02(a, b, c, d, e, f, g, h, i, j) hipsparseCcsric02(a, b, c, d, (hipCo… argument
42 …srilu02_bufferSize(a, b, c, d, e, f, g, h, i) hipsparseZcsrilu02_bufferSize(a, b, c, d, (hipDoubl… argument
43 …Xcsrilu02_analysis(a, b, c, d, e, f, g, h, i, j) hipsparseZcsrilu02_analysis(a, b, c, d, (hipDoubl… argument
44 …hipsparseXcsrilu02(a, b, c, d, e, f, g, h, i, j) hipsparseZcsrilu02(a, b, c, d, (hipDoubl… argument
45 …csric02_bufferSize(a, b, c, d, e, f, g, h, i) hipsparseZcsric02_bufferSize(a, b, c, d, (hipDoubl… argument
[all …]
/petsc/src/dm/tutorials/
H A Dex11f90.F907 type(tVec) g variable
37 PetscCallA(DMGetGlobalVector(ada, g, ierr))
39 PetscCallA(DMDAVecGetArray(ada, g, x1, ierr))
45 PetscCallA(DMDAVecRestoreArray(ada, g, x1, ierr))
46 PetscCallA(VecView(g, PETSC_VIEWER_STDOUT_WORLD, ierr))
47 PetscCallA(DMRestoreGlobalVector(ada, g, ierr))
52 PetscCallA(DMGetGlobalVector(ada, g, ierr))
54 PetscCallA(DMDAVecGetArray(ada, g, x2, ierr))
62 PetscCallA(DMDAVecRestoreArray(ada, g, x2, ierr))
63 PetscCallA(VecView(g, PETSC_VIEWER_STDOUT_WORLD, ierr))
[all …]
/petsc/src/dm/interface/
H A Ddmget.c34 PetscErrorCode DMGetLocalVector(DM dm, Vec *g) in DMGetLocalVector() argument
38 PetscAssertPointer(g, 2); in DMGetLocalVector()
43 *g = dm->localin[i]; in DMGetLocalVector()
46 PetscCall(VecGetDM(*g, &vdm)); in DMGetLocalVector()
48 PetscCall(VecSetDM(*g, dm)); in DMGetLocalVector()
52 PetscCall(DMCreateLocalVector(dm, g)); in DMGetLocalVector()
57 dm->localout[i] = *g; in DMGetLocalVector()
81 PetscErrorCode DMRestoreLocalVector(DM dm, Vec *g) in DMRestoreLocalVector() argument
87 PetscAssertPointer(g, 2); in DMRestoreLocalVector()
89 if (*g == dm->localout[j]) { in DMRestoreLocalVector()
[all …]
/petsc/src/sys/classes/draw/utils/
H A Dcmap.c16 PetscErrorCode PetscDrawUtilitySetGamma(PetscReal g) in PetscDrawUtilitySetGamma() argument
19 Gamma = g; in PetscDrawUtilitySetGamma()
33 static inline void PetscHlsToRgb(double h, double l, double s, double *r, double *g, double *b) in PetscHlsToRgb() argument
39 *g = PetscHlsHelper(m1, m2, h); in PetscHlsToRgb()
43 *r = *g = *b = l; in PetscHlsToRgb()
47 static inline void PetscGammaCorrect(double *r, double *g, double *b) in PetscGammaCorrect() argument
51 *g = (double)PetscPowReal((PetscReal)*g, igamma); in PetscGammaCorrect()
62 double hue = maxhue * (double)i / (mapsize - 1), r, g, b; in PetscDrawCmap_Hue() local
63 PetscHlsToRgb(hue, lightness, saturation, &r, &g, &b); in PetscDrawCmap_Hue()
64 PetscGammaCorrect(&r, &g, &b); in PetscDrawCmap_Hue()
[all …]
/petsc/src/sys/tests/linter/output/
H A DtestValidPointers.patch4 … *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
5 … *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
42 PetscAssertPointer(g, 8);
48 PetscAssertPointer(g, 8);
53 - PetscAssertPointer(g, 8);
54 + PetscAssertPointer(g, 7);
59 PetscAssertPointer(g, 8);
67 … *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
68 … *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
105 PetscAssertPointer(g, 8);
[all …]

12345678910>>...14