Home
last modified time | relevance | path

Searched refs:body (Results 1 – 25 of 45) sorted by relevance

12

/petsc/src/sys/webclient/
H A Dgoogle.c41 char buff[8 * 1024], body[1024]; in PetscGoogleDriveRefresh() local
61 PetscCall(PetscStrncpy(body, "client_id=", sizeof(body))); in PetscGoogleDriveRefresh()
62 PetscCall(PetscStrlcat(body, PETSC_GOOGLE_CLIENT_ID, sizeof(body))); in PetscGoogleDriveRefresh()
63 PetscCall(PetscStrlcat(body, "&client_secret=", sizeof(body))); in PetscGoogleDriveRefresh()
64 PetscCall(PetscStrlcat(body, PETSC_GOOGLE_CLIENT_ST, sizeof(body))); in PetscGoogleDriveRefresh()
65 PetscCall(PetscStrlcat(body, "&refresh_token=", sizeof(body))); in PetscGoogleDriveRefresh()
66 PetscCall(PetscStrlcat(body, refreshtoken, sizeof(body))); in PetscGoogleDriveRefresh()
68 PetscCall(PetscStrlcat(body, "&grant_type=refresh_token", sizeof(body))); in PetscGoogleDriveRefresh()
70 …ts.google.com/o/oauth2/token", NULL, "application/x-www-form-urlencoded", body, ssl, buff, sizeof(… in PetscGoogleDriveRefresh()
124 char head[1024], buff[8 * 1024], *body, *title; in PetscGoogleDriveUpload() local
[all …]
H A Dglobus.c215 char head[4096], buff[8 * 1024], body[4096], submission_id[4096]; in PetscGlobusUpload() local
247 PetscCall(PetscStrncpy(body, "{", sizeof(body))); in PetscGlobusUpload()
248 PetscCall(PetscPushJSONValue(body, "submission_id", submission_id, sizeof(body))); in PetscGlobusUpload()
249 PetscCall(PetscStrlcat(body, ",", sizeof(body))); in PetscGlobusUpload()
250 PetscCall(PetscPushJSONValue(body, "DATA_TYPE", "transfer", sizeof(body))); in PetscGlobusUpload()
251 PetscCall(PetscStrlcat(body, ",", sizeof(body))); in PetscGlobusUpload()
252 PetscCall(PetscPushJSONValue(body, "sync_level", "null", sizeof(body))); in PetscGlobusUpload()
253 PetscCall(PetscStrlcat(body, ",", sizeof(body))); in PetscGlobusUpload()
254 PetscCall(PetscPushJSONValue(body, "source_endpoint", "barryfsmith#MacBookPro", sizeof(body))); in PetscGlobusUpload()
255 PetscCall(PetscStrlcat(body, ",", sizeof(body))); in PetscGlobusUpload()
[all …]
H A Dbox.c109 char buff[8 * 1024], body[1024]; in PetscBoxAuthorize() local
129 PetscCall(PetscStrncpy(body, "code=", sizeof(body))); in PetscBoxAuthorize()
130 PetscCall(PetscStrlcat(body, buff, sizeof(body))); in PetscBoxAuthorize()
131 PetscCall(PetscStrlcat(body, "&client_id=", sizeof(body))); in PetscBoxAuthorize()
132 PetscCall(PetscStrlcat(body, PETSC_BOX_CLIENT_ID, sizeof(body))); in PetscBoxAuthorize()
133 PetscCall(PetscStrlcat(body, "&client_secret=", sizeof(body))); in PetscBoxAuthorize()
134 PetscCall(PetscStrlcat(body, PETSC_BOX_CLIENT_ST, sizeof(body))); in PetscBoxAuthorize()
135 PetscCall(PetscStrlcat(body, "&grant_type=authorization_code", sizeof(body))); in PetscBoxAuthorize()
137 …www.box.com/api/oauth2/token", NULL, "application/x-www-form-urlencoded", body, ssl, buff, sizeof(… in PetscBoxAuthorize()
178 char buff[8 * 1024], body[1024]; in PetscBoxRefresh() local
[all …]
H A Dclient.c104 …[], const char url[], const char header[], const char ctype[], const char body[], char **outreques… in PetscHTTPBuildRequest() argument
132 PetscCall(PetscStrlen(body, &bodylen)); in PetscHTTPBuildRequest()
149 PetscCall(PetscStrlcat(request, body, request_len)); in PetscHTTPBuildRequest()
176 …[], const char url[], const char header[], const char ctype[], const char body[], SSL *ssl, char b… in PetscHTTPSRequest() argument
184 PetscCall(PetscHTTPBuildRequest(type, url, header, ctype, body, &request)); in PetscHTTPSRequest()
264 …[], const char url[], const char header[], const char ctype[], const char body[], int sock, char b… in PetscHTTPRequest() argument
270 PetscCall(PetscHTTPBuildRequest(type, url, header, ctype, body, &request)); in PetscHTTPRequest()
/petsc/src/dm/impls/plex/
H A Dplexegads.c485 ego geom, body, obj; in DMSnapToGeomModel_EGADS_Internal() local
507 body = bodies[bodyID]; in DMSnapToGeomModel_EGADS_Internal()
511 PetscCall(EGlite_objectBodyTopo(body, EDGE, edgeID, &obj)); in DMSnapToGeomModel_EGADS_Internal()
514 PetscCall(EG_objectBodyTopo(body, EDGE, edgeID, &obj)); in DMSnapToGeomModel_EGADS_Internal()
519 PetscCall(EGlite_objectBodyTopo(body, FACE, faceID, &obj)); in DMSnapToGeomModel_EGADS_Internal()
522 PetscCall(EG_objectBodyTopo(body, FACE, faceID, &obj)); in DMSnapToGeomModel_EGADS_Internal()
631 ego body = bodies[b]; in DMPlexGeomPrintModel_Internal() local
640 PetscCall(EGlite_getBodyTopos(body, NULL, SHELL, &Nsh, &shobjs)); in DMPlexGeomPrintModel_Internal()
642 PetscCall(EG_getBodyTopos(body, NULL, SHELL, &Nsh, &shobjs)); in DMPlexGeomPrintModel_Internal()
647 PetscCall(EGlite_getBodyTopos(body, NULL, FACE, &Nf, &fobjs)); in DMPlexGeomPrintModel_Internal()
[all …]
/petsc/config/BuildSystem/config/
H A Dheaders.py107 body = '#include <' +hfile+ '>\n'
109 body += '#if !defined({})\n#error {} not defined\n#endif\n'.format(macro,macro)
110 found = self.checkPreprocess(body, timeout = timeout)
144 body = '''
150 if not self.checkRun(includes, body): haveStdC = 0
167 body = '''
172 if self.checkCompile(includes, body):
201 body = 'a(0);\n'
202 if not self.checkCompile(includes, body):
H A Dtypes.py78 body = 'double _Complex x;\n x = I;\n(void)x'
79 …if not self.checkCompile(includes, body): return # checkLink can succeed even if checkCompile f…
80 if self.checkLink(includes, body):
83 if not self.checkCompile(includes, body): return
92 body = 'std::complex<double> x;\n(void)x'
93 if self.checkLink(includes, body):
122 body = 'char assert_sizeof[(sizeof({0})=={1})*2-1];'.format(checkName, s)
123 if self.checkCompile(includes, body, codeBegin=codeBegin, codeEnd='\n'):
H A Dbase.py437 def getCode(self, includes, body = None, codeBegin = None, codeEnd = None): argument
445 if not body is None:
449 if len(body) == 0:
451 …elif body.strip().endswith(';') or body.strip().endswith('}') or body.strip().endswith('\n#endif'):
455 codeStr += codeBegin+body+codeEnd
457 if not includes is None and body is None:
461 if not body is None:
468 codeStr += codeBegin+body+codeEnd
529 def outputCompile(self, includes = '', body = '', cleanup = 1, codeBegin = None, codeEnd = None): argument
536 self.logWrite('Source:\n'+self.getCode(includes, body, codeBegin, codeEnd))
[all …]
H A Dlibraries.py213 body = call
215 body = call[f]
217 body = funcName+'()'
219 body += ';'
220 return body
247 body = '\n'.join([genCall(f, fname) for f, fname in enumerate(funcs)])
285 if found and self.checkLink(includes, body, linkLanguage=linklang, examineOutput=examineOutput):
287 …if self.compilers.checkCrossLink(includes+'\nvoid dummy(void) {'+body+'}\n'," program main\n …
443 body = '''
451 …if not checkLink(includes, body, cleanup = 0, codeBegin = codeBegin, codeEnd = codeEnd, shared = 1…
[all …]
H A DcompilersFortran.py75 …self.setCompilers.addCompilerFlag(flag, body = '#define dummy \n dummy\n#ifndef dummy\n …
97 …if self.setCompilers.checkCompilerFlag(flag+'Testing', body = '#define dummy \n dummy\n#…
113 if self.checkLink(body=' call '+baseName+'(6)'):
125 …if self.checkCompile(body = ' interface\n subroutine a(b)\n type(*) b\n end s…
136 if self.checkLink(body = '''
180 …if self.checkLink(body = ' INTEGER, PARAMETER :: int = SELECTED_INT_KIND(8); …
191 if self.checkLink(body = '''
208 …if self.checkLink(body = ' INTEGER, PARAMETER :: int = SELECTED_INT_KIND(8); …
234 program main''',body = '''
H A Dcompilers.py411 …self.setCompilers.addCompilerFlag(flag, body = 'class somename { public: int i; };\nsomename b;\nb…
419 …self.setCompilers.addCompilerFlag(flag, body = 'class somename { public: int i; };\nsomename b;\nb…
443 body = """
451 if self.checkCompile(includes,body):
462body = '''#include <iostream>\n#include <vector>\nvoid asub(void)\n{std::vector<int> v;\ntry { …
465 …if self.checkCrossLink(body,"int main(int argc,char **args)\n{return 0;}\n",language1='C++',langua…
475 …if self.checkCrossLink(body,"int main(int argc,char **args)\n{return 0;}\n",language1='C++',langua…
490 …if self.checkCrossLink(body,"int main(int argc,char **args)\n{return 0;}\n",language1='C++',langua…
505 …if self.checkCrossLink(body,"int main(int argc,char **args)\n{return 0;}\n",language1='C++',langua…
526 …if self.checkCrossLink(body," program main\n print*,'testing'\n stop\n end\n",l…
[all …]
H A Dpython.py33 …def checkPythonLink(self, includes, body, cleanup = 1, codeBegin = None, codeEnd = None, shared = … argument
40 if self.checkLink(includes, body, cleanup, codeBegin, codeEnd, shared):
H A Dfunctions.py65 body = ''.join(map(genBody,funcs))
77 found = self.checkLink(includes, body, examineOutput=examineOutput)
H A DsetCompilers.py995 Dialect(num='11',includes=includes11(),body=body11()),
996 Dialect(num='14',includes=includes14(),body=body14()),
997 Dialect(num='17',includes=includes17(),body=body17()),
998 Dialect(num='20',includes=includes20(),body=body20()),
999 Dialect(num='23',includes=includes20(),body=body20()) # no c++23 checks yet
1137 self.addCompilerFlag(flag,includes=dlct.includes,body=dlct.body,compilerOnly=True)
1139 elif not self.checkCompile(includes=dlct.includes,body=dlct.body):
1212 …def checkCompiler(self, language, linkLanguage=None,includes = '', body = '', cleanup = 1, codeBeg… argument
1216 …if not self.checkCompile(includes=includes,body=body,cleanup=cleanup,codeBegin=codeBegin,codeEnd=c…
1223 if not self.checkLink(linkLanguage=linkLanguage,includes=includes,body=body):
[all …]
/petsc/doc/ext/
H A Dhtml5_petsc.py126 self.body.append('<span class="pre">%s</span>' % token_processed)
130 self.body.append(token)
133 self.body.append('&#160;' * (len(token) - 1) + ' ')
137 self.body.append(encoded)
166 self.body.append(starttag + highlighted + '</div>\n')
174 self.body.append(self.starttag(node, 'kbd', '',
179 self.body.append(self.starttag(node, 'code', '',
193 self.body.append(starttag + highlighted.strip() + "</code>")
/petsc/src/sys/classes/draw/interface/
H A Ddsave.c341 char body[4096]; in PetscDrawSave_SAWs() local
352 … PetscCall(PetscSNPrintf(body + len, 4086 - len, "<img src=\"%s%s\" alt=\"None\">", name, ext)); in PetscDrawSave_SAWs()
354 …PetscCall(PetscSNPrintf(body + len, 4086 - len, "<img src=\"%s/%s_%d%s\" alt=\"None\">", name, nam… in PetscDrawSave_SAWs()
356 PetscCall(PetscStrlen(body, &len)); in PetscDrawSave_SAWs()
359 PetscCall(PetscStrlcat(body, "<br>\n", sizeof(body))); in PetscDrawSave_SAWs()
361 PetscCallSAWs(SAWs_Push_Body, ("index.html", 1, body)); in PetscDrawSave_SAWs()
/petsc/src/benchmarks/
H A DbenchmarkBatch.py3 body = '''\
34 f.write(body)
/petsc/config/BuildSystem/config/packages/
H A DTetGen.py95 body = \
106 if not self.checkCompile(include,body):
108 if self.checkCompile(include,body):
112 if not self.checkLink(include,body):
H A Dconcurrencykit.py33body = 'ck_spinlock_t ck_spinlock; ck_spinlock_init(&ck_spinlock);ck_spinlock_lock(&ck_spinlock…
39 if not self.checkLink(include, body):
H A DBlasLapack.py813 def runTimeTest(self,name,includes,body,lib = None,nobatch=0): argument
821 self.framework.addBatchBody(body)
829 body = '''FILE *output = fopen("'''+filename+'''","w");\n'''+body
834 if self.checkRun(includes, body) and os.path.exists(filename):
869body = '''extern '''+t+''' '''+self.mangleBlas('dot')+'''(const int*,const '''+t+'''*,const in…
875 result = self.runTimeTest('known-64-bit-blas-indices',includes,body,self.dlib,nobatch=1)
883body = '''extern double '''+self.mangleBlas('dot')+'''(const int*,const '''+t+'''*,const int *…
889 result = self.runTimeTest('known-64-bit-blas-indices',includes,body,self.dlib,nobatch=1)
910body = '''extern float '''+self.mangleBlasNoPrefix('sdot')+'''(const int*,const float*,const i…
922 result = self.runTimeTest('known-sdot-returns-double',includes,body,self.dlib,nobatch=1)
[all …]
/petsc/doc/tutorials/
H A Dguide_to_examples_by_physics.md34 The equation for elastostatics balances body forces against stresses in the body
52 where $\bm u$ is the infinitesimal displacement of the body. The resulting discretizations use PETS…
62 If we allow finite strains in the body, we can express the stress-strain relation in terms of the J…
/petsc/src/dm/impls/plex/tutorials/
H A Dex19.c197 PetscGeom body = bodies[0]; in main() local
198 PetscCall(DMPlexGetGeomModelBodyFaces(dmNozzle, body, &fobjs, &Nf)); in main()
204 …PetscCall(DMPlexGetGeomBodyMassProperties(dmNozzle, body, &volume, &surfaceArea, &centerOfGravity,… in main()
230 PetscCall(DMPlexGetGeomID(dmNozzle, body, face, &id)); in main()
338 …PetscCall(DMPlexRestoreGeomBodyMassProperties(dmNozzle, body, &volume, &surfaceArea, &centerOfGrav… in main()
H A Dex18.c127 PetscGeom body = bodies[0]; in main() local
128 PetscCall(DMPlexGetGeomModelBodyFaces(dm, body, &fobjs, &Nf)); in main()
135 PetscCall(DMPlexGetGeomID(dm, body, face, &id)); in main()
/petsc/config/BuildSystem/config/utilities/
H A DcacheDetails.py113 if not self.checkCompile(includes=includes,body=func_name+'();'):
118 if self.checkRun(includes=main_includes,body=main_body) and os.path.exists(filename):
/petsc/src/binding/petsc4py/docs/source/
H A Dapidoc.py169 body = Lines.INDENT + '...'
176 body = Lines.INDENT + '...'
186 body = Lines.INDENT + '...'
197 body = Lines.INDENT + '...'
211 body = Lines.INDENT + ret

12