source: issm/oecreview/Archive/21724-22754/ISSM-22416-22417.diff

Last change on this file was 22755, checked in by Mathieu Morlighem, 7 years ago

CHG: added 21724-22754

File size: 5.7 KB
  • ../trunk-jpl/src/c/modules/modules.h

     
    55#ifndef _ISSM_MODULES_H_
    66#define _ISSM_MODULES_H_
    77
     8#ifdef _HAVE_BAMG_
     9#include "./Bamgx/Bamgx.h"
     10#include "./BamgConvertMeshx/BamgConvertMeshx.h"
     11#include "./BamgTriangulatex/BamgTriangulatex.h"
     12#include "./InterpFromMeshToMesh2dx/InterpFromMeshToMesh2dx.h"
     13#endif
     14
    815/*Modules: */
    916#include "./AllocateSystemMatricesx/AllocateSystemMatricesx.h"
    1017#include "./AverageOntoPartitionx/AverageOntoPartitionx.h"
    11 #include "./Bamgx/Bamgx.h"
    12 #include "./BamgConvertMeshx/BamgConvertMeshx.h"
    13 #include "./BamgTriangulatex/BamgTriangulatex.h"
    1418#include "./Calvingx/Calvingx.h"
    1519#include "./Chacox/Chacox.h"
    1620#include "./ConfigureObjectsx/ConfigureObjectsx.h"
     
    3943#include "./InputExtrudex/InputExtrudex.h"
    4044#include "./InterpFromMesh2dx/InterpFromMesh2dx.h"
    4145#include "./InterpFromGridToMeshx/InterpFromGridToMeshx.h"
    42 #include "./InterpFromMeshToMesh2dx/InterpFromMeshToMesh2dx.h"
    4346#include "./InterpFromMeshToMesh3dx/InterpFromMeshToMesh3dx.h"
    4447#include "./InterpFromMeshToGridx/InterpFromMeshToGridx.h"
    4548#include "./InputUpdateFromConstantx/InputUpdateFromConstantx.h"
  • ../trunk-jpl/src/c/modules/Krigingx/Krigingx.cpp

     
    7070                xDelete<int>(gate.numdone);
    7171        }
    7272        else if(strcmp(output,"delaunay")==0){
     73
     74                #ifdef _HAVE_BAMG_
    7375                int nobs,nel;
    7476                double *x     = NULL;
    7577                double *y     = NULL;
     
    8890                xDelete<double>(y);
    8991                xDelete<double>(data);
    9092                xDelete<int>(index);
     93                #else
     94                _error_("you did not compile ISSM with bamg");
     95                #endif
    9196        }
    9297        else if(strcmp(output,"nearestneighbor")==0){
    9398                /*initialize thread parameters: */
  • ../trunk-jpl/src/c/Makefile.am

     
    4848                                         ./shared/Bamg/BigPrimeNumber.cpp\
    4949                                         ./modules/Bamgx/Bamgx.cpp\
    5050                                         ./modules/BamgConvertMeshx/BamgConvertMeshx.cpp\
    51                                          ./modules/BamgTriangulatex/BamgTriangulatex.cpp
     51                                         ./modules/BamgTriangulatex/BamgTriangulatex.cpp\
     52                                         ./modules/InterpFromMeshToMesh2dx/InterpFromMeshToMesh2dx.cpp
    5253
    5354#do not include AmrBamg with ADOLC
    5455if ADOLC
     
    303304                                        ./modules/ConstraintsStatex/RiftConstraintsState.cpp\
    304305                                        ./modules/ModelProcessorx/CreateOutputDefinitions.cpp\
    305306                                        ./modules/OutputDefinitionsResponsex/OutputDefinitionsResponsex.cpp\
    306                                         ./modules/InterpFromMeshToMesh2dx/InterpFromMeshToMesh2dx.cpp\
    307307                                        ./classes/Inputs/PentaInput.cpp\
    308308                                        ./classes/Inputs/TetraInput.cpp
    309309#}}}
  • ../trunk-jpl/src/c/classes/FemModel.h

     
    175175                void CreateNodes(int newnumberofvertices,int* my_vertices,int nodecounter,int analysis_enum,Nodes* nodes);
    176176                void CreateConstraints(Vertices* newfemmodel_vertices,int nodecounter,int constraintcounter,int analysis_enum,Constraints* newfemmodel_constraints);
    177177                void GetInputs(int* pnumP0inputs,IssmDouble** pP0inputs,int** pP0input_enums,int** pP0input_interp,int* pnumP1inputs,IssmDouble** pP1inputs,int** pP1input_enums,int** pP1input_interp);
     178                #ifdef _HAVE_BAMG_
    178179                void InterpolateInputs(Vertices* newfemmodel_vertices,Elements* newfemmodel_elements);
     180                #endif
    179181                void UpdateElements(int newnumberofelements,int* newelementslist,bool* my_elements,int nodecounter,int analysis_counter,Elements* newelements);
    180182                void ElementsAndVerticesPartitioning(int& newnumberofvertices,int& newnumberofelements,int& elementswidth,int* newelementslist,bool** pmy_elements,int** pmy_vertices);
    181183                void WriteMeshInResults(void);
  • ../trunk-jpl/src/c/classes/FemModel.cpp

     
    25122512/*}}}*/
    25132513
    25142514/*AMR*/
    2515 #if !defined(_HAVE_ADOLC_)
     2515#if !defined(_HAVE_ADOLC_) 
    25162516void FemModel::ReMesh(void){/*{{{*/
    25172517
    25182518        /*Intermediaries*/
     
    26272627        }
    26282628
    26292629        /*Finally: interpolate all inputs and insert them into the new elements.*/
     2630        #ifdef _HAVE_BAMG_
    26302631        this->InterpolateInputs(new_vertices,new_elements);
     2632        #else
     2633        _error_("Cannot interpolate inputs without bamg");
     2634        #endif
    26312635
    26322636        /*Delete old structure and set new pointers*/
    26332637        delete this->vertices;          this->vertices          = new_vertices;
     
    28662870        xDelete<int>(pos);
    28672871}
    28682872/*}}}*/
     2873#ifdef _HAVE_BAMG_
    28692874void FemModel::InterpolateInputs(Vertices* newfemmodel_vertices,Elements* newfemmodel_elements){/*{{{*/
    28702875       
    28712876        int numberofelements                    = this->elements->NumberOfElements();   //global, entire old mesh
     
    29802985        xDelete<IssmDouble>(values);
    29812986}
    29822987/*}}}*/
     2988#endif
    29832989void FemModel::WriteMeshInResults(void){/*{{{*/
    29842990
    29852991        /*Write the erros estimators*/
     
    34203426        spc=vspc->ToMPISerial();
    34213427
    34223428        /*Interpolate spc values and flags in the new partition*/
     3429        #ifdef _HAVE_BAMG_
    34233430        InterpFromMeshToMesh2dx(&newspc,elementslist,x,y,numberofvertices,numberofelements,
    34243431                                                                spc,numberofvertices,numberofcols,
    34253432                                                                newx,newy,newnumberofvertices,NULL);
     3433        #else
     3434        _error_("cannot interpolate without bamg");
     3435        #endif
    34263436       
    34273437        /*Now, insert the interpolated constraints in the data set (constraints)*/
    34283438        count=0;
Note: See TracBrowser for help on using the repository browser.