[23390] | 1 | Index: ../trunk-jpl/src/c/cores/thermal_core.cpp
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/c/cores/thermal_core.cpp (revision 23227)
|
---|
| 4 | +++ ../trunk-jpl/src/c/cores/thermal_core.cpp (revision 23228)
|
---|
| 5 | @@ -11,7 +11,10 @@
|
---|
| 6 | #include "../solutionsequences/solutionsequences.h"
|
---|
| 7 |
|
---|
| 8 | void thermal_core(FemModel* femmodel){
|
---|
| 9 | -
|
---|
| 10 | +
|
---|
| 11 | + /*Start profiler*/
|
---|
| 12 | + femmodel->profiler->Start(THERMALCORE);
|
---|
| 13 | +
|
---|
| 14 | /*intermediary*/
|
---|
| 15 | bool save_results,isenthalpy;
|
---|
| 16 | bool dakota_analysis;
|
---|
| 17 | @@ -51,5 +54,7 @@
|
---|
| 18 |
|
---|
| 19 | /*Free ressources:*/
|
---|
| 20 | if(numoutputs){for(int i=0;i<numoutputs;i++){xDelete<char>(requested_outputs[i]);} xDelete<char*>(requested_outputs);}
|
---|
| 21 | -
|
---|
| 22 | +
|
---|
| 23 | + /*End profiler*/
|
---|
| 24 | + femmodel->profiler->Stop(THERMALCORE);
|
---|
| 25 | }
|
---|
| 26 | Index: ../trunk-jpl/src/c/classes/Profiler.h
|
---|
| 27 | ===================================================================
|
---|
| 28 | --- ../trunk-jpl/src/c/classes/Profiler.h (revision 23227)
|
---|
| 29 | +++ ../trunk-jpl/src/c/classes/Profiler.h (revision 23228)
|
---|
| 30 | @@ -15,9 +15,10 @@
|
---|
| 31 | #define CORE 2 /*Profiling solution */
|
---|
| 32 | #define SOLVER 3 /*Profiling solution */
|
---|
| 33 | #define ADCORE 4 /*Profiling AD */
|
---|
| 34 | -#define STRESSBALANCECORE 5 /*Profiling AD */
|
---|
| 35 | -#define MASSTRANSPORTCORE 6 /*Profiling AD */
|
---|
| 36 | -#define MAXPROFSIZE 7 /*Used to initialize static arrays*/
|
---|
| 37 | +#define THERMALCORE 5 /*Profiling THERMAL */
|
---|
| 38 | +#define STRESSBALANCECORE 6 /*Profiling STRESSBALANCE */
|
---|
| 39 | +#define MASSTRANSPORTCORE 7 /*Profiling MASSTRANSPORT */
|
---|
| 40 | +#define MAXPROFSIZE 8 /*Used to initialize static arrays*/
|
---|
| 41 |
|
---|
| 42 | class Profiler: public Object{
|
---|
| 43 |
|
---|