| /petsc/src/dm/label/tutorials/ |
| H A D | ex1.c | 53 char *msg; in CheckLabelsSame() local 58 PetscCall(DMLabelCompare(PETSC_COMM_WORLD, label0, label1, &same, &msg)); in CheckLabelsSame() 59 …ck(same == (PetscBool)!msg, PETSC_COMM_WORLD, PETSC_ERR_PLIB, "DMLabelCompare returns inconsistent… in CheckLabelsSame() 60 …RLD, PETSC_ERR_PLIB, "Labels \"%s\" and \"%s\" should not differ! Message: %s", name0, name1, msg); in CheckLabelsSame() 63 PetscCall(PetscFree(msg)); in CheckLabelsSame() 71 char *msg; in CheckLabelsNotSame() local 76 PetscCall(DMLabelCompare(PETSC_COMM_WORLD, label0, label1, &same, &msg)); in CheckLabelsNotSame() 77 …ck(same == (PetscBool)!msg, PETSC_COMM_WORLD, PETSC_ERR_PLIB, "DMLabelCompare returns inconsistent… in CheckLabelsNotSame() 79 …scCall(PetscPrintf(PETSC_COMM_WORLD, "Compare label \"%s\" with \"%s\": %s\n", name0, name1, msg)); in CheckLabelsNotSame() 80 PetscCall(PetscFree(msg)); in CheckLabelsNotSame() [all …]
|
| /petsc/config/BuildSystem/ |
| H A D | logger.py | 339 def logPrintWarning(self, msg, title = None, **kwargs): argument 342 return self.logPrintBox(msg,title='***** {} *****'.format(title),**kwargs) 344 …def logPrintBox(self, msg, debugLevel = -1, debugSection = 'screen', indent = 1, comm = None, rmDi… argument 346 rmDir = build_multiline_message(title, self.logStripDirectory(msg), prefix=prefix) 347 msg = build_multiline_message(title, msg, prefix=prefix) 350 …self.logPrint(msg, debugLevel = debugLevel, debugSection = debugSection, rmDir = rmDir, forceNewLi… 354 def logStripDirectory(self,msg): argument 355 return msg.replace(RemoveDirectory,'') 368 def logWrite(self, msg, debugLevel = -1, debugSection = None, forceScroll = 0, rmDir = 1): argument 371 if not msg: return [all …]
|
| /petsc/src/sys/objects/ |
| H A D | init.c | 429 char msg[4096]; in PetscOptionsCheckInitial_Private() local 434 PetscCall(PetscStrncpy(msg, "** PETSc DEPRECATION WARNING ** : the option ", sizeof(msg))); in PetscOptionsCheckInitial_Private() 435 PetscCall(PetscStrlcat(msg, "-debugger_nodes", sizeof(msg))); in PetscOptionsCheckInitial_Private() 436 PetscCall(PetscStrlcat(msg, " is deprecated as of version ", sizeof(msg))); in PetscOptionsCheckInitial_Private() 437 PetscCall(PetscStrlcat(msg, "3.14", sizeof(msg))); in PetscOptionsCheckInitial_Private() 438 PetscCall(PetscStrlcat(msg, " and will be removed in a future release.", sizeof(msg))); in PetscOptionsCheckInitial_Private() 439 PetscCall(PetscStrlcat(msg, " Please use the option ", sizeof(msg))); in PetscOptionsCheckInitial_Private() 440 PetscCall(PetscStrlcat(msg, "-debugger_ranks", sizeof(msg))); in PetscOptionsCheckInitial_Private() 441 PetscCall(PetscStrlcat(msg, " instead.", sizeof(msg))); in PetscOptionsCheckInitial_Private() 442 PetscCall(PetscStrlcat(msg, " (Silence this warning with ", sizeof(msg))); in PetscOptionsCheckInitial_Private() [all …]
|
| H A D | options.c | 3327 char msg[4096]; in PetscOptionsDeprecated_Private() local 3357 PetscCall(PetscStrncpy(msg, "** PETSc DEPRECATION WARNING ** : the option -", sizeof(msg))); in PetscOptionsDeprecated_Private() 3358 PetscCall(PetscStrlcat(msg, prefix, sizeof(msg))); in PetscOptionsDeprecated_Private() 3359 PetscCall(PetscStrlcat(msg, oldname + 1, sizeof(msg))); in PetscOptionsDeprecated_Private() 3360 PetscCall(PetscStrlcat(msg, " is deprecated as of version ", sizeof(msg))); in PetscOptionsDeprecated_Private() 3361 PetscCall(PetscStrlcat(msg, version, sizeof(msg))); in PetscOptionsDeprecated_Private() 3362 PetscCall(PetscStrlcat(msg, " and will be removed in a future release.\n", sizeof(msg))); in PetscOptionsDeprecated_Private() 3364 PetscCall(PetscStrlcat(msg, " Use the option -", sizeof(msg))); in PetscOptionsDeprecated_Private() 3365 PetscCall(PetscStrlcat(msg, prefix, sizeof(msg))); in PetscOptionsDeprecated_Private() 3366 PetscCall(PetscStrlcat(msg, newname + 1, sizeof(msg))); in PetscOptionsDeprecated_Private() [all …]
|
| /petsc/lib/petsc/conf/ |
| H A D | rules_util.mk | 268 msg=''; \ 269 while [[ "$${msg}D" == "D" ]] ; do \ 274 msg="Unable to reach site" ; \ 276 msg=$${y1} ; \ 289 msg=`echo "dropbox file doesn't exist" $${c}` ; \ 301 if [[ "$${msg}D" == "D" && "$${url}" != "$$i" ]] ; then \ 306 elif [[ "$${msg}D" != "D" && "$${url}" != "$$i" ]] ; then \ 307 echo "ERROR: URL" $$i "has moved to invalid final location:" $${url} $${msg} ; \ 308 elif [[ "$${msg}D" != "D" ]] ; then \ 309 echo "ERROR: URL" $$i "invalid:" $${msg} ; \
|
| /petsc/config/PETSc/options/ |
| H A D | arch.py | 51 msg = 'option -with-petsc-arch='+str(self.arch) 54 msg = 'option PETSC_ARCH='+str(self.arch) 57 msg = 'environment variable PETSC_ARCH='+str(self.arch) 61 …ise RuntimeError('PETSC_ARCH should not contain path characters, but you have specified with '+msg) 63 raise RuntimeError('PETSC_ARCH should not start with "-", but you have specified with '+msg) 65 raise RuntimeError('PETSC_ARCH should not start with ".", but you have specified with '+msg) 67 …'PETSC_ARCH cannot be empty string. Use a valid string or do not set one. Currently set with '+msg)
|
| /petsc/config/BuildSystem/config/packages/ |
| H A D | METIS.py | 56 msg= '--with-64-bit-indices option requires a metis build with IDXTYPEWIDTH=64.\n' 58 …msg= 'IDXTYPEWIDTH=64 metis build appears to be specified for a default 32-bit-indices build of PE… 59 …raise RuntimeError('Metis specified is incompatible!\n'+msg+'Suggest using --download-metis for a …
|
| H A D | GSL.py | 27 …msg = 'WARNING! Found environment variable: %s=%s\n' % ('MACOSX_DEPLOYMENT_TARGET', os.environ['MA… 28 self.logPrintBox(msg+'Removing it for GSL build, since it breaks the GSL build')
|
| H A D | hypre.py | 248 …msg = 'HYPRE scalar numbers configuration is different than the requested type {0}\n'.format(self… 249 …raise RuntimeError('Hypre specified is incompatible!\n'+msg+'Suggest using --download-hypre for a … 254 …msg = 'HYPRE Real numbers configuration is incompatible with the requested precision {0}\n'.forma… 255 …raise RuntimeError('Hypre specified is incompatible!\n'+msg+'Suggest using --download-hypre for a … 259 …msg = '--with-64-bit-indices option requires Hypre built with --enable-bigint or --enable-mixedin… 262 …msg = 'Hypre with --enable-bigint/--enable-mixedint appears to be specified for a 32-bit-indices … 264 …raise RuntimeError('Hypre specified is incompatible!\n'+msg+'Suggest using --download-hypre for a …
|
| H A D | CUDA.py | 85 msg = 'only explicit cuda arch version numbers supported for this package ' 86 msg += '(got "'+self.cudaArch+'")' 87 raise RuntimeError(msg) from None
|
| /petsc/src/sys/ftn-mod/ |
| H A D | petscsys.h90 | 2 subroutine PetscPrintf(comm, msg, ierr) 6 character(len=*) :: msg 10 subroutine PetscSynchronizedPrintf(comm, msg, ierr) 14 character(len=*) :: msg
|
| H A D | petscviewer.h90 | 28 subroutine PetscViewerASCIISynchronizedPrintf(viewer, msg, ierr) 32 character(len=*) :: msg 36 subroutine PetscViewerASCIIPrintf(viewer, msg, ierr) 40 character(len=*) :: msg
|
| /petsc/config/ |
| H A D | configure.py | 430 …msg = logger.build_multiline_error_message('ERROR in COMMAND LINE ARGUMENT to ./configure', str(e)) 431 sys.exit(msg) 477 …msg = logger.build_multiline_error_message('UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.… 482 …msg = logger.build_multiline_error_message('TypeError or ValueError possibly related to ERROR in C… 487 msg = logger.build_multiline_error_message('ImportError while running ./configure', str(e)) 491 msg = logger.build_multiline_error_message('OSError while running ./configure', str(e)) 499 …msg = logger.build_multiline_error_message('CONFIGURATION FAILURE (Please send configure.log to pe… 503 …msg = logger.build_multiline_error_message('CONFIGURATION CRASH (Please send configure.log to pets… 506 print('\n'+msg) 521 framework.log.write(msg+se)
|
| /petsc/include/ |
| H A D | petscdmmoab.h | 20 …efine MBERR(msg, rval) PetscCheck(rval == moab::MB_SUCCESS, PETSC_COMM_SELF, PETSC_ERR_LIB, "MOAB … argument 30 #define MBERRVM(mbif, msg, rval) \ argument 35 …_COMM_SELF, PETSC_ERR_LIB, "MOAB ERROR (%i): %s :: %s", (PetscErrorCode)rval, msg, emsg.c_str()); \
|
| /petsc/src/sys/classes/draw/utils/ |
| H A D | image.c | 144 #define SETERRGIF(msg) SETERRQ(PETSC_COMM_SELF, PETSC_ERR_LIB, msg ", GIF file: %s", filename) in PetscDrawImageSaveGIF() argument 145 #define PetscCallGIF(msg, ...) \ in PetscDrawImageSaveGIF() argument 148 if (PetscUnlikely(Error != GIF_OK)) SETERRGIF(msg); \ in PetscDrawImageSaveGIF() 183 #define SETERRGIF(msg, fn) SETERRQ(PETSC_COMM_SELF, PETSC_ERR_LIB, msg " GIF file %s", fn) in PetscDrawMovieSaveGIF() argument
|
| /petsc/src/dm/impls/forest/p4est/ |
| H A D | petsc_p4est_package.c | 13 …stream, const char *filename, int lineno, int package, int category, int priority, const char *msg) in PetscScLogHandler() argument 15 …} %s", lineno, package == sc_package_id ? "sc" : package == p4est_package_id ? "p4est" : "", msg)); in PetscScLogHandler()
|
| /petsc/lib/petsc/bin/maint/ |
| H A D | bk2darcs.py | 131 msg = 'bk-changeset-'+revn + '\n' + rev + '\n'+ buf.strip() + '\n' 133 fd.write(msg)
|
| H A D | bk2hg.py | 171 msg = 'bk-changeset-'+revn + '\n' + rev + '\n'+ buf.strip() + '\n' 173 fd.write(msg)
|
| /petsc/src/dm/dt/fe/tests/ |
| H A D | ex4.c | 45 #define CheckVals(a, b, rtol, atol, msg) \ argument 47 …rtol, atol)) PetscCall(PetscPrintf(PETSC_COMM_WORLD, "%s: %g (%g - %g)\n", msg, (double)PetscAbsSc…
|
| /petsc/config/BuildSystem/config/ |
| H A D | framework.py | 1247 msg ='*******************************************************************************\n'\ 1256 msg ='*******************************************************************************\n'\ 1265 msg ='*******************************************************************************\n'\ 1274 msg ='*******************************************************************************\n'\ 1283 msg ='*******************************************************************************\n'\ 1289 msg ='*******************************************************************************\n'\ 1295 out += '\n'+msg+'\n'+se+'\n' 1318 ret, msg, emsg, vertex = done.get() 1322 self.logWrite(msg) 1397 msg = '' [all …]
|
| H A D | setCompilers.py | 1217 msg = 'Cannot compile {} with {}.'.format(language,compiler) 1218 raise RuntimeError(msg) 1224 msg = 'Cannot compile/link {} with {}.'.format(language,compiler) 1225 …msg = '\nIf the above linker messages do not indicate failure of the compiler you can rerun with t… 1226 raise RuntimeError(msg) 1233 msg = '\n'.join(( 1238 raise RuntimeError(msg) 1243 msg = '\n'.join(( 1249 msg = '\n'.join((msg,'See https://petsc.org/release/faq/#error-libimf')) 1250 raise OSError(msg) # why OSError?? it isn't caught anywhere in here? [all …]
|
| /petsc/src/ksp/pc/impls/amgx/ |
| H A D | amgx.cxx | 167 static void print_callback(const char *msg, int length) in print_callback() argument 169 amgx_output.append(msg); in print_callback() 192 char msg[4096]; \ 197 AMGX_get_error_string(err, msg, 4096); \ 198 SETERRQ(amgx->comm, PETSC_ERR_LIB, "%s", msg); \
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/ |
| H A D | _diag.py | 493 …def from_source_range(cls, kind: DiagnosticKind, diag_flag: str, msg: str, src_range: SourceRangeL… 525 cls.make_message_from_formattable(msg, crange=src_range, **kwargs),
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | Viewer.pyx | 779 def printfASCII(self, msg: str) -> None: 790 msg = str2bytes(msg, &cmsg) 793 def printfASCIISynchronized(self, msg: str) -> None: 804 msg = str2bytes(msg, &cmsg)
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/ |
| H A D | _doc_str.py | 693 …def make_diagnostic(self, kind: DiagnosticKind, diag_flag: str, msg: str, src_range: Optional[Unio… 719 return Diagnostic.from_source_range(kind, diag_flag, msg, src_range, patch=patch, **kwargs) 721 …def add_diagnostic_from_source_range(self, kind: DiagnosticKind, diag_flag: str, msg: str, src_ran… 737 return self.add_diagnostic(self.make_diagnostic(kind, diag_flag, msg, src_range, **kwargs))
|