source:
issm/oecreview/Archive/23185-23389/ISSM-23251-23252.diff@
23390
Last change on this file since 23390 was 23390, checked in by , 6 years ago | |
---|---|
File size: 5.3 KB |
-
../trunk-jpl/src/c/modules/GetVectorFromControlInputsx/GetVectorFromControlInputsx.cpp
93 93 }/*}}}*/ 94 94 95 95 /*For autodiff, we sometimes need to cast our vectors to passive*/ 96 #ifdef _HAVE_AD OLC_96 #ifdef _HAVE_AD_ 97 97 void GetPassiveVectorFromControlInputsx(Vector<IssmPDouble>** pvector, Elements* elements,Nodes* nodes, Vertices* vertices, Loads* loads, Materials* materials, Parameters* parameters,const char* data){/*{{{*/ 98 98 99 99 /*Get active vector first*/ -
../trunk-jpl/src/c/modules/ModelProcessorx/Autodiff/CreateParametersAutodiff.cpp
76 76 //fprintf(stderr, "*** Codipack CreateParametersAutodiff()\n"); 77 77 /*initialize a placeholder to store solver pointers: {{{*/ 78 78 /*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); 81 82 82 83 switch(IssmSolverTypeFromToolkitOptions()){ 83 84 case MumpsEnum:{ -
../trunk-jpl/src/c/Makefile.am
50 50 ./modules/BamgConvertMeshx/BamgConvertMeshx.cpp\ 51 51 ./modules/BamgTriangulatex/BamgTriangulatex.cpp 52 52 53 #do not include AmrBamg with AD OLC53 #do not include AmrBamg with AD 54 54 if ADOLC 55 55 else 56 if CODIPACK 57 else 56 58 issm_sources += ./classes/AmrBamg.cpp 57 59 endif 58 60 endif 61 endif 59 62 #}}} 60 63 #Core sources{{{ 61 64 issm_sources += ./datastructures/DataSet.cpp\ -
../trunk-jpl/src/c/cores/transient_core.cpp
69 69 femmodel->parameters->FindParam(&numoutputs,TransientNumRequestedOutputsEnum); 70 70 if(numoutputs) femmodel->parameters->FindParam(&requested_outputs,&numoutputs,TransientRequestedOutputsEnum); 71 71 72 #if defined(_HAVE_BAMG_) && !defined(_HAVE_AD OLC_)72 #if defined(_HAVE_BAMG_) && !defined(_HAVE_AD_) 73 73 if(amr_frequency){ 74 74 femmodel->parameters->FindParam(&amr_restart,AmrRestartEnum); 75 75 if(amr_restart) femmodel->ReMesh(); … … 77 77 #endif 78 78 79 79 if(isoceancoupling){ /*{{{*/ 80 #ifndef _HAVE_AD OLC_80 #ifndef _HAVE_AD_ 81 81 if(VerboseSolution()) _printf0_(" ocean coupling: initialization \n"); 82 82 int my_rank; 83 83 ISSM_MPI_Comm tomitgcmcomm; … … 246 246 247 247 if(isoceancoupling){ /*{{{*/ 248 248 249 #ifndef _HAVE_AD OLC_249 #ifndef _HAVE_AD_ 250 250 if(VerboseSolution()) _printf0_(" ocean coupling: exchanging information\n"); 251 251 int my_rank; 252 252 ISSM_MPI_Comm tomitgcmcomm; … … 459 459 /*Adaptive mesh refinement*/ 460 460 if(amr_frequency){ 461 461 462 #if !defined(_HAVE_AD OLC_)462 #if !defined(_HAVE_AD_) 463 463 if(save_results) femmodel->WriteMeshInResults(); 464 464 if(step%amr_frequency==0 && time<finaltime){ 465 465 if(VerboseSolution()) _printf0_(" refining mesh\n"); … … 467 467 } 468 468 469 469 #else 470 _error_("AMR not suppored with AD OLC");470 _error_("AMR not suppored with AD"); 471 471 #endif 472 472 } 473 473 -
../trunk-jpl/src/c/cores/controlm1qn3_core.cpp
10 10 #include "../modules/modules.h" 11 11 #include "../solutionsequences/solutionsequences.h" 12 12 13 #if defined (_HAVE_M1QN3_) && !defined(_HAVE_AD OLC_)13 #if defined (_HAVE_M1QN3_) && !defined(_HAVE_AD_) 14 14 /*m1qn3 prototypes*/ 15 15 extern "C" void *ctonbe_; // DIS mode : Conversion 16 16 extern "C" void *ctcabe_; // DIS mode : Conversion -
../trunk-jpl/src/c/classes/FemModel.cpp
2544 2544 /*}}}*/ 2545 2545 2546 2546 /*AMR*/ 2547 #if !defined(_HAVE_ADOLC_)2547 #ifndef _HAVE_AD_ 2548 2548 void FemModel::ReMesh(void){/*{{{*/ 2549 2549 2550 2550 /*Intermediaries*/ -
../trunk-jpl/src/c/classes/IoModel.cpp
2634 2634 IssmDouble x_t(1.0), y_t(1.0); 2635 2635 tape_codi.registerInput(y_t); 2636 2636 int codi_allocn = 0; 2637 this->FetchData(&codi_allocn, AutodiffTapeAllocEnum);2637 this->FetchData(&codi_allocn,"md.autodiff.tapeAlloc"); 2638 2638 for(int i = 0;i < codi_allocn;++i) { 2639 2639 x_t = y_t * y_t; 2640 2640 }
Note:
See TracBrowser
for help on using the repository browser.