Changeset 23232
- Timestamp:
- 09/10/18 01:18:13 (7 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/FemModel.cpp
r23229 r23232 865 865 _printf0_("Individual core profiling\n"); 866 866 if(profiler->Used(THERMALCORE)) _printf0_(" "<<setw(40)<<left<<"Thermal core elapsed time:"<<setw(7)<<setprecision(6)<<profiler->TotalTime(THERMALCORE) << " sec\n"); 867 if(profiler->Used(HYDROLOGYCORE)) _printf0_(" "<<setw(40)<<left<<"Hydrology core elapsed time:"<<setw(7)<<setprecision(6)<<profiler->TotalTime(HYDROLOGYCORE) << " sec\n"); 867 868 if(profiler->Used(STRESSBALANCECORE)) _printf0_(" "<<setw(40)<<left<<"Stress balance core elapsed time:"<<setw(7)<<setprecision(6)<<profiler->TotalTime(STRESSBALANCECORE) << " sec\n"); 869 if(profiler->Used(DAMAGECORE)) _printf0_(" "<<setw(40)<<left<<"Damage core elapsed time:"<<setw(7)<<setprecision(6)<<profiler->TotalTime(DAMAGECORE) << " sec\n"); 870 if(profiler->Used(MOVINGFRONTCORE)) _printf0_(" "<<setw(40)<<left<<"Moving front core elapsed time:"<<setw(7)<<setprecision(6)<<profiler->TotalTime(MOVINGFRONTCORE) << " sec\n"); 868 871 if(profiler->Used(MASSTRANSPORTCORE)) _printf0_(" "<<setw(40)<<left<<"Mass transport core elapsed time:"<<setw(7)<<setprecision(6)<<profiler->TotalTime(MASSTRANSPORTCORE) << " sec\n"); 872 if(profiler->Used(SMBCORE)) _printf0_(" "<<setw(40)<<left<<"SMB core elapsed time:"<<setw(7)<<setprecision(6)<<profiler->TotalTime(SMBCORE) << " sec\n"); 873 if(profiler->Used(GROUNDINGLINECORE)) _printf0_(" "<<setw(40)<<left<<"Groundingline migration core elapsed time:"<<setw(7)<<setprecision(6)<<profiler->TotalTime(GROUNDINGLINECORE) << " sec\n"); 874 if(profiler->Used(GIACORE)) _printf0_(" "<<setw(40)<<left<<"GIA core elapsed time:"<<setw(7)<<setprecision(6)<<profiler->TotalTime(GIACORE) << " sec\n"); 875 if(profiler->Used(ESACORE)) _printf0_(" "<<setw(40)<<left<<"ESA core elapsed time:"<<setw(7)<<setprecision(6)<<profiler->TotalTime(ESACORE) << " sec\n"); 876 if(profiler->Used(SLRCORE)) _printf0_(" "<<setw(40)<<left<<"SLR core elapsed time:"<<setw(7)<<setprecision(6)<<profiler->TotalTime(SLRCORE) << " sec\n"); 869 877 870 871 878 /*Add to results: */ 872 879 results->AddObject(new GenericExternalResult<IssmDouble>(results->Size()+1, ProfilingSolutionTimeEnum, solution_time)); -
issm/trunk-jpl/src/c/classes/Profiler.h
r23228 r23232 16 16 #define SOLVER 3 /*Profiling solution */ 17 17 #define ADCORE 4 /*Profiling AD */ 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*/ 18 #define THERMALCORE 5 /*Profiling THERMAL */ 19 #define HYDROLOGYCORE 6 /*Profiling HYDROLOGY */ 20 #define STRESSBALANCECORE 7 /*Profiling STRESSBALANCE */ 21 #define DAMAGECORE 8 /*Profiling DAMAGE */ 22 #define MOVINGFRONTCORE 9 /*Profiling MOVINGFRONT */ 23 #define MASSTRANSPORTCORE 10 /*Profiling MASSTRANSPORT */ 24 #define SMBCORE 11 /*Profiling SMB */ 25 #define GROUNDINGLINECORE 12 /*Profiling GROUDINGLINE MIGRATION */ 26 #define GIACORE 13 /*Profiling GIA */ 27 #define ESACORE 14 /*Profiling ESA */ 28 #define SLRCORE 15 /*Profiling SLR */ 29 #define MAXPROFSIZE 16 /*Used to initialize static arrays*/ 22 30 23 31 class Profiler: public Object{ -
issm/trunk-jpl/src/c/cores/damage_core.cpp
r23066 r23232 11 11 12 12 void damage_core(FemModel* femmodel){ 13 13 14 /*Start profiler*/ 15 femmodel->profiler->Start(DAMAGECORE); 16 14 17 /*intermediary*/ 15 18 bool save_results; … … 48 51 xDelete<char*>(requested_outputs); 49 52 } 53 54 /*End profiler*/ 55 femmodel->profiler->Stop(DAMAGECORE); 50 56 } -
issm/trunk-jpl/src/c/cores/esa_core.cpp
r23066 r23232 11 11 12 12 void esa_core(FemModel* femmodel){ /*{{{*/ 13 14 /*Start profiler*/ 15 femmodel->profiler->Start(ESACORE); 13 16 14 17 Vector<IssmDouble> *U_radial = NULL; … … 112 115 if(numoutputs){for(int i=0;i<numoutputs;i++){xDelete<char>(requested_outputs[i]);} xDelete<char*>(requested_outputs);} 113 116 } 117 118 /*End profiler*/ 119 femmodel->profiler->Stop(ESACORE); 114 120 115 121 } -
issm/trunk-jpl/src/c/cores/gia_core.cpp
r23066 r23232 10 10 #include "../solutionsequences/solutionsequences.h" 11 11 void gia_core(FemModel* femmodel){ 12 13 /*Start profiler*/ 14 femmodel->profiler->Start(GIACORE); 12 15 13 16 Vector<IssmDouble> *wg = NULL; … … 56 59 xDelete<IssmDouble>(x); 57 60 xDelete<IssmDouble>(y); 61 62 /*End profiler*/ 63 femmodel->profiler->Stop(GIACORE); 58 64 } -
issm/trunk-jpl/src/c/cores/hydrology_core.cpp
r23093 r23232 12 12 void hydrology_core(FemModel* femmodel){ 13 13 14 /*Start profiler*/ 15 femmodel->profiler->Start(HYDROLOGYCORE); 16 14 17 /*intermediary*/ 15 18 int hydrology_model; … … 150 153 xDelete<char*>(requested_outputs); 151 154 } 155 156 /*End profiler*/ 157 femmodel->profiler->Stop(HYDROLOGYCORE); 152 158 } -
issm/trunk-jpl/src/c/cores/movingfront_core.cpp
r22989 r23232 11 11 12 12 void movingfront_core(FemModel* femmodel){ 13 14 /*Start profiler*/ 15 femmodel->profiler->Start(MOVINGFRONTCORE); 13 16 14 17 /* intermediaries */ … … 98 101 femmodel->RequestedOutputsx(&femmodel->results,&outputs[0],1); 99 102 } 103 104 /*End profiler*/ 105 femmodel->profiler->Stop(MOVINGFRONTCORE); 100 106 } -
issm/trunk-jpl/src/c/cores/sealevelrise_core.cpp
r23066 r23232 13 13 void sealevelrise_core(FemModel* femmodel){ /*{{{*/ 14 14 15 /*Start profiler*/ 16 femmodel->profiler->Start(SLRCORE); 17 15 18 /*Parameters, variables:*/ 16 19 bool save_results; … … 54 57 /*requested dependents: */ 55 58 if(solution_type==SealevelriseSolutionEnum)femmodel->RequestedDependentsx(); 59 60 /*End profiler*/ 61 femmodel->profiler->Stop(SLRCORE); 56 62 } 57 63 /*}}}*/ -
issm/trunk-jpl/src/c/cores/smb_core.cpp
r23066 r23232 11 11 12 12 void smb_core(FemModel* femmodel){ 13 13 14 /*Start profiler*/ 15 femmodel->profiler->Start(SMBCORE); 16 14 17 /*parameters: */ 15 18 Analysis* analysis=NULL; … … 45 48 /*Free ressources:*/ 46 49 if(numoutputs){for(int i=0;i<numoutputs;i++){xDelete<char>(requested_outputs[i]);} xDelete<char*>(requested_outputs);} 50 51 /*End profiler*/ 52 femmodel->profiler->Stop(SMBCORE); 47 53 } -
issm/trunk-jpl/src/c/cores/transient_core.cpp
r23081 r23232 401 401 402 402 if(isgroundingline){ 403 404 /*Start profiler*/ 405 femmodel->profiler->Start(GROUNDINGLINECORE); 406 403 407 if(VerboseSolution()) _printf0_(" computing new grounding line position\n"); 404 408 GroundinglineMigrationx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters); … … 410 414 femmodel->parameters->SetParam(SurfaceEnum,InputToExtrudeEnum); 411 415 extrudefrombase_core(femmodel); 416 417 /*Stop profiler*/ 418 femmodel->profiler->Stop(GROUNDINGLINECORE); 412 419 413 420 if(save_results){
Note:
See TracChangeset
for help on using the changeset viewer.