Last change
on this file since 19753 was 19753, checked in by Eric.Larour, 9 years ago |
CHG: new modules in javascript, IssmConfig and InterpFromMeshToMesh2d, which uses the
bamg objects.
New classes to be able to finish off the model.js implementation. New paterson, solvers for javacsript.
|
File size:
653 bytes
|
Rev | Line | |
---|
[19753] | 1 | //DEBUG class definition
|
---|
| 2 | //
|
---|
| 3 | // Usage:
|
---|
| 4 | // debug=new debug();
|
---|
| 5 |
|
---|
| 6 | function debug (){
|
---|
| 7 | //methods
|
---|
| 8 | this.setdefaultparameters = function(){// {{{
|
---|
| 9 | }// }}}
|
---|
| 10 | this.disp= function(){// {{{
|
---|
| 11 | console.log(sprintf(' debug parameters:'));
|
---|
| 12 | console.log(sprintf(' debug parameters:'));
|
---|
| 13 |
|
---|
| 14 | fielddisplay(this,'valgrind','use Valgrind to debug (0 or 1)');
|
---|
| 15 | fielddisplay(this,'gprof','use gnu-profiler to find out where the time is spent');
|
---|
| 16 | fielddisplay(this,'profiling','enables profiling (memory, flops, time)');
|
---|
| 17 |
|
---|
| 18 | }// }}}
|
---|
| 19 | //properties
|
---|
| 20 | // {{{
|
---|
| 21 | this.valgrind = false;
|
---|
| 22 | this.gprof = false;
|
---|
| 23 | this.profiling = false;
|
---|
| 24 | this.setdefaultparameters();
|
---|
| 25 | //}}}
|
---|
| 26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.