Changeset 23228


Ignore:
Timestamp:
09/07/18 03:20:06 (7 years ago)
Author:
rueckamp
Message:

CHG: added thermal core solution profiling

Location:
issm/trunk-jpl/src/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Profiler.h

    r23222 r23228  
    1616#define SOLVER             3 /*Profiling solution */
    1717#define ADCORE             4 /*Profiling AD */
    18 #define STRESSBALANCECORE  5 /*Profiling AD */
    19 #define MASSTRANSPORTCORE  6 /*Profiling AD */
    20 #define MAXPROFSIZE        7 /*Used to initialize static arrays*/
     18#define THERMALCORE        5 /*Profiling THERMAL */
     19#define STRESSBALANCECORE  6 /*Profiling STRESSBALANCE */
     20#define MASSTRANSPORTCORE  7 /*Profiling MASSTRANSPORT */
     21#define MAXPROFSIZE        8 /*Used to initialize static arrays*/
    2122
    2223class Profiler: public Object{
  • issm/trunk-jpl/src/c/cores/thermal_core.cpp

    r20020 r23228  
    1212
    1313void thermal_core(FemModel* femmodel){
    14 
     14       
     15        /*Start profiler*/
     16        femmodel->profiler->Start(THERMALCORE);
     17       
    1518        /*intermediary*/
    1619        bool   save_results,isenthalpy;
     
    5255        /*Free ressources:*/   
    5356        if(numoutputs){for(int i=0;i<numoutputs;i++){xDelete<char>(requested_outputs[i]);} xDelete<char*>(requested_outputs);}
    54 
     57       
     58        /*End profiler*/
     59        femmodel->profiler->Stop(THERMALCORE);
    5560}
Note: See TracChangeset for help on using the changeset viewer.