Changeset 26358 for issm/trunk-jpl/src/m/classes/verbose.py
- Timestamp:
- 07/24/21 17:33:34 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/m/classes/verbose.py ¶
r24240 r26358 4 4 5 5 class verbose(object): 6 """ 7 VERBOSE class definition 6 """VERBOSE class definition 8 7 9 10 11 12 13 14 15 16 17 18 8 Available verbosity levels: 9 mprocessor : model processing 10 module : modules 11 solution : solution sequence 12 solver : solver info (extensive) 13 convergence : convergence criteria 14 control : control method 15 qmu : sensitivity analysis 16 autodiff : AD analysis 17 smb : SMB analysis 19 18 20 21 22 23 24 19 Usage: 20 verbose = verbose() 21 verbose = verbose(3) 22 verbose = verbose('001100') 23 verbose = verbose('module', True, 'solver', False) 25 24 26 WARNING: some parts of this file are Synchronized with src/c/shared/Numerics/Verbosity.h 27 Do not modify these sections. See src/c/shared/Numerics/README for more info 25 NOTE: 26 - Some parts of this file are Synchronized with 27 src/c/shared/Numerics/Verbosity.h. Do not modify these sections. See 28 src/c/shared/Numerics/README for more info. 28 29 """ 29 30 … … 42 43 43 44 if not len(args): 44 # Don't do anything45 # Don't do anything 45 46 self.solution = True 46 47 self.qmu = True … … 52 53 if isinstance(binary, str): 53 54 if binary.lower() == 'all': 54 binary = 2**11 - 1 #all ones55 binary = pow(2, 11) - 1 # all ones 55 56 self.BinaryToVerbose(binary) 56 self.solver = False # Do not use by default57 self.solver = False # Do not use by default 57 58 else: 58 59 binary = int(binary, 2) … … 62 63 63 64 else: 64 # Use options to initialize object65 # Use options to initialize object 65 66 self = pairoptions(*args).AssignObjectFields(self) 66 67 67 # Cast to logicals68 # Cast to logicals 68 69 listproperties = vars(self) 69 70 for fieldname, fieldvalue in list(listproperties.items()):
Note:
See TracChangeset
for help on using the changeset viewer.