Changeset 21832


Ignore:
Timestamp:
07/20/17 20:04:30 (8 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixed destructor of FemModel with amr

File:
1 edited

Legend:

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

    r21829 r21832  
    8282   /*AMR stuff*/
    8383        this->parameters->FindParam(&amr_frequency,TransientAmrFrequencyEnum);
     84        #ifdef _HAVE_NEOPZ_
     85        this->amr = NULL;
     86        #endif
     87        #ifdef _HAVE_BAMG_
     88        this->amrbamg = NULL;
     89        #endif
    8490        if(amr_frequency){
    8591                this->parameters->FindParam(&amrtype,AmrTypeEnum);
     
    121127        this->InitFromFiles(rootpath,inputfilename,outputfilename,toolkitsfilename,lockfilename,restartfilename, solution_type,traceon,X);
    122128        profiler->Tag(FINISHINIT);
     129
     130        #ifdef _HAVE_NEOPZ_
     131        this->amr = NULL;
     132        #endif
     133        #ifdef _HAVE_BAMG_
     134        this->amrbamg = NULL;
     135        #endif
    123136       
    124137        /*Save communicator in the parameters dataset: */
     
    288301                ConfigureObjectsx(output->elements,output->loads,output->nodes,output->vertices,output->materials,output->parameters);
    289302        }
     303
     304        /*AMR, no copy for now*/
     305        #ifdef _HAVE_NEOPZ_
     306        this->amr = NULL;
     307        #endif
     308        #ifdef _HAVE_BAMG_
     309        this->amrbamg = NULL;
     310        #endif
    290311
    291312        /*Reset current configuration: */
Note: See TracChangeset for help on using the changeset viewer.