source: issm/oecreview/Archive/23185-23389/ISSM-23251-23252.diff@ 23390

Last change on this file since 23390 was 23390, checked in by Mathieu Morlighem, 6 years ago

CHG: added Archive/23185-23389

File size: 5.3 KB
  • ../trunk-jpl/src/c/modules/GetVectorFromControlInputsx/GetVectorFromControlInputsx.cpp

     
    9393}/*}}}*/
    9494
    9595/*For autodiff, we sometimes need to cast our vectors to passive*/
    96 #ifdef _HAVE_ADOLC_
     96#ifdef _HAVE_AD_
    9797void GetPassiveVectorFromControlInputsx(Vector<IssmPDouble>** pvector, Elements* elements,Nodes* nodes, Vertices* vertices, Loads* loads, Materials* materials, Parameters* parameters,const char* data){/*{{{*/
    9898
    9999        /*Get active vector first*/
  • ../trunk-jpl/src/c/modules/ModelProcessorx/Autodiff/CreateParametersAutodiff.cpp

     
    7676                //fprintf(stderr, "*** Codipack CreateParametersAutodiff()\n");
    7777                /*initialize a placeholder to store solver pointers: {{{*/
    7878                /*Solver pointers depend on what type of solver we are implementing: */
    79                 options=OptionsFromAnalysis(parameters,DefaultAnalysisEnum); //options database is not filled in yet, use default.
    80                 ToolkitOptions::Init(options);
     79                options=OptionsFromAnalysis(&toolkit,parameters,DefaultAnalysisEnum);
     80                ToolkitOptions::Init(toolkit,options);
     81                xDelete<char>(toolkit);
    8182
    8283                switch(IssmSolverTypeFromToolkitOptions()){
    8384                        case MumpsEnum:{
  • ../trunk-jpl/src/c/Makefile.am

     
    5050                                         ./modules/BamgConvertMeshx/BamgConvertMeshx.cpp\
    5151                                         ./modules/BamgTriangulatex/BamgTriangulatex.cpp
    5252
    53 #do not include AmrBamg with ADOLC
     53#do not include AmrBamg with AD
    5454if ADOLC
    5555else
     56if CODIPACK
     57else
    5658issm_sources += ./classes/AmrBamg.cpp
    5759endif
    5860endif
     61endif
    5962#}}}
    6063#Core sources{{{
    6164issm_sources += ./datastructures/DataSet.cpp\
  • ../trunk-jpl/src/c/cores/transient_core.cpp

     
    6969        femmodel->parameters->FindParam(&numoutputs,TransientNumRequestedOutputsEnum);
    7070        if(numoutputs) femmodel->parameters->FindParam(&requested_outputs,&numoutputs,TransientRequestedOutputsEnum);
    7171
    72         #if defined(_HAVE_BAMG_) && !defined(_HAVE_ADOLC_)
     72        #if defined(_HAVE_BAMG_) && !defined(_HAVE_AD_)
    7373        if(amr_frequency){
    7474                femmodel->parameters->FindParam(&amr_restart,AmrRestartEnum);
    7575                if(amr_restart) femmodel->ReMesh();
     
    7777        #endif
    7878
    7979        if(isoceancoupling){ /*{{{*/
    80                 #ifndef _HAVE_ADOLC_
     80                #ifndef _HAVE_AD_
    8181                if(VerboseSolution()) _printf0_("   ocean coupling: initialization \n");
    8282                int my_rank;
    8383                ISSM_MPI_Comm tomitgcmcomm;
     
    246246
    247247                if(isoceancoupling){ /*{{{*/
    248248
    249                         #ifndef _HAVE_ADOLC_
     249                        #ifndef _HAVE_AD_
    250250                        if(VerboseSolution()) _printf0_("   ocean coupling: exchanging information\n");
    251251                        int my_rank;
    252252                        ISSM_MPI_Comm tomitgcmcomm;
     
    459459                /*Adaptive mesh refinement*/
    460460                if(amr_frequency){
    461461
    462                         #if !defined(_HAVE_ADOLC_)
     462                        #if !defined(_HAVE_AD_)
    463463                        if(save_results) femmodel->WriteMeshInResults();
    464464                        if(step%amr_frequency==0 && time<finaltime){
    465465                                if(VerboseSolution()) _printf0_("   refining mesh\n");
     
    467467                        }
    468468
    469469                        #else
    470                         _error_("AMR not suppored with ADOLC");
     470                        _error_("AMR not suppored with AD");
    471471                        #endif
    472472                }
    473473
  • ../trunk-jpl/src/c/cores/controlm1qn3_core.cpp

     
    1010#include "../modules/modules.h"
    1111#include "../solutionsequences/solutionsequences.h"
    1212
    13 #if defined (_HAVE_M1QN3_) && !defined(_HAVE_ADOLC_)
     13#if defined (_HAVE_M1QN3_) && !defined(_HAVE_AD_)
    1414/*m1qn3 prototypes*/
    1515extern "C" void *ctonbe_; // DIS mode : Conversion
    1616extern "C" void *ctcabe_; // DIS mode : Conversion
  • ../trunk-jpl/src/c/classes/FemModel.cpp

     
    25442544/*}}}*/
    25452545
    25462546/*AMR*/
    2547 #if !defined(_HAVE_ADOLC_)
     2547#ifndef _HAVE_AD_
    25482548void FemModel::ReMesh(void){/*{{{*/
    25492549
    25502550        /*Intermediaries*/
  • ../trunk-jpl/src/c/classes/IoModel.cpp

     
    26342634                IssmDouble x_t(1.0), y_t(1.0);
    26352635                tape_codi.registerInput(y_t);
    26362636                int codi_allocn = 0;
    2637                 this->FetchData(&codi_allocn, AutodiffTapeAllocEnum);
     2637                this->FetchData(&codi_allocn,"md.autodiff.tapeAlloc");
    26382638                for(int i = 0;i < codi_allocn;++i) {
    26392639                        x_t = y_t * y_t;
    26402640                }
Note: See TracBrowser for help on using the repository browser.