Changeset 20955


Ignore:
Timestamp:
07/19/16 16:16:28 (9 years ago)
Author:
Mathieu Morlighem
Message:

CHG: do not checkpoint profiler, this messes up the tags and does not make sense

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

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/FemModel.cpp

    r20943 r20955  
    362362
    363363        if(marshall_direction==MARSHALLING_BACKWARD){
    364                 delete this->profiler;
    365364                delete this->loads;
    366365                delete this->materials;
     
    373372                xDelete<int>(this->analysis_type_list);
    374373
    375                 this->profiler    = new Profiler();
    376374                this->loads       = new Loads();
    377375                this->materials   = new Materials();
     
    391389        MARSHALLING_DYNAMIC(analysis_type_list,int,nummodels);
    392390
    393         this->profiler->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction);
    394391        this->loads->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction);
    395392        this->materials->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction);
     
    402399
    403400        if(marshall_direction==MARSHALLING_BACKWARD){
    404                 //reset hooks for elements, loads and nodes:
     401                /*reset hooks for elements, loads and nodes:*/
    405402                this->elements->ResetHooks();
    406403                this->loads->ResetHooks();
    407404                this->materials->ResetHooks();
    408405
    409                 //do the post-processing of the datasets to get an FemModel that can actually run analyses:
     406                /*do the post-processing of the datasets to get an FemModel that can actually run analyses:*/
    410407                for(i=0;i<nummodels;i++){
    411408                        analysis_type=this->analysis_type_list[i];
     
    435432        /*First, recover the name of the restart file: */
    436433        parameters->FindParam(&restartfilename,RestartFileNameEnum);
     434
     435        /*Print banner*/
     436        _printf0_("                                                                    \n");
     437        _printf0_("====================================================================\n");
     438        _printf0_("                         RESTART DETECTED                           \n");
     439        _printf0_("                                                                    \n");
     440        _printf0_("  Restart file: "<<restartfilename<<"                               \n");
     441        _printf0_("====================================================================\n");
     442        _printf0_("                                                                    \n");
    437443
    438444        /*Now, figure out whether this file actually exists!: */
  • issm/trunk-jpl/src/c/classes/Profiler.cpp

    r20938 r20955  
    5050
    5151        _printf_("Profiler:\n");
    52         _printf_("   time tags: \n");
    53         _error_("not implemented yet");
     52        for(int i=0;i<MAXIMUMSIZE;i++){
     53                _printf_("    Tag "<<i<<":\n");
     54                _printf_("       flops:  "<<this->flops[i]<<"\n");
     55                _printf_("       memory: "<<this->memory[i]<<"\n");
     56                _printf_("       time:   "<<this->time[i]<<"\n");
     57        }
    5458
    5559}
  • issm/trunk-jpl/src/c/cores/transient_core.cpp

    r20459 r20955  
    6262        if(numoutputs) femmodel->parameters->FindParam(&requested_outputs,&numoutputs,TransientRequestedOutputsEnum);
    6363
    64         //first, figure out if there was a check point, if so, do a reset of the FemModel* femmodel structure.
     64        /*first, figure out if there was a check point, if so, do a reset of the FemModel* femmodel structure. */
    6565        if(recording_frequency)femmodel->Restart();
    6666
Note: See TracChangeset for help on using the changeset viewer.