Changeset 13445


Ignore:
Timestamp:
09/26/12 07:42:29 (12 years ago)
Author:
Eric.Larour
Message:

CHG: move trace_on for ADOLC within the IoModel constructor.

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

Legend:

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

    r13438 r13445  
    5353        for(int i=0;i<MaximumNumberOfEnums;i++) this->data[i]=NULL;
    5454
    55         /*If we are running in AD mode, we need to declare our independent variables now,
     55        /*If we are running in AD mode, we need to start the trace and declare our independent variables now,
    5656         *and prevent them from being erased during successive calls to iomodel->FetchConstants, iomodel->FetchData and
    5757         iomodel->DeleteData:*/
     
    220220        this->FetchData(&autodiff,AutodiffIsautodiffEnum);
    221221        if(autodiff){
    222        
     222
    223223                this->FetchData(&numberofvertices,MeshNumberofverticesEnum);
    224224               
    225225                #ifdef _HAVE_ADOLC_
     226
     227                /*Start the trace: */
     228                trace_on(1);
     229
    226230                /*build dataset made of independent objects: */
    227231                this->independent_objects=new DataSet();
  • issm/trunk-jpl/src/c/solutions/issm.cpp

    r13434 r13445  
    8080        /*out of solution_type, figure out types of analyses needed in the femmodel: */
    8181        AnalysisConfiguration(&analyses,&numanalyses,solution_type);
    82 
    83         /*before we create the model, start the trace on for AD mode: */
    84         #ifdef _HAVE_ADOLC_
    85         trace_on(1);
    86         #endif
    8782
    8883        /*Create femmodel, using input file: */
Note: See TracChangeset for help on using the changeset viewer.