Changeset 12004 for issm/branches/trunk-jpl-damage/src/m/classes/debug.m
- Timestamp:
- 04/16/12 16:06:52 (13 years ago)
- Location:
- issm/branches/trunk-jpl-damage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-jpl-damage
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 11709,11711-11769,11771-11777,11780-11782,11784-11800,11803-11983,11986-11989
- Property svn:mergeinfo changed
-
issm/branches/trunk-jpl-damage/src/m/classes/debug.m
r11219 r12004 6 6 classdef debug 7 7 properties (SetAccess=public) 8 valgrind=false; 9 gprof = false; 8 valgrind = false; 9 gprof = false; 10 petsc_profiling = false; 10 11 end 11 12 methods … … 14 15 case 0 15 16 obj=setdefaultparameters(obj); 16 case 117 in=varargin{1};18 if (isa(in,'numeric') & in==0),19 % requesting templates do nothing20 else21 error('constructor not supported');22 end23 17 otherwise 24 18 error('constructor not supported'); … … 33 27 fielddisplay(obj,'valgrind','use Valgrind to debug (0 or 1)'); 34 28 fielddisplay(obj,'gprof','use gnu-profiler to find out where the time is spent'); 29 fielddisplay(obj,'petsc_profiling','enables PETSc profiling (memory, flops, time)'); 35 30 31 end % }}} 32 function marshall(obj,fid) % {{{ 33 WriteData(fid,'object',obj,'fieldname','petsc_profiling','format','Boolean'); 36 34 end % }}} 37 35 end
Note:
See TracChangeset
for help on using the changeset viewer.