| /petsc/doc/tutorials/ |
| H A D | handson.md | 38 Expected output: 40 ```{literalinclude} /../src/ksp/ksp/tutorials/output/ex50_tut_1.out 51 Expected output: 53 ```{literalinclude} /../src/ksp/ksp/tutorials/output/ex50_tut_2.out 64 Expected output: 66 ```{literalinclude} /../src/ksp/ksp/tutorials/output/ex50_tut_3.out 102 Expected output: 104 ```{literalinclude} /../src/ts/tutorials/output/ex2_tut_1.out 115 Expected output: 117 ```{literalinclude} /../src/ts/tutorials/output/ex2_tut_2.out [all …]
|
| /petsc/config/BuildSystem/config/ |
| H A D | setCompilers.py | 11 def noCheck(command, status, output, error): argument 213 …(output, error, status) = config.base.Configure.executeShellCommand(compiler+' -V',checkCommand = … 214 output = output + error 215 found = any([s in output for s in ['NAGWare Fortran','The Numerical Algorithms Group Ltd']]) 226 …(output, error, status) = config.base.Configure.executeShellCommand(compiler+' -v',checkCommand = … 227 output = output + error 228 if output.find('w64-mingw32') >= 0: 238 …(output, error, status) = config.base.Configure.executeShellCommand(compiler+' --help | head -n 20… 239 output = output + error 240 found = (any([s in output for s in ['www.gnu.org', [all …]
|
| H A D | framework.py | 282 self.actions.output(self.log) 450 def filterPreprocessOutput(self,output, log = None): argument 451 output = output.strip() 453 log.write("Preprocess output before filtering:\n"+(output if not output else output+'\n')) 455 … if output.find('your evaluation license will expire') > -1 and output.lower().find('error') == -1: 456 output = '' 457 lines = output.splitlines() 483 if lines: output = '\n'.join(lines) 484 else: output = '' 485 log.write("Preprocess output after filtering:\n"+(output if not output else output+'\n')) [all …]
|
| H A D | compilers.py | 207 (output, returnCode) = self.outputLink('', '') 214 output = remove_xcode_verbose(output) 216 if output.find('\'') >= 0: 218 if not output.count('\'')%2: 219 while output.find('\'') >= 0: 220 start = output.index('\'') 221 end = output.index('\'', start+1)+1 222 output = output.replace(output[start:end], '') 227 if output.find('XL_CONFIG') >= 0: 228 output = output.replace(',', ' ') [all …]
|
| H A D | compilerOptions.py | 17 output = self.executeShellCommand(compiler + ' -show', log = self.log)[0] 18 … self.framework.addMakeMacro('MPICC_SHOW',output.strip().replace('\n','\\\\n').replace('"','\\"')) 132 output = self.executeShellCommand(compiler+' -show', log = self.log)[0] 133 self.framework.addMakeMacro('MPICXX_SHOW',output.strip().replace('\n','\\\\n')) 246 output = self.executeShellCommand(compiler+' -show', log = self.log)[0] 247 self.framework.addMakeMacro('MPIFC_SHOW',output.strip().replace('\n','\\\\n')) 360 (output, error, status) = config.base.Configure.executeShellCommand(flags, log = self.log) 363 (output, error, status) = config.base.Configure.executeShellCommand(flags, log = self.log) 364 output = error + output 367 version = '\\n'.join(output.split('\n')[0:2]) [all …]
|
| H A D | base.py | 118 def logError(self, component, status, output, error): argument 124 if output: 125 self.logWrite('stdout:\n' + output) 475 def report(command, status, output, error): argument 477 self.logError('preprocessor', status, output, error) 526 def filterCompileOutput(self, output, flag = '', filterAlways = 0): argument 527 return self.framework.filterCompileOutput(output, flag = flag, filterAlways = filterAlways) 531 def report(command, status, output, error): argument 533 self.logError('compiler', status, output, error) 554 (output, error, returnCode) = self.outputCompile(includes, body, cleanup, codeBegin, codeEnd) [all …]
|
| /petsc/src/mat/tests/ |
| H A D | ex149.c | 14 Vec x, y, z, input, output; in main() local 34 PetscCall(VecDuplicate(input, &output)); in main() 52 PetscCall(OutputTransformFFT(A, z, output)); in main() 55 PetscCall(VecScale(output, fac)); in main() 59 PetscCall(VecAssemblyBegin(output)); in main() 60 PetscCall(VecAssemblyEnd(output)); in main() 63 PetscCall(VecView(output, PETSC_VIEWER_STDOUT_WORLD)); in main() 65 PetscCall(VecAXPY(output, -1.0, input)); in main() 66 PetscCall(VecNorm(output, NORM_1, &enorm)); in main()
|
| H A D | ex150.c | 13 Vec x, y, z, input, output; in main() local 37 PetscCall(VecDuplicate(input, &output)); in main() 62 PetscCall(OutputTransformFFT(A, z, output)); in main() 65 PetscCall(VecScale(output, fac)); in main() 69 PetscCall(VecAssemblyBegin(output)); in main() 70 PetscCall(VecAssemblyEnd(output)); in main() 73 PetscCall(VecView(output, PETSC_VIEWER_STDOUT_WORLD)); in main() 75 PetscCall(VecAXPY(output, -1.0, input)); in main() 76 PetscCall(VecNorm(output, NORM_1, &enorm)); in main() 87 PetscCall(VecDestroy(&output)); in main()
|
| H A D | ex239.c | 10 Vec input, output; in main() local 19 PetscCall(VecDuplicate(input, &output)); in main() 21 PetscCall(VecSet(output, 2.)); in main() 22 PetscCall(MatMult(cuda_matrix, input, output)); in main() 23 PetscCall(VecNorm(output, NORM_2, &nrm)); in main() 26 PetscCall(VecDestroy(&output)); in main()
|
| H A D | ex155.c | 11 Vec x, y, z, input, output; in main() local 30 PetscCall(VecDuplicate(input, &output)); in main() 52 PetscCall(VecScatterFFTWToPetsc(A, z, output)); in main() 55 PetscCall(VecScale(output, fac)); in main() 59 PetscCall(VecAssemblyBegin(output)); in main() 60 PetscCall(VecAssemblyEnd(output)); in main() 65 PetscCall(VecAXPY(output, -1.0, input)); in main() 66 PetscCall(VecNorm(output, NORM_1, &enorm)); in main() 72 PetscCall(VecDestroy(&output)); in main()
|
| H A D | ex157.c | 10 Vec x, y, z, input, output; in main() local 36 PetscCall(VecDuplicate(input, &output)); in main() 64 PetscCall(OutputTransformFFT(A, z, output)); in main() 66 PetscCall(VecScale(output, fac)); in main() 70 PetscCall(VecAssemblyBegin(output)); in main() 71 PetscCall(VecAssemblyEnd(output)); in main() 76 PetscCall(VecAXPY(output, -1.0, input)); in main() 77 PetscCall(VecNorm(output, NORM_1, &enorm)); in main() 82 PetscCall(VecDestroy(&output)); in main()
|
| H A D | ex148.c | 12 Vec x, y, z, input, output; in main() local 34 PetscCall(VecDuplicate(input, &output)); in main() 36 PetscCall(PetscObjectSetName((PetscObject)output, "Reconstructed vector")); in main() 55 PetscCall(VecScatterFFTWToPetsc(A, z, output)); in main() 59 PetscCall(VecScale(output, fac)); in main() 60 PetscCall(VecAXPY(output, -1.0, input)); in main() 61 PetscCall(VecNorm(output, NORM_1, &enorm)); in main() 67 PetscCall(VecDestroy(&output)); in main()
|
| H A D | ex153.c | 10 Vec x, y, z, input, output; in main() local 30 PetscCall(VecDuplicate(input, &output)); in main() 53 PetscCall(OutputTransformFFT(A, z, output)); in main() 55 PetscCall(VecScale(output, fac)); in main() 65 PetscCall(VecAXPY(output, -1.0, input)); in main() 66 PetscCall(VecNorm(output, NORM_1, &enorm)); in main() 71 PetscCall(VecDestroy(&output)); in main()
|
| H A D | ex158.c | 95 Vec input, output; in main() local 119 PetscCall(VecDuplicate(input, &output)); in main() 137 PetscCall(VecScatterFFTWToPetsc(A, z, output)); in main() 141 PetscCall(VecScale(output, a)); in main() 142 if (view) PetscCall(VecView(output, PETSC_VIEWER_STDOUT_WORLD)); in main() 143 PetscCall(VecAXPY(output, -1.0, input)); in main() 144 PetscCall(VecNorm(output, NORM_1, &enorm)); in main() 150 PetscCall(VecDestroy(&output)); in main()
|
| /petsc/config/BuildSystem/ |
| H A D | script.py | 116 self.help.output(sections = sections) 124 self.actions.output(self.log) 167 output = '' 185 output += out 189 return (output, error, ret) 192 def defaultCheckCommand(command, status, output, error): argument 198 if len(output) > 2*mlen: 199 output = output[0:mlen]+'\n .... more output .....\n'+output[len(output)- mlen:] 202 raise RuntimeError('Could not execute "%s":\n%s' % (command,output+error)) 205 def passCheckCommand(command, status, output, error): argument [all …]
|
| /petsc/src/snes/tutorials/ |
| H A D | makefile | 16 TESTEX19OUT = output/ex19_fp16.testout 18 TESTEX19OUT = output/ex19_1.testout 24 -${QUIET}${DIFF} output/ex5f_1.testout ex5f.tmp > ex5f.dtmp; 61 -${QUIET}${DIFF} output/ex19_hypre.out ex19.tmp > ex19.dtmp; 72 -${QUIET}${DIFF} output/ex19_hypre.out ex19.tmp > ex19.dtmp; 83 -${QUIET}${DIFF} output/ex19_hypre.out ex19.tmp > ex19.dtmp; 93 -${QUIET}${DIFF} output/ex19_cuda_1.out ex19.tmp > ex19.dtmp; 103 -${QUIET}${DIFF} output/ex19_hip_1.out ex19.tmp > ex19.dtmp; 113 -${QUIET}${DIFF} output/ex19_ml.out ex19.tmp > ex19.dtmp; 123 -${QUIET}${DIFF} output/ex19_fieldsplit_5.out ex19.tmp > ex19.dtmp; [all …]
|
| /petsc/lib/petsc/bin/ |
| H A D | petscnagfor | 41 output = sub.stdout.read().decode('UTF-8') 47 if (output+error).find('No licences currently available') == -1: 50 if (output+error).find('No licences currently available') > -1: 52 return (output,error,status) 88 (output,error,status) = runnagfor(['nagfor']+args) 90 print(output) 95 (output,error,status) = runnagfor(['nagfor','-dryrun']+args) 97 print(output) 102 for i in (output+error).split('\n'):
|
| H A D | taucc.py | 21 (status, output) = commands.getstatusoutput(cmd) 23 raise RuntimeError('Unable to run '+cmd+':\n'+output) 24 elif output: 25 print(output) 47 (status, output) = commands.getstatusoutput(cmd) 50 raise RuntimeError('Unable to run '+cmd+':\n'+output) 57 for line in output.splitlines():
|
| /petsc/src/sys/tests/ |
| H A D | ex16.c | 9 char buffer[256], *output, user[256]; in main() local 16 PetscCall(PetscMatlabEngineGetOutput(PETSC_MATLAB_ENGINE_(PETSC_COMM_WORLD), &output)); in main() 19 PetscCall(PetscSynchronizedPrintf(PETSC_COMM_WORLD, "[%d]Processor rank is %s", rank, output)); in main() 26 PetscCall(PetscSynchronizedPrintf(PETSC_COMM_WORLD, "[%d]The result is %s", rank, output)); in main()
|
| /petsc/config/BuildSystem/config/utilities/ |
| H A D | debuggers.py | 69 …(output, error, status) = config.base.Configure.executeShellCommand(self.dbx+' -c conftest -p '+st… 71 for line in output: 79 …(output, error, status) = config.base.Configure.executeShellCommand(self.dbx+' -c conftest -a '+st… 81 for line in output: 89 …(output, error, status) = config.base.Configure.executeShellCommand(self.dbx+' -c conftest -pid '+… 91 for line in output:
|
| /petsc/config/BuildSystem/config/packages/ |
| H A D | pflotran.py | 63 …output,err,ret = config.package.GNUPackage.executeShellCommand('cd '+self.packageDir+' && '+PARCH… 64 self.log.write(output+err) 67 …output,err,ret = config.package.GNUPackage.executeShellCommand('cd '+self.packageDir+' && make al… 68 self.log.write(output+err) 71 …output,err,ret = config.package.GNUPackage.executeShellCommand('cd '+self.packageDir+' && make in… 72 self.log.write(output+err)
|
| H A D | egads.py | 257 …output,err,ret = config.package.GNUPackage.executeShellCommand(self.make.make+' -f make.inc PETSC… 258 self.log.write(output+err) 260 …output,err,ret = config.package.GNUPackage.executeShellCommand(self.make.make+' -f make.inc PETSC… 261 self.log.write(output+err) 271 …output,err,ret = config.package.GNUPackage.executeShellCommand(self.make.make+' -f make_lite.inc … 272 self.log.write(output+err) 274 …output,err,ret = config.package.GNUPackage.executeShellCommand(self.make.make+' -f make_lite.inc … 275 self.log.write(output+err)
|
| H A D | Matlab.py | 23 output = config.package.Package.__str__(self) 24 output += ' mex: '+self.mex+'\n' 25 output += ' matlab: '+self.executable+'\n' 26 return output 56 output = '' 58 …output,err,ret = config.package.Package.executeShellCommand(interpreter+' -nodisplay -r "display([… 63 match = versionPattern.search(output)
|
| H A D | alquimia.py | 83 …output,err,ret = config.package.CMakePackage.executeShellCommand('cd '+os.path.join(self.packageD… 84 output = output+err 85 self.log.write(output) 86 if output.find('Failure') > -1: 87 raise RuntimeError('Error running make test on Alquimia: '+output)
|
| /petsc/src/vec/vec/tutorials/ |
| H A D | ex31.c | 10 const char *output; in main() local 21 PetscCall(PetscMatlabEngineGetOutput(PETSC_MATLAB_ENGINE_WORLD, &output)); in main() 23 PetscCall(PetscSynchronizedPrintf(PETSC_COMM_WORLD, "[%d]Processor rank is\n %s", rank, output)); in main() 32 PetscCall(PetscSynchronizedPrintf(PETSC_COMM_WORLD, "[%d]The result is\n %s", rank, output)); in main()
|